CSS3 transition-delay property
Examples
Wait two seconds before switching effect begins:
transition-delay: 2s;
-webkit-transition-delay: 2s; /* Safari */
-webkit-transition-delay: 2s; /* Safari */
try it"
Browser Support
Figures in the table represent the first browser to support the version number of the property.
Immediately following the digital -webkit-, -ms- or -moz- ago in support of the prefix attribute first browser version number.
属性 | |||||
---|---|---|---|---|---|
transition-delay | 26.0 4.0 -webkit- |
10.0 | 16.0 4.0 -moz- |
6.1 3.1 -webkit- |
12.1 10.5 -o- |
Attribute definitions and instructions
transition-delay attribute specifies when to start the transition effect.
transition-delay value is in seconds (S) or milliseconds (ms).
Defaults: | 0 |
---|---|
inherit: | no |
version: | CSS3 |
JavaScript syntax: | object .style.transitionDelay = "2s" |
grammar
transition-delay:time;
值 | 描述 |
---|---|
time | 指定秒或毫秒数之前要等待切换效果开始 |