Style transitionDelay attribute

Definition and Usage

transitionDelay Attribute specifies when the transition effect should begin.

transitionDelay values are defined in seconds (s) or milliseconds (ms).

See also:

CSS Reference Manual:transition-delay property

Example

Wait 2 seconds before the transition effect begins:

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

Try it yourself

Syntax

Return transitionDelay property:

object.style.transitionDelay

Set transitionDelay property:

object.style.transitionDelay = "time|initial|inherit"

Attribute value

Value Description
time Specifies the number of seconds or milliseconds to wait before the transition effect begins.
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 that represents the element's transition-delay property.
CSS version: CSS3

Browser support

Table numbers indicate the first browser version that fully supports this attribute.

Chrome Edge Firefox Safari Opera
Chrome Edge Firefox Safari Opera
26.0 10.0 16.0 6.1 12.1