Easy Tutorial
❮ Met Console Table Prop Url Size ❯

animationDuration Property

Style Object

Example

Change the animationDuration property of a <div> element:


Definition and Usage

The animationDuration property defines the number of seconds an animation takes to complete one cycle.


Browser Support

Only Firefox supports the animationDuration property.


Syntax

Return the animationDuration property:

Set the animationDuration property:

Property Values

Value Description
time Specifies the length of time an animation should take to complete. The default value is 0, meaning there is no animation.
initial Sets this property to its default value. See initial
inherit Inherits this property from its parent element. See inherit

Technical Details

Default value: 0
Return value: String, representing the animation-duration property of the element.
--- ---
CSS version CSS3
--- ---

Related Articles

CSS Reference: animation-duration Property


Style Object

❮ Met Console Table Prop Url Size ❯