Satellite Orbit
Ring · Orbit · space, ui
HTML
<div class="utw-loader-satellite-orbit" role="status"> <span class="utw-loader-satellite-orbit__orbit"></span> <span class="utw-loader-satellite-orbit__sr">Loading…</span> </div>
CSS
/* Ring loader (Orbit) */
.utw-loader-satellite-orbit {
box-sizing: border-box;
position: relative;
display: inline-block;
width: 56px;
height: 56px;
border: 4px solid #e0e7ff;
border-radius: 50%;
}
.utw-loader-satellite-orbit *,
.utw-loader-satellite-orbit *::before,
.utw-loader-satellite-orbit *::after {
box-sizing: border-box;
}
.utw-loader-satellite-orbit__orbit {
position: absolute;
inset: -4px;
animation: utw-loader-satellite-orbit-spin 1.4s linear infinite;
}
.utw-loader-satellite-orbit__orbit::before {
content: '';
position: absolute;
top: -2.5px;
left: calc(50% - 4.5px);
width: 9px;
height: 9px;
border-radius: 50%;
background: #6366f1;
}
.utw-loader-satellite-orbit__sr {
position: absolute;
width: 1px;
height: 1px;
margin: -1px;
padding: 0;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
@keyframes utw-loader-satellite-orbit-spin {
to {
transform: rotate(360deg);
}
}
@keyframes utw-loader-satellite-orbit-calm {
from {
opacity: 1;
}
to {
opacity: 0.5;
}
}
@media (prefers-reduced-motion: reduce) {
.utw-loader-satellite-orbit *,
.utw-loader-satellite-orbit *::before,
.utw-loader-satellite-orbit *::after {
animation: none !important;
}
.utw-loader-satellite-orbit {
animation: utw-loader-satellite-orbit-calm 2s ease-in-out infinite alternate !important;
}
}