Menu Home

animation-iteration-count

osbo.com | CSS | Properties | animation-iteration-count

The animation-iteration-count CSS property specifies the number of times an animation cycle is played.

Syntax

CSS

animation-iteration-count: value;

JS

object.style.animationIterationCount = "value";

Values

<'animation-iteration-count'> = <single-animation-iteration-count>#
<single-animation-iteration-count> = infinite | <number>
infinite

The animation will repeat forever.

<number>

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.

Initial

1

Examples

infinite

number

JS

Internal

animation

animation-delay

animation-direction

animation-duration

animation-fill-mode

animation-name

animation-play-state

animation-timing-function

External

World Wide Web Consortium (W3C)