search
  • Sign In
  • Sign Up
Password reset successful

Follow the proiects vou are interested in andi aet the latestnews about them taster

Programming Dictionary

Online technical manual for service programmers
Popular searches:
Dictionary homepage HTML/CSS CSS css transition-delay property
css transition-delay property Detailed instructions for use

css transition-delay property

Chinese translation Recent Updates: 2018-05-09 11:35:13

transition

transition

英[trænˈzɪʃn] 美[trænˈzɪʃən, -ˈsɪʃ-]

delay

Delay

UK[dɪˈleɪ] US[dɪˈle]

css transition-delay property syntax

Function:The transition-delay attribute specifies when the transition effect starts. The transition-delay value is in seconds or milliseconds.

Syntax: transition-delay: time

Description: time specifies the time to wait before the transition effect starts, in seconds or milliseconds.​

Note: Internet Explorer 10, Firefox, Opera and Chrome support the transition-delay attribute. Safari supports an alternative -webkit-transition-delay property. Note: Internet Explorer 9 and earlier browsers do not support the transition-delay attribute.

css transition-delay property example

<!DOCTYPE html>
<html>
<head>
<style> 
div
{
width:100px;
height:100px;
background:blue;
transition-property:width;
transition-duration:5s;
transition-delay:2s;
/* Firefox 4 */
-moz-transition-property:width; 
-moz-transition-duration:5s;
-moz-transition-delay:2s;
/* Safari and Chrome */
-webkit-transition-property:width; 
-webkit-transition-duration:5s;
-webkit-transition-delay:2s;
/* Opera */
-o-transition-property:width;
-o-transition-duration:5s;
-o-transition-delay:2s;
}
div:hover
{
width:300px;
}
</style>
</head>
<body>
<div></div>
<p>请把鼠标指针移动到蓝色的 div 元素上,就可以看到过渡效果。</p>
<p><b>注释:</b>过渡效果会在开始前等待两秒钟。</p>
<p><b>注释:</b>本例在 Internet Explorer 中无效。</p>
</body>
</html>

Run instance »

Click the "Run instance" button to view the online instance

css transition-delay property