Skip to content

Text Fade Reveal

Free

A heading appears piece by piece: each word or letter fades in from nothing, one after another.

  • React 19
  • Tailwind CSS 4

Added Nov 15, 2026 · MIT + Commons Clause

Playground

Loading the preview

Props

Wrap the text of a heading. Chain the next line with delay.

The sample also uses Button. One command adds them with this item:

hero-heading.tsx

TextFadeReveal

<div>
PropTypeDefaultDescription
localestring—The BCP 47 locale for the letter and word split (Intl.Segmenter). Default: the DisplayLocaleProvider locale, else "en-US".
childrenRequiredstring—The text to reveal. A new text reveals again.
by"grapheme""line""word"—The size of the pieces that enter one after another. Default word. line moves the words of one line together, so the lines enter one by one. A script that joins its letters (Arabic) never splits into letters: grapheme reveals it by word.
order"center""edges""end""random""start"—The order in which the pieces (or the lines, with by line) start: start (default, reading order), end, center (from the middle out), edges (from both ends in), or random (a fixed shuffle of each text, the same on the server and in each run).
showboolean—Off plays the text out: the pieces go back to the hidden look, the last piece in first, at half the pace. On again plays it in from where it is. Default on.
trigger"mount""view"—When the reveal starts: view (default) the first time a part of the text is on screen, mount at once.
delaynumber—Seconds to wait before the first piece, to follow another reveal. It holds for each reveal from rest (the first one, and each show on after a whole exit), not for a turn back in the middle of an exit. Default 0.
onComplete—Called when the last piece has landed.
onExitComplete—Called when the last piece has left, after show turned off.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.
  • Use delay to start a lead or a second line after the heading.
  • Use show to play the text out and in again; a turn in the middle goes back from where it is.
  • Use order to start from the middle (center), from both ends (edges), or in a fixed shuffle (random).
Enter
reveal · 400ms a piece · the pieces start one after another: 20ms a letter, 50ms a word, 120ms a line, and the last starts by 0.8s
Exit
revealExit · 250ms a piece · `show` off plays the text out, the last piece first, at half the step
Turn back
reveal · 400ms · a `show` change in the middle of a run moves every piece from where it is, with no stagger
  1. AddedText Fade Reveal.
Open the release