CSS Transition-delay属性的用法
使用 transition-delay属性可以延迟CSS的过渡效果。您可以尝试运行以下代码来设置1秒的过渡延迟
示例
<!DOCTYPE html>
<html>
<head>
<style>
div {
width: 150px;
height: 150px;
background: blue;
transition: width 3s;
transition-delay: 1s;
}
div:hover {
width: 250px;
}
</style>
</head>
<body>
<h1>Heading One</h1>
<p>Hover over the below box to change its width. It begins with a delay of 1 second.</p>
<div></div>
</body>
</html>热门推荐
10 双十一祝福语大全简短
11 分手快乐祝福语简短
12 科研文案祝福语简短励志
13 高考已上岸祝福语简短
14 结婚婚庆祝福语简短
15 新年探亲祝福语简短精辟
16 麻辣拌店祝福语简短
17 祝福语简短唯美10字
18 朋友领证祝福语长文简短