<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<style>
@keyframes zhen {
0% {
transform: rotate(88deg);
}
25% {
transform: rotate(0);
}
50% {
transform: rotate(-88deg);
}
75% {
transform: rotate(0);
}
100% {
transform: rotate(88deg);
}
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
.item {
width: 200px;
height: 200px;
background-color: #59488b;
margin: 0 auto;
position: relative;
overflow: hidden;
}
.qiu {
width: 70px;
height: 70px;
border-radius: 50%;
background-color: transparent;
border: 3px solid white;
margin: 60px auto;
overflow: hidden;
position: relative;
}
.shui {
width: 70px;
height: 30px;
background-color: white;
margin-top: 41px;
}
.zhen {
width: 3px;
height: 24px;
background-color: white;
position: absolute;
left: 30px;
top: 19px;
transform-origin: center bottom;
animation: zhen 3s linear infinite;
}
</style>
</head>
<body>
<div class="item">
<div class="qiu">
<div class="shui"></div>
<div class="zhen"></div>
</div>
</div>
</body>
</html>
半水球动画
最新推荐文章于 2023-05-27 01:38:30 发布