Skip to content
Browse docs and components

Text Reveal

text-reveal

A headline that arrives word by word, by blur, rise or fade, the first time it scrolls into view. It plays once, the full sentence is in the accessible name from the start, and reduced motion shows the words straight away.

Responsive

Install

$npxshadcnadd@forme/text-reveal

Adds the component, its registry dependencies, and the token stylesheet you import once.

Usage

import { TextReveal } from "@/components/forme/text-reveal/text-reveal";

<TextReveal as="h1" variant="blur">Components you own, not rent.</TextReveal>

When to use

Reach for it

  • The one headline on a page that deserves an entrance.

Use something else

  • Body copy, or text that animates on every scroll — text people have to wait for is text they skip.

API reference

Read from the source, so it is the API of the file you install. A prop marked * is required.

TextReveal

A heading that arrives a word at a time the first time it scrolls into view.

PropTypeDefaultDescription
children*string—Plain text. It is split into words, so markup inside would be lost.
asElementType"p"The element to render: h1, h2, p.
variant'blur' | 'rise' | 'fade'"blur"
staggernumber0.06Seconds between words.
delaynumber0Seconds before the first word.
classNamestring—

Accessibility

  • The full sentence is in the accessibility tree from the first frame; the animated words are hidden from it.

Motion

  • Words arrive one at a time the first time the heading scrolls into view, and only that once.
  • stagger and delay set the rhythm; reduced motion shows the words at once.