Skip to content

Text Shimmer

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

Animated GradientsHTMLCSSany framework

NudaUI

Copy into your project

HTML
<!-- Text Shimmer -->
<h2 class="nuda-gradient-text-shimmer">NudaUI</h2>
CSS
.nuda-gradient-text-shimmer {
  margin: 0;
  font: 800 40px/1.1 system-ui,sans-serif;
  background: linear-gradient(90deg,#3f3f46 0%,#3f3f46 30%,#e4ff54 50%,#3f3f46 70%,#3f3f46 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: nuda-gradient-text-shimmer-sweep 2.6s linear infinite;
}

@keyframes nuda-gradient-text-shimmer-sweep {
  to {
    background-position: -200% 0;
  }
}

@media (prefers-reduced-motion:reduce) {
  .nuda-gradient-text-shimmer {
    animation: none;
    background-position: 50% 0;
  }
}

How to use Text Shimmer

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