Style transitionDelay Property
Examples
Wait 2 seconds before the transition effect starts:
document.getElementById("myDIV").style.transitionDelay="2s";
Try it Yourself »
Definition and Usage
The transitionDelay property specifies when the transition effect will start.
The transitionDelay value is measured in seconds (s) or milliseconds (ms).
Browser Support
![]()
Internet Explorer 10, Firefox, Opera, and Chrome support the transitionDelay property.
Safari supports an alternative property, the WebkitTransitionDelay property.
Syntax
Return the transitionDelay property:
object.style.transitionDelay
Set the transitionDelay property:
object.style.transitionDelay="time|initial|inherit"
Property Values
| Value | Description |
|---|---|
| time | Specifies the time to wait before the transition effect starts, in seconds or milliseconds. |
| initial | Sets this property to its default value. Seeinitial。 |
| inherit | Inherits this property from its parent element. Seeinherit。 |
Technical Details
| Default Value: | 0 |
|---|---|
| Return Value: | A string representing the transition-delay property of the element. |
| CSS Version | CSS3 |
Related Articles
CSS Reference:transition-delay property
Other Extensions
Style Object