
Overflow Text Reveal
Text
A boxed-mask text reveal that introduces short statements through a rectangular frame for graphic brand and campaign sections.
Rectangular Text Reveal helps important words arrive with intent: a rectangular mask controls the entrance.
Best on short, high-emphasis text: headlines, launch lines, section openers, proof points. Avoid it on body copy, errors, legal text, or instructions, where legibility cannot be negotiable.
The production risk is the text disappearing into the effect. Ship the final phrase as genuine HTML, keep per-character motion out of the accessibility tree, and note that when motion is reduced the blocks are skipped and each line fades up over 0.9s, 0.12s apart.
import RectangularTextReveal from "@/components/effects/rectangular-text-reveal"; export default function Page() { return ( <RectangularTextReveal overlayEnterDuration={0.35} overlayExitDuration={0.35} direction="bottom" coverDuration={0.4} revealDuration={0.5} baseColor="#ff6b00" overlayColor="#111111" className="max-w-6xl" > <h1 className="text-6xl max-sm:text-3xl leading-[0.95] font-semibold"> A directional rectangular reveal built for expressive, editorial motion systems. </h1> </RectangularTextReveal> );}A music festival site can use Rectangular Text Reveal for its lineup announcement and section headers. Each line is covered by a solid block in the festival colors, which then pulls away to leave the text in place, line after line.
The outcome is impact. The reveal matches the bold, block-based look of the festival's print campaign, while dates, ticket tiers, and venue rules stay as plain text that reads on sight.
Avoid it on body copy, labels, error and legal text, or any wording that has to be read on sight.
Move only the words that carry weight, pre-reserve their space to avoid shift, and skip costly filters on large text blocks.
Assistive technology should hear the phrase once, not character by character; visually split fragments are hidden from the accessibility tree with aria-hidden.
| Prop | Type | Default | Description |
|---|---|---|---|
baseColor | string | #ea580c | Base reveal rectangle color. |
overlayColor | string | #111111 | Overlay reveal rectangle color. Needs Use Overlay on. |
useOverlay | boolean | true | Enables the overlay pass. |
stagger | number | 0.2 | Delay between line reveals. |
coverDuration | number | 0.34 | Cover animation duration. |
revealDuration | number | 0.42 | Reveal animation duration. |
direction | string | left | Reveal direction. |
Use it when a heading needs a rectangular mask controlling its entrance.
Keep the resolved phrase in the DOM, exposed once; mark any duplicated animated fragments hidden from assistive technology.
Not as long as the resolved text is genuine HTML and never trapped in canvas or client-only animation.
Hold the finished text's footprint so wrapping does not jump between breakpoints.
Rectangular Text Reveal skips the rectangle blocks and fades each line up from 32px over 0.9s, staggered 0.12s apart, when it scrolls into view.
Need a custom effect? Tell us what to create.