<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>动画</title>
<style type="text/css">
.box{
width: 200px;
height: 200px;
background-color: red;
transition: all 1000ms ease;
}
.box:hover{
width: 200px;
height: 200px;
background-color: yellow;
border-radius: 100px;
}
</style>
</head>
<body>
<div class="box"></div>
</body>
</html>
鼠标移动前 效果:

鼠标移动后 效果:

网友评论