animation-iteration-count

Single values

infinite | number [,...].

Applicable to...

Block and Inline Elements

Inherited

No

Description

Defines the amount of cycles in CSS-animations. The standard value is 1 and says that an animation should be shown once. Decimal values will only show a part of the animation in the last cycle. 0.5 would show half an animation. 0 defines that there is no animation. Infinite lets the animation repeat itself infinitely.

Prefixes

We need -o- for Opera, -moz- for Firefox and -webkit- for Webkit browsers like Safari and Chrome.

Examples

Compatibility

Chrome Firefox Internet Explorer Opera Safari
4.0+ 5.0+ 10.0+ 12.0+ 4.0+




Comment