我在Outlook签名中添加了一个CSS,但是当我发送电子邮件时它不起作用。
<head>
<style>
.typewriter h4 {
overflow: hidden; /* Ensures the content is not revealed until the animation */
border-right: .15em solid orange; /* The typwriter cursor */
white-space: nowrap; /* Keeps the content on a single line */
margin: 0 auto; /* Gives that scrolling effect as the typing happens */
letter-spacing: .15em; /* Adjust as needed */
animation:
typing 3.5s steps(40, end),
blink-caret .75s step-end infinite;
}
/* The typing effect */
@keyframes typing {
from { width: 0 }
to { width: 30% }
}
/* The typewriter cursor effect */
@keyframes blink-caret {
from, to { border-color: transparent }
50% { border-color: orange; }
}
</style>
</head>
<div class="typewriter">
<h4>Gaurang Shah</h4>
</div>
以上是我的代码,但是在电子邮件签名中,我看不到文本的移动。
答案 0 :(得分:0)
很遗憾,Outlook不支持动画属性。您可以参考以下链接:
https://www.campaignmonitor.com/css/animations/animation/
但是,如果可能的话,您可以尝试使用GIF来实现您的请求。
有关更多信息,请参见以下链接: