Three rings of shrinking size tumble around a still core, each on its own axis and at its own speed, like a gimbal. Plain rotateX inside a rotated frame, with perspective.
Also known as: gimbal loader, 3d rings spinner, armillary sphere loader.
<div class="ldr-gyroscope" role="status" aria-label="Loading"> <span></span><span></span><span></span> </div>
.ldr-gyroscope {
--s: var(--ldr-size, 48px);
--c: var(--ldr-color, #3b82f6);
position: relative;
width: var(--s);
height: var(--s);
perspective: calc(var(--s) * 3);
}
.ldr-gyroscope::after {
content: "";
position: absolute;
inset: 41%;
border-radius: 50%;
background: var(--c);
box-shadow: 0 0 calc(var(--s) / 8) color-mix(in srgb, var(--ldr-color, #3b82f6) 50%, transparent);
}
.ldr-gyroscope span {
position: absolute;
inset: 0;
box-sizing: border-box;
border: calc(var(--s) / 16) solid var(--c);
border-radius: 50%;
animation: ldr-gyroscope-tumble 2.4s linear infinite;
}
.ldr-gyroscope span:nth-child(2) {
--axis: 60deg;
inset: 12%;
border-color: color-mix(in srgb, var(--ldr-color, #3b82f6) 75%, transparent);
animation-duration: 1.8s;
animation-delay: -0.6s;
}
.ldr-gyroscope span:nth-child(3) {
--axis: 120deg;
inset: 24%;
border-color: color-mix(in srgb, var(--ldr-color, #3b82f6) 55%, transparent);
animation-duration: 1.2s;
animation-delay: -0.8s;
}
@keyframes ldr-gyroscope-tumble {
from { transform: rotate(var(--axis, 0deg)) rotateX(0deg); }
to { transform: rotate(var(--axis, 0deg)) rotateX(360deg); }
}
@media (prefers-reduced-motion: reduce) {
.ldr-gyroscope, .ldr-gyroscope *, .ldr-gyroscope::before, .ldr-gyroscope::after, .ldr-gyroscope *::before, .ldr-gyroscope *::after {
animation-duration: 3s;
}
}--ldr-color on the element or a parent.
Currently previewing #3b82f6.--ldr-size. Every dimension in the snippet is
derived from it. Currently previewing 64px.animation shorthand.
Delays on the children are relative, so they keep their rhythm.role="status" and an
aria-label so screen readers announce the wait. The reduced-motion rule
at the end slows the animation for users who asked for less motion.