Style transitionDuration property
Example
Speed up the transition effect:
document.getElementById("myDIV").style.transitionDuration="1s";
Try it »
Definition and Usage
The transitionDuration property sets or returns the time (in seconds or milliseconds) it takes to complete the transition effect.
Browser support

Internet Explorer 10, Firefox, Opera and Chrome support the transitionDuration property.
Safari supports another property that can replace this property, namely the WebkitTransitionDuration property.
Syntax
Return the transitionDuration property:
object
.style.transitionDuration
Set the transitionDuration property:
object
.style.transitionDuration="
time
|initial|inherit"
Attribute values
| Value | Description |
|---|---|
| time | Specifies the time (in seconds or milliseconds) it takes to complete the transition effect. The default value is 0, meaning no effect will occur. |
| 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: | A string, representing the transition-duration property of an element. |
| CSS version | CSS3 |
Related Articles
CSS Reference Manual:transition-duration property
The Style object