<!DOCTYPE html>
<html>
<head>
<title>1341</title>
<style type="text/css">
.div1{
width: 200px;
height: 200px;
background-color: blue;
}
.div1:hover{
-webkit-animation:cao 5s forwards 50;
cursor: pointer;
}
@-webkit-keyframes cao{
0%{background: red;border-radius: 10%}
50%{background: black;width: 400px;border-radius: 50%}
100%{background: yellow;}
}
</style>
</head>
<body>
<div class="div1"></div>
</body>
</html>
<html>
<head>
<title>1341</title>
<style type="text/css">
.div1{
width: 200px;
height: 200px;
background-color: blue;
}
.div1:hover{
-webkit-animation:cao 5s forwards 50;
cursor: pointer;
}
@-webkit-keyframes cao{
0%{background: red;border-radius: 10%}
50%{background: black;width: 400px;border-radius: 50%}
100%{background: yellow;}
}
</style>
</head>
<body>
<div class="div1"></div>
</body>
</html>