效果图
<!DOCTYPE html>
<html>
<head>
<style>
@keyframes roll {
form {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
.shuiqiu {
width: 200px;
height: 200px;
border-radius: 50%;
border: 5px solid #00FF8CFF;
margin: 100px auto;
position: relative;
overflow: hidden;
}
.water-ripple{
width: calc(100% - 6px);
height: calc(100% - 6px);
position: relative;
overflow: hidden;
margin: 3px;
border-radius: 50%;
}
.shui {
position: absolute;
width: 1000px;
height: 1000px;
top: 100px;
left: 50%;
margin-left: -500px;
}
.info {
position: absolute;
top: 6px;
left: 21px;
z-index: 100;
}
.title-name {
font-size: 14px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #a1d9ff;
line-height: 20px;
}
.title-icon {
margin-left: 5px;
}
.shuiqiu:hover .shui1 {
animation: roll 5s linear infinite;
}
.shuiqiu:hover .shui2 {
animation: roll 7s linear infinite;
}
.shuiqiu:hover .shui3 {
animation: roll 6s linear infinite;
}
.shuiqiu:hover .shui4 {
animation: roll 10s linear infinite;
}
.shuiqiu:hover .shui5 {
animation: roll 8s linear infinite;
}
.shuiqiu:hover .shui6 {
animation: roll 9.5s linear infinite;
}
.shui1 {
border-radius: 45%;
background: #00FF8CFF;
animation: roll 10s linear infinite;
}
.shui2 {
border-radius: 46%;
background: #00FF8CFF;
animation: roll 14s linear infinite;
}
.shui3 {
border-radius: 47%;
background: #00FF8CFF;
animation: roll 12s linear infinite;
}
.shui4 {
border-radius: 48%;
background: #00FF8CFF;
animation: roll 20s linear infinite;
}
.shui5 {
border-radius: 49%;
background: #00FF8CFF;
animation: roll 16s linear infinite;
}
.shui6 {
border-radius: 50%;
background: #00FF8CFF;
animation: roll 19s linear infinite;
}
</style>
</head>
<body>
<div class="shuiqiu">
<div class="info">
<img src="../img/water.png" alt="" class="title-icon" />
<p class="title-name">水费</p>
</div>
<div class="water-ripple">
<div class="shui shui1"></div>
<div class="shui shui2"></div>
<div class="shui shui3"></div>
<div class="shui shui4"></div>
<div class="shui shui5"></div>
<div class="shui shui6"></div>
</div>
</div>
</body>
</html>