How it works
This text reveal animation brings a headline in letter by letter, each character rising from behind an invisible line as if it were pushed up from under the page. It is the entrance used on editorial sites, agency portfolios and product launch pages.
The mask is just the wrapper: an inline-flex element with overflow: hidden and line-height 1.15. Each character is its own inline-block span that starts at translateY(110%), fully below the clipping edge, and animates to translateY(0) once. The delays are index times Stagger, and fill-mode both keeps letters hidden until their turn. The extra 10% beyond 100% makes sure descenders like g and y are fully hidden at the start.
Parameters: Text (up to 24 characters), Font size, Color, Duration, Stagger and Easing. A small Stagger (0.02 to 0.05s) reads as a single smooth reveal; larger values turn it into a typing-like sequence. The default expo-out gives each letter a fast rise and a soft landing. Try it on a hero headline right after page load or when a section enters the viewport.
The wrapper has aria-label with the full text and the letter spans are aria-hidden, so assistive tech reads the headline normally. Because the spans are inline-block in a flex row, the text does not wrap; for multi-line headlines, split by words or lines instead of characters.
How do I reveal the text word by word instead?
Split the string by spaces instead of characters, wrap each word in its own inline-block span inside an overflow: hidden wrapper, and keep the same rise keyframe and delays. Word reveals are faster to read and let longer headlines wrap onto several lines, since each word can break naturally.
Why does the reveal use translateY(110%) and not 100%?
At exactly 100% the top of a letter's box lines up with the bottom edge of the mask, but descenders and some accents can extend beyond the box and peek through. The extra 10% pushes every glyph fully out of sight, so nothing shows before the animation starts.
Can I replay the text reveal on scroll?
This preset runs once when it appears. To trigger it on scroll, combine it with the approach from the Reveal on scroll preset: keep the letters at their starting transform until an is-inview class is added by an IntersectionObserver. In React, put whileInView on the wrapper and pass the stagger through Motion variants.