The animation-iteration-count CSS property specifies the number of times an animation cycle is played.
object.style.animationIterationCount = "value";
<'animation-iteration-count'> = <single-animation-iteration-count>#
<single-animation-iteration-count> = infinite | <number>
The animation will repeat forever.
An integer or zero or more decimal digits followed by a dot (.) followed by one or more decimal digits. The first character may be preceded by a sign (- or +). The last character may be succeeded by an exponent (e or E) and an integer.