【发布时间】:2016-02-18 22:39:51
【问题描述】:
如何在使用 css 动画向下移动时使按钮在循环中淡入/淡出?到目前为止,我的淡入/淡出工作正常。但我不能让他们同时工作。
<div class="down-arrow"><button class="down-button animate-flicker" type="button">VVV</button></div>
@keyframes flickerAnimation {
from {top:0px; opacity: 0; }
to {top:200px;}
}
@-o-keyframes flickerAnimation {
from {top:0px; opacity: 0; }
to {top:200px;}
}
@-moz-keyframes flickerAnimation {
from {top:0px; opacity: 0; }
to {top:200px;}
}
@-webkit-keyframes flickerAnimation {
from {top:0px; opacity: 0; }
to {top:200px;}
}
.animate-flicker {
animation: flickerAnimation 1s infinite alternate;
-webkit-animation: flickerAnimation 1s infinite alternate;
-moz-animation: flickerAnimation 1s infinite alternate;
-o-animation: flickerAnimation 1s infinite alternate;
}
【问题讨论】:
标签: css animation css-animations fading