Pulsating Rings Illusion

Pulsating Rings Illusion

<!DOCTYPE html>
<html lang=”en”>
<head>

<title>Pulsating Rings Illusion</title>
<style>

body{
margin: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background: radial-gradient(circle, #1c1c1c, #0f0f0f);
overflow: hidden;
}

.rings {
position: relative;
width: 200px;
height: 200px;
}

.rings div{
position: absolute;
width: 100%;
height: 100%;
border: 4px solid transparent;
border-radius: 50%;
box-sizing: border-box;
animation: pulse 2s infinite ease-in-out;
}

.rings div:nth-child(1) {
border-color: #ff5733;
animation-delay:0s ;
}

.rings div:nth-child(2) {
border-color: #33ff57;
animation-delay:0.4s ;
}

.rings div:nth-child(3) {
border-color: #5733ff;
animation-delay:0.8s ;
}

.rings div:nth-child(4) {
border-color: #33faff;
animation-delay: 1.2s ;
}

.rings div:nth-child(5) {
border-color: #faff33;
animation-delay: 1.6s ;
}

@keyframes pulse {
0%{
transform: scale(0.5);
opacity: 0.8;
}
50%{
transform: scale(1.2);
opacity: 1;
}
100%{
transform: scale(0.5);
opacity: 0.8;
}
}

 

 

</style>

</head>
<body>

<div class=”rings”>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</div>

</body>
</html>

Scroll to Top