Skip to content

Gradient Blob

A copy-paste animated gradients component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.

Animated GradientsHTMLCSSany framework

Copy into your project

HTML
<!-- Gradient Blob -->
<div class="nuda-gradient-blob" role="img" aria-label="Morphing gradient blob"></div>
CSS
.nuda-gradient-blob {
  width: 130px;
  height: 130px;
  background: linear-gradient(135deg,#e4ff54,#22d3ee);
  border-radius: 42% 58% 63% 37%/41% 44% 56% 59%;
  animation: nuda-gradient-blob-morph 8s ease-in-out infinite,nuda-gradient-blob-hue 12s linear infinite;
}

@keyframes nuda-gradient-blob-morph {
  0%,100% {
    border-radius: 42% 58% 63% 37%/41% 44% 56% 59%;
    transform: rotate(0deg);
  }
  50% {
    border-radius: 62% 38% 34% 66%/57% 63% 37% 43%;
    transform: rotate(20deg);
  }
}

@keyframes nuda-gradient-blob-hue {
  to {
    filter: hue-rotate(360deg);
  }
}

@media (prefers-reduced-motion:reduce) {
  .nuda-gradient-blob {
    animation: none;
  }
}

How to use Gradient Blob

Paste the HTML where you need it and the CSS into a global stylesheet (or a <style> tag). Every class is prefixed nuda- so it never collides with Tailwind or your own styles. Tweak the CSS custom properties to match your design system.

Works in React, Vue, Svelte, Astro, Next.js, Nuxt, Laravel Blade, Django, Rails — or a single .html file. No npm install, no build step.

More animated gradients components

← Browse all NudaUI components