AI CSS Animations

Morphing Blob Loader

A gradient blob that slowly reshapes itself by animating eight border-radius values while it turns, with a blurred copy underneath as a soft glow. Calm enough for long waits.

Also known as: blob animation css, organic shape loader, liquid blob.

HTML

<div class="ldr-morphing-blob" role="status" aria-label="Loading"></div>

CSS

.ldr-morphing-blob {
  --s: var(--ldr-size, 48px);
  --c: var(--ldr-color, #3b82f6);
  --fill: linear-gradient(140deg, oklch(from var(--c) l c calc(h - 45)), var(--c) 50%, oklch(from var(--c) l c calc(h + 55)));
  position: relative;
  width: var(--s);
  height: var(--s);
  border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
  animation: ldr-morphing-blob-morph 4.8s ease-in-out infinite, ldr-morphing-blob-turn 9.6s linear infinite;
}
.ldr-morphing-blob::before,
.ldr-morphing-blob::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--fill);
}
.ldr-morphing-blob::before {
  filter: blur(calc(var(--s) / 5));
  opacity: 0.6;
  transform: scale(0.95);
}
@keyframes ldr-morphing-blob-morph {
  0%, 100% { border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%; }
  25%      { border-radius: 70% 30% 50% 50% / 30% 60% 40% 70%; }
  50%      { border-radius: 38% 62% 33% 67% / 62% 35% 65% 38%; }
  75%      { border-radius: 55% 45% 62% 38% / 42% 68% 32% 58%; }
}
@keyframes ldr-morphing-blob-turn {
  to { transform: rotate(360deg); }
}

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