<div class="radar-box">
<div class="radar-scan">
<div class="ripple r1"></div>
<div class="ripple r2"></div>
<div class="ripple r3"></div>
<div class="radar-line"></div>
<div class="blip"></div>
</div>
<p class="radar-status">QUANTUM RADAR SCANNING</p>
</div>
body {
margin: 0;
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
background: #05130e;
font-family: monospace;
}
.radar-box {
display: flex;
flex-direction: column;
align-items: center;
gap: 2rem;
}
.radar-scan {
width: 160px;
height: 160px;
border-radius: 50%;
border: 1px solid rgba(16, 163, 122, 0.4);
position: relative;
background: radial-gradient(circle, rgba(16, 163, 122, 0.08) 0%, transparent 70%);
overflow: hidden;
box-shadow: 0 0 30px rgba(16, 163, 122, 0.15);
}
.ripple {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
border-radius: 50%;
border: 1px solid #10a37a;
animation: radarRipple 2.5s cubic-bezier(0.1, 0.5, 0.1, 1) infinite;
}
.r1 { width: 50px; height: 50px; animation-delay: 0s; }
.r2 { width: 100px; height: 100px; animation-delay: 0.8s; }
.r3 { width: 150px; height: 150px; animation-delay: 1.6s; }
.radar-line {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border-radius: 50%;
background: conic-gradient(from 0deg, rgba(16, 163, 122, 0.5) 0deg, transparent 60deg);
animation: rotateSweep 2s linear infinite;
}
.blip {
position: absolute;
top: 35px;
right: 45px;
width: 8px;
height: 8px;
background: #34d399;
border-radius: 50%;
box-shadow: 0 0 10px #34d399;
animation: blipFade 2s linear infinite;
}
@keyframes rotateSweep {
to { transform: rotate(360deg); }
}
@keyframes radarRipple {
0% { transform: translate(-50%, -50%) scale(0.3); opacity: 1; }
100% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; }
}
@keyframes blipFade {
0%, 10% { opacity: 0; transform: scale(0.5); }
15% { opacity: 1; transform: scale(1.4); }
40% { opacity: 0.1; }
100% { opacity: 0; }
}
.radar-status {
color: #10a37a;
font-size: 13px;
letter-spacing: 2px;
font-weight: bold;
}
// Radar Sonar Simulation