Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

CSS3 animation-duration property

CSS3 animation-duration property

Example

Set the animation to complete in two seconds:

animation-duration

:2

s

; -

webkit-animation-duration

:2

s

;

/*

Safari and Chrome

*/

Try it »


Browser support

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

A number immediately before -webkit-, -ms-, or -moz- indicates the first browser version that supports that 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 Notes

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 an animation takes to complete. The default value is 0, meaning no animation effect.

Related Articles

CSS3 tutorial: CSS3 Animations