animation-iteration-count property

This topic has not yet been rated - Rate this topic

Specifies the number of times an animation cycle is played.

This property is read/write.

CSS Animations Module Level 3, Section 3.5

Syntax

animation-iteration-count: [ 1 | <number> | infinite ] [ , [ 1 | <number> | infinite ] ] *

Property values

One or more repetition counts, separated by commas.

1

Initial value. The animation is played once, from beginning to end.

number

The animation is repeated the specified number of times. This number can be a floating-point value.

infinite

The animation is repeated forever.

CSS information

Applies Toblock-level and inline-level elements
Mediavisual
Inheritedno
Initial Value1

Standards information

Remarks

This property accepts non-integer values. If a non-integer value is specified, the animation terminates mid-cycle.

If "0" is specified, no animation is applied.

If a negative value is specified, the value is ignored and "0" is used instead.

This property cannot be applied to a keyframe.

To learn more about Cascading Style Sheets (CSS) animations, see How to bring your webpage to life with CSS transforms, transitions, and animations.

See also

CSSStyleDeclaration
currentStyle
style
a
abbr
b
bdo
br
cite
code
em
i
img
input
kbd
label
q
samp
select
small
span
strong
sub
sup
textArea
var
address
blockQuote
div
dl
fieldSet
form
ol
p
pre
table
ul
dd
dt
li
tBody
td
tFoot
th
tHead
tr
button
del
ins
map
object
script
How to bring your webpage to life with CSS transforms, transitions, and animations
Internet Explorer 10 Guide for Developers: CSS Animations

 

 

Build date: 11/29/2012

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.