【发布时间】:2014-08-19 22:13:27
【问题描述】:
我只是为一个 div 设置了一个动画,它成功了。 现在我想证明它,因为它的延迟太短了! 那么如何添加动画(0% 到 25%)和动画(25% 到 50%)之间的延迟时间 这是代码:
#flow{
position:absolute;
-webkit-animation:mymove 10s ease-in-out;
-webkit-animation-iteration-count:3;
-webkit-animation-delay:1s;
}
@-webkit-keyframes mymove
{
0%{left:5px;}
25%{left:127px;}
50%{left:249px;}
75%{left:371px;}
100%{left:5px;}
}
大家!感谢大家的关注!我找到了答案,但是我不知道关键帧百分比定义的Api!如果你知道的话,请帮我一把,非常感谢!
@-webkit-keyframes mymove
{
0%{left:5px;}
25%{left:127px;}
26%{left:127px;}
27%{left:127px;}
28%{left:127px;}
29%{left:127px;}
30%{left:127px;}
31%{left:127px;}
32%{left:127px;}
33%{left:127px;}
34%{left:127px;}
35%{left:127px;}
50%{left:249px;}
75%{left:371px;}
100%{left:5px;}
}
【问题讨论】:
标签: css css-animations