Source code:
<!DOCTYPE html>
<html lang=”en”>
<head>
<meta charset=”UTF-8″>
<meta name=”viewport” content=”width=device-width, initial-scale=1.0″>
<title>Pulsing Ripple Loader</title>
<style>
body {
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background: radial-gradient(circle, #6a11cb, #2575fc);
font-family: Arial, sans-serif;
overflow: hidden;
}
/* Loader Container */
.loader-container {
position: relative;
width: 120px;
height: 120px;
}
.ripple {
position: absolute;
width: 100%;
height: 100%;
border: 4px solid white;
border-radius: 50%;
animation: pulse 1.5s infinite;
}
.ripple:nth-child(2) {
animation-delay: 0.5s;
}
.ripple:nth-child(3) {
animation-delay: 1s;
}
/* Animation */
@keyframes pulse {
0% {
transform: scale(0.5);
opacity: 1;
}
100% {
transform: scale(2.5);
opacity: 0;
}
}
/* Main Content */
.main-content {
display: none;
text-align: center;
color: white;
font-size: 2rem;
animation: fadeIn 1s ease-out forwards;
}
/* Fade-In Animation */
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
/* Hide Loader and Show Content */
body.loaded .loader-container {
display: none;
}
body.loaded .main-content {
display: block;
}
</style>
</head>
<body>
<div class=”loader-container”>
<div class=”ripple”></div>
<div class=”ripple”></div>
<div class=”ripple”></div>
</div>
<div class=”main-content”>
Welcome to the main page!
</div>
</body>
</html>