Text reveal
A large statement paragraph; the motion version lights it word by word as you scroll.
Preview
Words go from dim to full strength as the reader scrolls through the paragraph, with a tint of your primary color on the word being read. Scroll the page to see it. With reduced motion turned on, it renders the plain layout.
Sample statement
Most launch pages are written in a weekend and never touched again. Ours is built so the form stores the email, the button takes the payment, and the page still reads well a year later.
Sample statement
Most launch pages are written in a weekend and never touched again. Ours is built so the form stores the email, the button takes the payment, and the page still reads well a year later.
Installation
Run this in a project that already uses shadcn/ui. It adds the component and anything it needs; the motion version also adds the plain one and the motion package.
Usage
import { TextReveal } from "@/components/custom/text-reveal/text-reveal";
<TextReveal
eyebrow="Why we built it"
text="Most launch pages are written in a weekend and never touched again."
/>import { TextRevealMotion } from "@/components/custom/text-reveal/text-reveal-motion";
<TextRevealMotion text="Most launch pages are written in a weekend and never touched again." />Props
| Prop | Type | Default | Description |
|---|---|---|---|
| text* (required) | string | – | The statement. One or two sentences read best. |
| eyebrow | string | – | Small label above the statement. |
| ...props | React.ComponentProps<"section"> | – | Any other section attribute (id, aria-*, data-*, ref) goes to the root element. |
| Prop | Type | Default | Description |
|---|---|---|---|
| text* (required) | string | – | The statement. One or two sentences read best. |
| eyebrow | string | – | Small label above the statement. |
| ...props | React.ComponentProps<"section"> | – | Any other section attribute (id, aria-*, data-*, ref) goes to the root element. |
Accessibility
- The statement is a paragraph, not a heading: give the page its headings elsewhere.
- In the motion version screen readers get the plain sentence once; the word-by-word copy is hidden from them.
- Without JavaScript, and with reduced motion, the text is shown at full strength.
- The motion version follows the visitor's reduced-motion setting and never hides content before it animates.