An arc spins, closes into a full circle, pops, and draws a checkmark before fading and starting over. Use it to preview a save or upload flow; split the keyframes to trigger success for real.
Also known as: loading to success animation, success checkmark animation, completion spinner.
<svg class="ldr-spinner-to-check" viewBox="0 0 48 48" role="status" aria-label="Loading"> <circle class="ldr-spinner-to-check-ring" cx="24" cy="24" r="20" pathLength="100"></circle> <path class="ldr-spinner-to-check-tick" d="M15 24.5l6.2 6.2L33.5 18" pathLength="100"></path> </svg>
.ldr-spinner-to-check {
--s: var(--ldr-size, 48px);
--c: var(--ldr-color, #3b82f6);
width: var(--s);
height: var(--s);
fill: none;
stroke: var(--c);
stroke-width: 4;
stroke-linecap: round;
stroke-linejoin: round;
animation: ldr-spinner-to-check-pop 3.2s ease-in-out infinite;
}
.ldr-spinner-to-check-ring {
transform: rotate(-90deg);
transform-origin: center;
animation: ldr-spinner-to-check-ring 3.2s infinite;
}
.ldr-spinner-to-check-tick {
stroke-dasharray: 100 100;
animation: ldr-spinner-to-check-tick 3.2s infinite;
}
@keyframes ldr-spinner-to-check-ring {
0% { stroke-dasharray: 25 75; stroke-dashoffset: 0; opacity: 0; animation-timing-function: linear; }
5% { opacity: 1; }
40% { stroke-dasharray: 25 75; stroke-dashoffset: -175; animation-timing-function: cubic-bezier(0.3, 0, 0.2, 1); }
52%, 88% { stroke-dasharray: 100 0; stroke-dashoffset: -175; opacity: 1; }
96%, 100% { stroke-dasharray: 100 0; stroke-dashoffset: -175; opacity: 0; }
}
@keyframes ldr-spinner-to-check-tick {
0%, 54% { stroke-dashoffset: 100; opacity: 1; animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
68%, 88% { stroke-dashoffset: 0; opacity: 1; }
96%, 100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes ldr-spinner-to-check-pop {
0%, 52%, 70%, 100% { transform: scale(1); }
60% { transform: scale(1.1); }
}
@media (prefers-reduced-motion: reduce) {
.ldr-spinner-to-check, .ldr-spinner-to-check *, .ldr-spinner-to-check::before, .ldr-spinner-to-check::after, .ldr-spinner-to-check *::before, .ldr-spinner-to-check *::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.