效果图:
源代码:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
body {
background-color: #ccc;
}
img {
display: block;
width: 200px;
height: 200px;
margin: 200px auto;
border-radius: 50%;
transition: all linear 1.5s;
border: 1px solid #00a4ff;
}
img:hover {
transform: rotate(360deg);
}
</style>
</head>
<body>
<img src="image/study.jpg" alt="滚去学习">
</body>
</html>