Back to components
ComponentTypographyFree

Color Sweep Heading React component

A dimmed heading that fills with a colour gradient from left to right as it comes into view, and follows the pointer back and forth.

About the Color Sweep Heading component

Color Sweep Heading starts as a quiet grey line and fills with colour from left to right as it comes into view. Move the pointer over it and the edge of the colour follows you.

The edge is soft, so the gradient feels poured in rather than wiped on, and the real text stays underneath for screen readers.

When to use it

Use it for section titles that deserve a moment of colour on an otherwise neutral page.

One per screen is enough. Several sweeps at once compete with each other.

Installation

Add the Color Sweep Heading component to your project with the shadcn CLI. It lands in components/color-sweep-heading.tsx as plain React + Tailwind CSS source you own and can edit.

Install
Copied!
npx shadcn@latest add @reactframe/color-sweep-heading

More Typography components

Signal Glitch Title
Free
Shimmer Text
Free
Gravity Letters
Free
Typewriter Text
Free
Focus Sweep Text
Free
Word Rotator
Free