Source code:
<!DOCTYPE html>
<html lang=”en”>
<head>
<meta charset=”UTF-8″>
<meta name=”viewport” content=”width=device-width, initial-scale=1.0″>
<title>Dual Spinning Circle Loader</title>
<style>
body {
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background: linear-gradient(135deg, #350589, #01202f);
font-family: Arial, sans-serif;
overflow: hidden;
}
/* Loader Container */
.loader-container {
position: relative;
width: 100px;
height: 100px;
}
.circle {
position: absolute;
width: 100%;
height: 100%;
border: 6px solid transparent;
border-radius: 50%;
animation: spin 1.5s linear infinite;
}
.circle.one {
border-top: 6px solid #fff;
}
.circle.two {
border-bottom: 6px solid #fff;
animation-direction: reverse;
}
/* Animation */
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
/* 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=”circle one”></div>
<div class=”circle two”></div>
</div>
<div class=”main-content”>
Welcome to the main page!
</div>
</body>
</html>