在我的网站上,我得到了这个css代码
@-webkit-keyframes colours {
0% {color: red; color: lime; color: red;}
25% {color: lime;}
50% {color: red;}
75% {color: lime;}
100% {color: red;}
}
-webkit-animation: colours 1.5s infinite alternate !important;每次颜色改变时,我可以让它在
background-image: url("/images/redshield.png");和
background-image: url("/images/greenshield.png"); ?发布于 2016-08-07 09:35:50
请注意,这将继续循环...但是像这样的东西应该是有效的。
@-webkit-keyframes colours {
0% {
color: red;
background-image: url("/images/redshield.png");
}
25% {color: lime;}
50% {
color: red;
background-image: url("/images/greenshield.png");
}
75% {color: lime;}
100% {color: red;}
}
-webkit-animation: colours 1.5s infinite alternate !important;https://stackoverflow.com/questions/38810082
复制相似问题