Wensity Labs

Text Spectrum

Text 12

About

Animated multi-color gradient text fill for headlines that drifts across the glyphs using a CSS-only background-position loop, with reduced-motion and off-screen auto-pause support.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Text Spectrum to your project and fits it to your theme.

Code

How Text Spectrum is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { TextSpectrum } from "@/components/ui/text-spectrum";

export default function TextSpectrumDemo() {
  return (
    <div className="flex min-h-[240px] w-full items-center justify-center bg-background px-6">
      <h1 className="text-4xl font-semibold tracking-tight text-foreground sm:text-5xl">
        <TextSpectrum text="Animated Spectrum Text" />
      </h1>
    </div>
  );
}

More by Wensity Labs

View all
  • Sidebar

    Sidebar

    438
  • Calendar

    Calendar

    332
  • Button

    Button

    165
  • Color Picker

    Color Picker

    109
  • Image Comparison Slider

    Image Comparison Slider

    90
  • AI Prompt Input

    AI Prompt Input

    87
  • Text Morphing

    Text Morphing

    67
  • Carousel

    Carousel

    64

More in Text

View all
  • Vertical Cut Reveal Characters

    Vertical Cut Reveal Characters

    135
  • Astryx Chat Tokenized Text

    Astryx Chat Tokenized Text

    10
  • Per Word Crossfade

    Per Word Crossfade

    20
  • Blur Reveal

    Blur Reveal

    393
  • Text Reveal

    Text Reveal

    401
  • Scroll Fill Headline

    Scroll Fill Headline

    61
  • Apple Hello Effect

    Apple Hello Effect

    689
  • Reveal Text

    Reveal Text

    163