AI CSS Animations

Windows Style Dots Spinner

Five dots chase each other around a circle, bunching up on the slow side and spreading out on the fast side, the way the Windows boot and loading indicator does.

Also known as: Windows loading circle, Windows 11 loader.

HTML

<div class="ldr-windows-dots" role="status" aria-label="Loading">
  <span></span><span></span><span></span><span></span><span></span>
</div>

CSS

.ldr-windows-dots {
  --s: var(--ldr-size, 48px);
  --c: var(--ldr-color, #3b82f6);
  position: relative;
  width: var(--s);
  height: var(--s);
}
.ldr-windows-dots span {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: ldr-windows-dots-orbit 2.6s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}
.ldr-windows-dots span::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: calc(var(--s) / 8);
  height: calc(var(--s) / 8);
  margin-left: calc(var(--s) / -16);
  border-radius: 50%;
  background: var(--c);
}
.ldr-windows-dots span:nth-child(2) { animation-delay: 0.1s; }
.ldr-windows-dots span:nth-child(3) { animation-delay: 0.2s; }
.ldr-windows-dots span:nth-child(4) { animation-delay: 0.3s; }
.ldr-windows-dots span:nth-child(5) { animation-delay: 0.4s; }
@keyframes ldr-windows-dots-orbit {
  0%   { transform: rotate(0deg);   opacity: 0; }
  6%   { opacity: 1; }
  94%  { opacity: 1; }
  100% { transform: rotate(720deg); opacity: 0; }
}

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

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