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>热门推荐
5 薛之谦祝福语简短
10 英文写结婚祝福语简短
11 新年恋人祝福语简短创意
12 简短祝福语蛋糕简笔画
13 新年祝福语长辈简短红包
14 送师姐的祝福语简短
15 小年好的祝福语简短
16 简短有力的结婚祝福语
17 姨父生日祝福语简短精辟
18 怎样给人送祝福语简短