<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>过渡</title>
<style type="text/css">
div {
width: 300px;
height: 200px;
background-color: pink;
/* transition: all .25s ease|linear|ease-in|ease-out|ease-in-out|cubic-bezier(<number>,<number>,<number>,<number>); */
/* transition: width 1s linear 0s, width 1s linear 0s; */
transition: all 1s;
}
div:hover {
width: 900px;
height: 600px;
}
</style>
</head>
<body>
<div></div>
</body>
</html>
过渡效果
最新推荐文章于 2022-09-01 21:03:32 发布