Style animationIterationCount Property
Style animationIterationCount Property
The animationIterationCount property is used to either set or return how many times an animation should be played.
Syntax:-
Its syntax is:- object.style.animationIterationCount OR object.style.animationIterationCount = number|infinite|initial|inherit
Return:-
Its return is:- string having animation-iteration-count property of an element
Further Explanation:-
Value | Description |
---|---|
number | A number that defines how many times an animation should be played. |
infinite | Specifies that animation should be played infinite times. |
initial | Sets property to its default value. |
inherit | Inherits property from its parent element. |