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>热门推荐
2 聚餐会祝福语简短
10 生女儿的祝福语简短
11 元旦的祝福语简短 公司
12 六一祝福语简短感动女生
13 长辈钻石婚祝福语简短
14 喜得孙子祝福语简短独特
15 牛年女神节祝福语简短
16 怎么说祝福语简短
17 近代生日祝福语简短精辟
18 发小结婚简短祝福语