CSS3 animation-iteration-count property
Examples
Play Three Animation:
animation-iteration-count:3;
-webkit-animation-iteration-count:3; /*Safari and Chrome*/
-webkit-animation-iteration-count:3; /*Safari and Chrome*/
Browser Support
Figures in the table represent the first browser to support the version number of the property.
Immediately following the digital -webkit-, -ms- or -moz- ago in support of the prefix attribute first browser version number.
属性 | |||||
---|---|---|---|---|---|
animation-iteration-count | 43.0 4.0 -webkit- |
10.0 | 16.0 5.0 -moz- |
9.0 4.0 -webkit- |
30.0 15.0 -webkit- 12.0 -o- |
Tag definitions and instructions
animation-iteration-count property defines how many times the animation should play.
Defaults: | 1 |
---|---|
inherit: | no |
version: | CSS3 |
JavaScript syntax: | object object.style.animationIterationCount = 3 |
grammar
animation-iteration-count:value;
值 | 描述 | 测试 |
---|---|---|
n | 一个数字,定义应该播放多少次动画 | 测试 » |
infinite | 指定动画应该播放无限次(永远) | 测试 » |
related articles
CSS3 tutorial: CSS3 Animation