animation
英 [ˌænɪˈmeɪʃn] 美 [ˌænəˈmeʃən]
n.生气,活泼;动画片制作,动画片摄制;[影视]动画片
复数: animations
iteration
英 [ˌɪtəˈreɪʃn] 美 [ˌɪtəˈreʃən]
n.反复;重述;重述的事;[计算机]循环
count
英 [kaʊnt] 美 [kaʊnt]
n.总数;数数;罪状;论点
v.数数;计算总数;把…算入;重要
第三人称单数: counts 复数: counts 现在分词: counting 过去式: counted 过去分词: counted
css3 animation-iteration-count属性 语法
作用:animation-iteration-count 属性定义动画的播放次数。
语法:animation-iteration-count: n|infinite;
说明:n 定义动画播放次数的数值。infinite 规定动画应该无限次播放。
注释:Internet Explorer 9 以及更早的版本不支持 animation-iteration-count 属性。
无限循环播放可以通过设置css3中animation-iteration-count属性的值为infinite即可。也可以自定义动画播放次数
css3 animation-iteration-count属性 示例
html>
div
{
width:100px;
height:100px;
background:red;
position:relative;
animation:mymove 3s;
animation-iteration-count:3;
/* Safari and Chrome */
-webkit-animation:mymove 3s;
-webkit-animation-iteration-count:3;
}
@keyframes mymove
{
from {top:0px;}
to {top:200px;}
}
@-webkit-keyframes mymove /* Safari and Chrome */
{
from {top:0px;}
to {top:200px;}
}
注释:Internet Explorer 9 以及更早的版本不支持 animation-iteration-count 属性。
运行实例 »
点击 "运行实例" 按钮查看在线实例