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
css animation-iteration-count属性 语法
animation-iteration-count属性怎么用?
animation-iteration-count属性是用于定义动画播放次数的;设置animation-iteration-count属性的值为infinite,就可实现动画的无限循环播放。
作用:animation-iteration-count 属性定义动画的播放次数。
语法:animation-iteration-count: n|infinite;
说明:n 定义动画播放次数的数值。infinite 规定动画应该无限次播放。
注释:Internet Explorer 9 以及更早的版本不支持 animation-iteration-count 属性。
css animation-iteration-count属性 示例
<!DOCTYPE html>
<html>
<head>
<style>
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;}
}
</style>
</head>
<body>
<p><strong>注释:</strong>Internet Explorer 9 以及更早的版本不支持 animation-iteration-count 属性。</p>
<div></div>
</body>
</html>运行实例 »
点击 "运行实例" 按钮查看在线实例
热门推荐
- css 动画无法循环播放怎么办_设置 animation iteration count 为 infinite
- css 动画中的无限循环效果_如何使用 animation-iteration-count
- css动画重复闪烁怎么办_结合animation fill mode和iteration count控制
- css动画无法循环怎么办_设置animation iteration count infinite实现无限循环
- css动画循环不平滑怎么办_使用animation iteration count和ease-in-out控制
- cssanimate.css动画重复触发异常怎么办_设置animation iteration count和fill mode