Skip to content

Gradient Wave

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

Text EffectsHTMLCSSany framework
Gradient Wave

Copy into your project

HTML
<!-- Gradient Wave — animated gradient sweep over text -->
<span class="nuda-gradient-wave">Gradient Wave</span>
CSS
/* ── Gradient Wave ───────────────────────────────────────────
   Customize:
     --nuda-gw-gradient : the sweeping gradient
     --nuda-gw-speed    : sweep duration
   ──────────────────────────────────────────────────────────── */
.nuda-gradient-wave {
  --nuda-gw-gradient: linear-gradient(
    90deg,
    #e4ff54,
    #fafafa,
    #e4ff54,
    #a3b800,
    #e4ff54
  );
  --nuda-gw-speed: 4s;

  font-size: 2rem;
  font-weight: 800;
  background: var(--nuda-gw-gradient);
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent; /* fallback */
  animation: nuda-gradient-wave var(--nuda-gw-speed) linear infinite;
}

@keyframes nuda-gradient-wave {
  to { background-position: -300% center; }
}

/* ── Accessibility ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .nuda-gradient-wave {
    animation: none;
  }
}

How to use Gradient Wave

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 text effects components

← Browse all NudaUI components