FINDING YOUR DIRECTION

0%

UI components / Text

Scroll Reveal Text: a React and Tailwind UI component

A paragraph whose words light up one by one as you scroll through it.

Scroll Reveal Text component preview

Open the live Scroll Reveal Text preview.

About text components

Animated text should support the headline, not compete with it. Keep the real words in the DOM so search engines and screen readers read them, run the effect once or on hover, and respect reduced-motion settings for longer sequences.

Install the Scroll Reveal Text

  1. Create components/ui/scroll-reveal-text.tsx in your React + Tailwind project.
  2. Paste the code. It only imports React; keyframes are defined inside the file.
  3. Import the named component where you need it. The default export is a ready-made demo you can delete.

Frequently asked questions

Is the Scroll Reveal Text component free?

Anyone can open the live preview. Copying the code is included with a Scrollhaus plan.

What do I need to use it?

A React project with Tailwind CSS: Next.js, Vite, Lovable or Bolt. The file only imports React; its animations ship inside the component.

Is it accessible?

It uses native elements and ARIA attributes where needed, keeps keyboard focus visible and works without a mouse.

More text

Browse all 49 UI components · Compare with 21st.dev