我试图在播放动画一段时间后更改按钮的颜色。我搜索并发现,它需要改变一个新的框架。这里是我的CSS:如何在css中播放动画后更改按钮颜色
.header-button {
font-size: 12px;
text-shadow: 0 -1px 0 rgba(0, 0, 0, .8);
color: #fbd3cc;
text-decoration: none;
font-weight: normal;
height: 30px;
border: 1px solid rgba(255, 255, 255, .4);
border-radius: 3px;
-webkit-border-radius: 3px;
display: inline;
background: #026890;
}
@keyframes fadeIn {
from {
opacity: 0;
}
}
.animate-flicker {
animation: fadeIn 0.5s infinite alternate;
animation-iteration-count: 10;
-moz-animation-name: changecolor;
}
@keyframes changecolor {
{
color: red;
}
}
<button class="header-button animate-flicker">Menue
</button>
有没有人告诉我,我怎么能在CSS播放动画5次
对不起,这并不改变完成动画后的颜色。 – user565