CSS animation-iteration-count property
Browser support · legacy reference
ChromeFully supports
SafariFully supports
FirefoxFully supports
Internet ExplorerFully supports
EdgeFully supports
OperaFully supports
Description
CSS animation-iteration-count property represents the number of times an animation cycle repeats itself.
Syntax
animation-iteration-count : +ve value | infinite
Property values
+ve integerDefault
-
A positive integer represents the number of times an animation cycle repeats itself.
'1' means the animation completes its cycle only once from beginning to end.
- Try it
animation-iteration-count: 1; +ve fractional value
-
If there is a fractional value, the animation cycles repeat themselves completely for an integral part and partially for the fractional part. 1.5 means one and half of the cycle.
- Try it
animation-iteration-count: 1.5;
Applicable to
It applies to all elements