Components / Text animationsv1.0.0 · updated 2026-09-12
Reveal Text
Free · MITSplits a statement into words and drives each word's opacity from scroll position on the shared animation loop, so many instances cost one requestAnimationFrame.
textscroll
Every word earns its place, then lights up.
Scroll the page to light the wordsCustomize
Accent
Install
No dependencies beyond React. Copy the file and import it.
- Copy
RevealText.tsxfrom the Code tab intocomponents/brazen/. - Make sure the Brazen tokens are loaded (
tokens.css); colours and timing come from them. - Import it and pass the props below.
Props 2
| Prop | Type | Default | Description |
|---|---|---|---|
children | string | — | The statement. |
hot | string | — | Words appended in the hot colour. |
Features
- Scroll-linked
- Hot-coloured tail words
- Shared rAF loop
Dependencies
react@>=19peer
Works with
- React 19
- Next.js 15+
- TypeScript
Reduced motion
Words still follow scroll, without vertical movement.