JSFiddle - React, Tailwind, and code Playground
by rough cheap
HTML
<div class="container">
<div class="anim">
<div class="circle layer-0" style="animation-delay: 0s"></div>
<div class="circle layer-1" style="animation-delay: 0.6s"></div>
<div class="circle layer-1" style="animation-delay: 0.7s"></div>
<div class="circle layer-1" style="animation-delay: 1s"></div>
</div>
</div>
CSS
.container {
height: 100%;
display: flex;
align-items: center;
justify-content: center;
}
.anim {
width: 100vw;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
position: relative;
overflow: hidden;
}
.anim .circle {
border: none;
border-radius: 50%;
position: absolute;
}
.anim .circle.layer-0 {
animation: wave-0 3s ease-out;
}
.anim .circle.layer-1 {
animation: wave-1 3s;
}
@keyframes wave-1 {
0% {
width: 0%;
height: 0%;
border: solid thin #00b0bd;
box-shadow: 0 0 100px inset #0a84fb;
transform: none;
opacity: 1;
}
100% {
width: 180vw;
height: 180vw;
transform: none;
opacity: 0;
}
}
@keyframes wave-0 {
0% {
width: 12vh;
height: 12vh;
border: solid thin #00b0bd;
box-shadow: 0 0 100px inset #0a84fb;
transform: none;
}
16% {
width: 0%;
height: 0%;
border: none;
transform: none;
}
100% {
width: 0%;
height: 0%;
border: none;
transform: none;
}
}