html Copy code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Futuristic Loading Spinner</title>
<style>
body {
margin: 0;
padding: 0;
height: 100vh;
background: radial-gradient(circle at center, #0a0a0a 0%, #000000 100%);
display: flex;
justify-content: center;
align-items: center;
font-family: 'Courier New', monospace;
overflow: hidden;
}
.loading-container {
position: relative;
width: 200px;
height: 200px;
}
.spinner {
position: absolute;
width: 100%;
height: 100%;
border-radius: 50%;
background: conic-gradient(
from 0deg,
transparent 0deg,
#00ffff 90deg,
#0080ff 180deg,
#8000ff 270deg,
transparent 360deg
);
animation: spin 2s linear infinite;
}
.spinner::before {
content: '';
position: absolute;
top: 10px;
left: 10px;
right: 10px;
bottom: 10px;
background: radial-gradient(circle at center, #0a0a0a 0%, #000000 100%);
border-radius: 50%;
}
.inner-ring {
position: absolute;
top: 30px;
left: 30px;
width: 140px;
height: 140px;
border: 2px solid transparent;
border-top: 2px solid #00ffff;
border-right: 2px solid #00ffff;
border-radius: 50%;
animation: spin-reverse 1.5s linear infinite;
}
.core {
position: absolute;
top: 50%;
left: 50%;
width: 60px;
height: 60px;
transform: translate(-50%, -50%);
background: radial-gradient(circle, #00ffff 0%, #0080ff 50%, transparent 70%);
border-radius: 50%;
animation: pulse 2s ease-in-out infinite;
}
.core::before {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 20px;
height: 20px;
transform: translate(-50%, -50%);
background: #ffffff;
border-radius: 50%;
box-shadow: 0 0 20px #00ffff, 0 0 40px #00ffff, 0 0 60px #00ffff;
animation: flicker 0.5s ease-in-out infinite alternate;
}
.orbit {
position: absolute;
top: 50%;
left: 50%;
width: 120px;
height: 120px;
transform: translate(-50%, -50%);
border: 1px solid rgba(0, 255, 255, 0.3);
border-radius: 50%;
animation: spin-slow 4s linear infinite;
}
.orbit::before {
content: '';
position: absolute;
top: -3px;
left: 50%;
width: 6px;
height: 6px;
background: #00ffff;
border-radius: 50%;
transform: translateX(-50%);
box-shadow: 0 0 10px #00ffff;
}
.loading-text {
position: absolute;
bottom: -60px;
left: 50%;
transform: translateX(-50%);
color: #00ffff;
font-size: 14px;
letter-spacing: 3px;
text-transform: uppercase;
animation: text-glow 2s ease-in-out infinite;
}
.progress-bar {
position: absolute;
bottom: -40px;
left: 50%;
transform: translateX(-50%);
width: 150px;
height: 2px;
background: rgba(0, 255, 255, 0.2);
border-radius: 1px;
overflow: hidden;
}
.progress-fill {
height: 100%;
background: linear-gradient(90deg, #00ffff, #0080ff, #8000ff);
border-radius: 1px;
animation: progress 3s ease-in-out infinite;
}
@keyframes spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
@keyframes spin-reverse {
from { transform: rotate(360deg); }
to { transform: rotate(0deg); }
}
@keyframes spin-slow {
from { transform: translate(-50%, -50%) rotate(0deg); }
to { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes pulse {
0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}
@keyframes flicker {
0% { opacity: 1; }
100% { opacity: 0.7; }
}
@keyframes text-glow {
0%, 100% {
text-shadow: 0 0 5px #00ffff, 0 0 10px #00ffff, 0 0 15px #00ffff;
opacity: 1;
}
50% {
text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff, 0 0 30px #00ffff;
opacity: 0.8;
}
}
@keyframes progress {
0% { width: 0%; }
50% { width: 70%; }
100% { width: 100%; }
}
/* Particle effects */
.particle {
position: absolute;
width: 2px;
height: 2px;
background: #00ffff;
border-radius: 50%;
animation: float 4s linear infinite;
}
.particle:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { top: 80%; left: 20%; animation-delay: 1s; }
.particle:nth-child(3) { top: 30%; left: 80%; animation-delay: 2s; }
.particle:nth-child(4) { top: 70%; left: 90%; animation-delay: 3s; }
@keyframes float {
0% { transform: translateY(0px) scale(0); opacity: 0; }
50% { transform: translateY(-20px) scale(1); opacity: 1; }
100% { transform: translateY(-40px) scale(0); opacity: 0; }
}
</style>
</head>
<body>
<div class="loading-container">
<div class="spinner"></div>
<div class="inner-ring"></div>
<div class="orbit"></div>
<div class="core"></div>
<div class="loading-text">Loading</div>
<div class="progress-bar">
<div class="progress-fill"></div>
</div>
</div>
<!-- Floating particles -->
<div class="particle"></div>
<div class="particle"></div>
<div class="particle"></div>
<div class="particle"></div>
</body>
</html>
The entire animation is smooth, uses hardware-accelerated CSS transforms, and creates a high-tech, sci-fi aesthetic perfect for modern web applications. You can easily customize the colors, timing, or add additional elements to match your specific design needs.