Easy Tutorial
❮ Met Canvas Createradialgradient Prop Namednodemap Length ❯

Style animationIterationCount Property

Style Object

Example

Change the animationIterationCount property of a <div> element:


Definition and Usage

The animationIterationCount property sets or returns the number of times an animation should be played.


Browser Support

Only Firefox supports the animationIterationCount property.


Syntax

Return the animationIterationCount property:

Set the animationIterationCount property:

Property Values

Value Description
number A number defining the number of times an animation should be played. The default value is 1.
infinite Specifies that the animation should be played infinite times (forever).
initial Sets this property to its default value. See initial
inherit Inherits this property from its parent element. See inherit

Technical Details

Default Value: 1
Return Value: String, representing the animation-iteration-count property of the element.
--- ---
CSS Version CSS3
--- ---

Related Articles

CSS Reference: animation-iteration-count Property


Style Object

❮ Met Canvas Createradialgradient Prop Namednodemap Length ❯