Export (0) Print
Expand All

animation-duration property

Specifies the length of time to complete one cycle of the animation.

This property is read/write.

CSS Animations Module Level 3, Section 3.3Internet Explorer 10

 

Syntax

animation-duration: <time> [ , <time> ] *

Property values

One or more transition times, separated by commas.

time

Floating-point number, followed by a time units designator ("ms" or "s"). For more information about the supported time units, see CSS Values and Units Reference.

CSS information

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

Standards information

Remarks

Each animation-duration property is paired with a corresponding animation-name property.

If more animation-duration values are declared than corresponding animation-name values, the excess animation-duration values are ignored.

If fewer animation-duration values are declared than corresponding animation-name values, the list of animation-duration values is repeated from the beginning until the animation-name values are exhausted.

Do not use the Microsoft vendor prefix ("-ms-") before the Cascading Style Sheets (CSS) animations properties. They are supported unprefixed in Internet Explorer 10 and later.

To learn more about CSS animations, see How to bring your webpage to life with CSS transforms, transitions, and animations.

As of Internet Explorer for Windows Phone 8.1 Update, Internet Explorer for Windows Phone supports "-webkit-animation-duration" as an alias for this property.

See also

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

 

 

Show:
© 2014 Microsoft