【发布时间】:2015-06-10 01:44:56
【问题描述】:
我在我的菜单栏中的一个元素中添加了一个闪烁动画。 它在 Mozilla 中完美运行,但在 Chrome 中,它在被点击后停止,只有清除浏览器数据才有帮助。有时即使这样也不能解决问题。
你能帮忙吗?它也不适用于 IE,但这并不重要。
.menu-box #menu-item-368 a {
animation-name: blink;
animation-duration: 500ms;
animation-iteration-count: infinite;
animation-direction: alternate;
-webkit-animation-name: blink;
-webkit-animation-duration: 500ms;
-webkit-animation-iteration-count: infinite;
-webkit-animation-direction: alternate;
-ms-animation-name: blink;
-ms-animation-duration: 500ms;
-ms-animation-iteration-count: infinite;
-ms-animation-direction: alternate;
}
@keyframes blink {
from {
color: white;
}
to {
color: red;
}
}
@-webkit-keyframes blink {
from {
-webkit-color: white;
}
to {
-webkit-color: red;
}
}
@-ms-keyframes blink {
from {
-ms-color: white;
}
to {
-ms-color: red;
}
}
【问题讨论】:
标签: google-chrome css-animations