AI CSS Animations

Circle Notch Spinner

A thick three quarter ring with rounded ends, spinning fast: the shape of the circle-notch icon and Bootstrap's border spinner. One SVG circle with a fixed dash, so it scales cleanly.

Also known as: bootstrap spinner border, three quarter ring spinner, open circle spinner.

HTML

<svg class="ldr-circle-notch" viewBox="0 0 48 48" role="status" aria-label="Loading">
  <circle cx="24" cy="24" r="19" pathLength="100"></circle>
</svg>

CSS

.ldr-circle-notch {
  --s: var(--ldr-size, 48px);
  --c: var(--ldr-color, #3b82f6);
  width: var(--s);
  height: var(--s);
  animation: ldr-circle-notch-spin 0.75s linear infinite;
}
.ldr-circle-notch circle {
  fill: none;
  stroke: var(--c);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 70 30;
}
@keyframes ldr-circle-notch-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .ldr-circle-notch, .ldr-circle-notch *, .ldr-circle-notch::before, .ldr-circle-notch::after, .ldr-circle-notch *::before, .ldr-circle-notch *::after {
    animation-duration: 3s;
  }
}

Tailwind CSS version

The same loader using only Tailwind's built-in animation utilities. No custom keyframes or config needed.

<svg class="h-12 w-12 animate-spin text-blue-500 [animation-duration:0.75s]" viewBox="0 0 48 48" role="status" aria-label="Loading">
  <circle cx="24" cy="24" r="19" pathLength="100" fill="none" stroke="currentColor" stroke-width="6" stroke-linecap="round" stroke-dasharray="70 30"></circle>
</svg>

Customizing this loader

  • Color: set --ldr-color on the element or a parent. Currently previewing #3b82f6.
  • Size: set --ldr-size. Every dimension in the snippet is derived from it. Currently previewing 64px.
  • Speed: change the duration on the animation shorthand. Delays on the children are relative, so they keep their rhythm.
  • Accessibility: the root carries 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.

Similar loaders