CSS animation-iteration-count Property
- Previous Page animation-fill-mode
- Next Page animation-name
Definition and Usage
animation-iteration-count
The property defines the number of times the animation should play.
See Also:
CSS3 Tutorial:CSS Animation
HTML DOM Reference Manual:animationIterationCount Property
CSS Syntax
animation-iteration-count: n|infinite;
Value | Description | Test |
---|---|---|
n | Define the number of times the animation should play. | Test |
infinite | Specifies that the animation should play infinitely. | Test |
Technical Details
Default Value: | 1 |
---|---|
Inheritance: | no |
Version: | CSS3 |
JavaScript Syntax: | object.style.animationIterationCount=3 |
Browser Support
The numbers in the table indicate the first browser version that fully supports the property.
Numbers with -webkit-, -moz-, or -o- prefixes indicate the first version using the prefix.
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
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- |
- Previous Page animation-fill-mode
- Next Page animation-name