CSS animation-iteration-count Property
More "Try it Yourself" examples below.
Definition and Usage
The animation-iteration-count
property specifies the number of 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 |
Browser Support
The numbers in the table specify the first browser version that fully supports the property.
Property | |||||
---|---|---|---|---|---|
animation-iteration-count | 43 | 10 | 16 | 9 | 30 |
CSS Syntax
animation-iteration-count: number|infinite|initial|inherit;
Property Values
Value | Description | Demo |
---|---|---|
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 |
More Examples
Related Pages
CSS tutorial: CSS Animations
HTML DOM reference: animationIterationCount property