Skip to content

Instantly share code, notes, and snippets.

@tagr
Last active June 5, 2025 00:50
Show Gist options
  • Save tagr/52c63ea96e47b9d063b0b2d441b57348 to your computer and use it in GitHub Desktop.
Save tagr/52c63ea96e47b9d063b0b2d441b57348 to your computer and use it in GitHub Desktop.
water waves - css
<div class="water-round-container">
<div class="water-wave1"></div>
<div class="water-wave2"></div>
<div class="water-wave3"></div>
</div>
.water-round-container {
margin: 0 auto;
overflow: hidden;
position: relative;
width: 300px;
height: 300px;
border-radius: 50%;
border: 3px solid silver;
text-align: center;
line-height: 50px;
animation: water-waves linear infinite;
}
.water-wave1 {
position: absolute;
top: 40%;
left: -25%;
background: #33cfff;
opacity: 0.7;
width: 200%;
height: 200%;
border-radius: 40%;
animation: inherit;
animation-duration: 5s;
}
.water-wave2 {
position: absolute;
top: 45%;
left: -35%;
background: #0eaffe;;
opacity: 0.5;
width: 200%;
height: 200%;
border-radius: 35%;
animation: inherit;
animation-duration: 7s;
}
.water-wave3 {
position: absolute;
top: 50%;
left: -35%;
background: #0f7ae4;
opacity: 0.3;
width: 200%;
height: 200%;
border-radius: 33%;
animation: inherit;
animation-duration: 11s;
}
@keyframes water-waves {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment