Latest web development tutorials

HTML DOM Style transitionDelay property

Style Object Reference Style Objects

Examples

In Transitions wait two seconds before the start:

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

try it"

Definition and Usage

transitionDelay attribute specifies when to start the transition effect.

transitionDelay value in seconds (s) or milliseconds (ms) meter.


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

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

Safari supports another alternative of the property attribute that WebkitTransitionDelay property.


grammar

Back transitionDelay properties:

object .style.transitionDelay

Setting transitionDelay properties:

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

Property Value

描述
time 规定在过渡效果开始之前需要等待的时间,以秒或毫秒计。
initial 设置该属性为它的默认值。请参阅 initial
inherit 从父元素继承该属性。请参阅 inherit

technical details

Defaults: 0
return value: String representing the transition-delay property element.
CSS version CSS3


related articles

CSS Reference: Transition-Delay property


Style Object Reference Style Objects