CSS animationiterationcount Property (original) (raw)
CSS animation-iteration-count Property
Last Updated : 23 Aug, 2024
The _animation-iteration-count property in CSS specifies the number of times an animation should be repeated. It can also be set to infinite to repeat the animation indefinitely.
**Syntax
animation-iteration-count: number | infinite | initial | inherit;
**Property Value
- **number: Specifies the number of times the animation should be played. The default is 1.
- **infinite: The animation will repeat indefinitely.
- **initial: Sets the property to its default value.
- **inherit: Inherits the property from its parent element.
**Example: HTML program to illustrate animation-iteration-count
html `
CSS | animation-iteration-count Property