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

HTML DOM Style transitionDelay property

Style transitionDelay property

Style Object Reference The Style object

Example

Wait 2 seconds before the transition effect starts:

document.getElementById("myDIV").style.transitionDelay="2s";

Try it »


Definition and Usage

The transitionDelay property specifies when the transition effect starts.

The transitionDelay value is measured in seconds (s) or milliseconds (ms).


Browser support

Internet Explorer Firefox Opera Google Chrome Safari

Internet Explorer 10, Firefox, Opera and Chrome support the transitionDelay property.

Safari supports another property that can replace this property, namely the WebkitTransitionDelay property.


Syntax

Return the transitionDelay property:

object

.style.transitionDelay

Set the transitionDelay property:

object

.style.transitionDelay="

time

|initial|inherit"

Attribute values

Value Description
time Specifies the time to wait before the transition effect starts, measured in seconds or milliseconds.
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-delay property of an element.
CSS version CSS3

Related Articles

CSS Reference Manual:transition-delay property


Style Object Reference The Style object