AI CSS Animations

AI Gradient Orb Loader

A soft orb of blurred color blobs drifting around each other while the whole sphere breathes, like a voice assistant listening. Two blobs are hue-rotated from your accent.

Also known as: siri orb animation, ai voice orb, gradient blob loader.

HTML

<div class="ldr-ai-gradient-orb" role="status" aria-label="Thinking">
  <span></span><span></span><span></span>
</div>

CSS

.ldr-ai-gradient-orb {
  --s: var(--ldr-size, 48px);
  --c: var(--ldr-color, #3b82f6);
  position: relative;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(circle at 50% 65%, var(--c), color-mix(in srgb, var(--ldr-color, #3b82f6) 55%, transparent));
  box-shadow: 0 0 calc(var(--s) / 5) color-mix(in srgb, var(--ldr-color, #3b82f6) 30%, transparent);
  animation: ldr-ai-gradient-orb-breathe 3.2s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
.ldr-ai-gradient-orb span {
  position: absolute;
  left: 34.5%;
  top: 12.5%;
  width: 75%;
  height: 75%;
  border-radius: 50%;
  background: var(--c);
  transform-origin: 20.7% 50%;
  filter: blur(calc(var(--s) / 9));
  animation: ldr-ai-gradient-orb-drift 3s linear infinite;
}
.ldr-ai-gradient-orb span:nth-child(2) {
  filter: blur(calc(var(--s) / 9)) hue-rotate(50deg);
  animation-duration: 4.2s;
  animation-direction: reverse;
  animation-delay: -1.4s;
}
.ldr-ai-gradient-orb span:nth-child(3) {
  filter: blur(calc(var(--s) / 9)) hue-rotate(-45deg) brightness(1.3);
  animation-duration: 5.4s;
  animation-delay: -3.6s;
}
.ldr-ai-gradient-orb::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgb(255 255 255 / 0.6), transparent 38%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.18);
}
@keyframes ldr-ai-gradient-orb-drift {
  to { transform: rotate(360deg); }
}
@keyframes ldr-ai-gradient-orb-breathe {
  0%, 100% { transform: scale(0.9); }
  50%      { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .ldr-ai-gradient-orb, .ldr-ai-gradient-orb *, .ldr-ai-gradient-orb::before, .ldr-ai-gradient-orb::after, .ldr-ai-gradient-orb *::before, .ldr-ai-gradient-orb *::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