Play the animation three times:
The animation-iteration-count property defines how many times an animation should be played.
Default value: | 1 |
---|---|
Inherited: | no |
Animatable: | no. Read about animatable |
Version: | CSS3 |
JavaScript syntax: | object.style.animationIterationCount="infinite" Try it |
The numbers in the table specify the first browser version that fully supports the property.
Numbers followed by -webkit-, -moz-, or -o- specify the first version that worked with a prefix.
Property | |||||
---|---|---|---|---|---|
animation-iteration-count | 4.0 -webkit- | 10.0 | 16.0 5.0 -moz- |
4.0 -webkit- | 15.0 -webkit- 12.1 12.0 -o- |
Value | Description | Play it |
---|---|---|
number | A number that defines how many times an animation should be played. Default value is 1 | Play it » |
infinite | Specifies that the animation should be played infinite times (for ever) | Play it » |
initial | Sets this property to its default value. Read about initial | |
inherit | Inherits this property from its parent element. Read about inherit |
CSS3 tutorial: CSS3 Animations
HTML DOM reference: animationIterationCount property