Text Reveal
text-revealA 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.
"use client";
import { useState } from "react";
import { Button } from "@/components/forme/button/button";
import { TextReveal } from "@/components/forme/text-reveal/text-reveal";
import type { TextRevealVariant } from "@/components/forme/text-reveal/text-reveal";
const variants: TextRevealVariant[] = ["blur", "rise", "fade"];
export function TextRevealDemo() {
const [variant, setVariant] = useState<TextRevealVariant>("blur");
const [run, setRun] = useState(0);
return (
<div className="flex flex-col gap-6">
<TextReveal
key={`${variant}-${run}`}
as="h3"
variant={variant}
className="max-w-lg text-[2rem] leading-[1.1] font-medium tracking-[-0.03em]"
>
The parts you rebuild on every project, finished once.
</TextReveal>
<div className="flex flex-wrap gap-2">
{variants.map((entry) => (
<Button
key={entry}
size="small"
variant={entry === variant ? "ghost" : "secondary"}
aria-pressed={entry === variant}
onClick={() => {
setVariant(entry);
setRun((count) => count + 1);
}}
className="capitalize"
>
{entry}
</Button>
))}
</div>
</div>
);
}Install
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.
| Prop | Type | Default | Description |
|---|---|---|---|
children* | string | — | Plain text. It is split into words, so markup inside would be lost. |
as | ElementType | "p" | The element to render: h1, h2, p. |
variant | 'blur' | 'rise' | 'fade' | "blur" | |
stagger | number | 0.06 | Seconds between words. |
delay | number | 0 | Seconds before the first word. |
className | string | — |
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.
staggeranddelayset the rhythm; reduced motion shows the words at once.
Related


Confirm Button
A destructive button that grows into its own confirmation on a spring, so the question appears where you are looking. Focus lands on Cancel, Esc or clicking away disarms it, and the confirm button shows a spinner while the action runs.
motion

Dynamic Island
A black pill that morphs on a spring to fit whatever it is showing: a timer, a call, a song or a notification. Content swaps through a short blur crossfade, the corners never stretch mid-morph, and each change is announced politely.
motion

Marquee
A seamless, endlessly scrolling row for logos, photos or testimonials. It pauses on hover and focus, screen readers hear the content once, and reduced motion turns it into a row you scroll by hand. Pure CSS.
motion