我想知道是否有办法让CSS3中的文字阴影闪烁。有人能帮我吗?这是我的代码,我只想让文字阴影闪烁。谢谢!
#container .title {
color: #ba8b00;
padding: 25px 0 30px 0;
width: 560px;
font-size: 42px;
text-shadow: 3px 3px 5px #ba8b00;
}
这应该有助于你开始
@-webkit-keyframes myfirst
{
from {text-shadow: 3px 3px 5px #ba8b00;}
to {text-shadow : none;}
}
@-moz-keyframes myfirst
{
from {text-shadow: 3px 3px 5px #ba8b00;}
to {text-shadow : none;}
}
@keyframes myfirst
{
from {text-shadow: 3px 3px 5px #ba8b00;}
to {text-shadow : none;}
}
#container .title {
color: #ba8b00;
padding: 25px 0 30px 0;
width: 560px;
font-size: 42px;
text-shadow: 3px 3px 5px #ba8b00;
-webkit-animation: myfirst 1s 98765432;
-moz-animation: myfirst 1s 98765432;
animation: myfirst 1s 98765432;
}