CSS3 animation-duration Property


Example

Set the animation to complete within two seconds:

animation-duration:2s; -webkit-animation-duration:2s; /*Safari and Chrome*/

Try it Yourself »

Browser Support

The numbers in the table indicate the first browser version that supports the property.

The number preceding -webkit-, -ms-, or -moz- is the first browser version that supports the prefixed property.

Property
animation-duration 43.0
3.0 -webkit-
10.0 16.0
5.0 -moz-
9.0
4.0 -webkit-
30.0
15.0 -webkit-
12.0 -o-

Tag definition and usage instructions

The animation-duration property defines how many seconds or milliseconds an animation takes to complete one cycle.

Default Value: 0
Inherited: no
version: CSS3
JavaScript Syntax: object object.style.animationDuration="3s"


Syntax

animation-duration: time;

Value Description
time Specifies the time it takes for an animation to complete one playback cycle. The default value is 0, which means there is no animation effect.


Related Articles

CSS3 Tutorial:CSS3 Animations

other extensions