Six blades open and close a hexagonal hole while the iris twists, like a camera lens. Each blade is the same clip-path triangle rotated 60deg, so one keyframe animates all six.
Also known as: camera shutter loader, iris spinner, lens aperture animation.
<div class="ldr-aperture-spinner" role="status" aria-label="Loading"> <span style="--i: 0"></span><span style="--i: 1"></span><span style="--i: 2"></span> <span style="--i: 3"></span><span style="--i: 4"></span><span style="--i: 5"></span> </div>
.ldr-aperture-spinner {
--s: var(--ldr-size, 48px);
--c: var(--ldr-color, #3b82f6);
position: relative;
width: var(--s);
height: var(--s);
border-radius: 50%;
overflow: hidden;
animation: ldr-aperture-spinner-twist 2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
.ldr-aperture-spinner span {
position: absolute;
inset: 0;
background: var(--c);
transform: rotate(calc(var(--i) * 60deg));
animation: ldr-aperture-spinner-iris 2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes ldr-aperture-spinner-iris {
0%, 100% { clip-path: polygon(53% 50.58%, 169.91% -16.92%, 169.91% 118.08%); }
50% { clip-path: polygon(53% 24.02%, 169.91% -43.48%, 169.91% 91.52%); }
}
@keyframes ldr-aperture-spinner-twist {
to { transform: rotate(60deg); }
}
@media (prefers-reduced-motion: reduce) {
.ldr-aperture-spinner, .ldr-aperture-spinner *, .ldr-aperture-spinner::before, .ldr-aperture-spinner::after, .ldr-aperture-spinner *::before, .ldr-aperture-spinner *::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.