Loading
Loading
Loading
mobile footer

Build the Interaction Layer Your Website is Missing.

Browse All EffectsBrowse All EffectsBrowse All EffectsUpgrade to ProUpgrade to ProUpgrade to Pro

70+ effects free, forever. No credit card.

© 2026 Hyperiux. All Rights Reserved.

AI Component CatalogueHey AI, Learn About Us
Platform

Vault

  • Documentation
  • Pricing
  • Blog
  • Community
  • NPM
  • MCP

Categories

  • All Effects
  • WebGL
  • Text
  • Backgrounds
  • Buttons
  • Carousels
  • Scroll
  • Components
  • Navigation
  • Cursor
  • Transitions
  • Loaders

Documents

  • Introduction
  • Installation
  • CLI
  • Dependencies
  • License

Legal

  • License Agreement
  • Terms of Service
  • Privacy Policy
  • Refund Policy
Socials
  • Twitter / X
  • LinkedIn
  • GitHub
  • Instagram
Contact Us
  • hello@hyperiux.com
New effects, in your inbox

Every new drop, plus the occasional behind-the-scenes build. No spam. Unsubscribe anytime.

All Effects
Featured ComponentsText AnimationsAnimated BackgroundsAnimated ButtonsCarousel EffectsScroll EffectsCreative ComponentsNavigationsCursor EffectsTransitionsLoadersWebGL & 3D Effects
Templates
IntroductionInstallationCLIDependenciesLicense
PricingBlogGithubNPMMCP Doc
Loading
Home/effects/Rectangular Text Reveal

Rectangular Text Reveal

A boxed-mask text reveal that introduces short statements through a rectangular frame for graphic brand and campaign sections.

GSAP
DemoDemoDemo

Tune the Real Props

Base Color

Base reveal rectangle color.

Overlay Color

Overlay reveal rectangle color. Needs Use Overlay on.

Overview

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.


Usage Code

page
1import RectangularTextReveal from "@/components/effects/rectangular-text-reveal";2 3export default function Page() {4 return (5 <RectangularTextReveal6 overlayEnterDuration={0.35}7 overlayExitDuration={0.35}8 direction="bottom"9 coverDuration={0.4}10 revealDuration={0.5}11 baseColor="#ff6b00"12 overlayColor="#111111"13 className="max-w-6xl"14 >15 <h1 className="text-6xl max-sm:text-3xl leading-[0.95] font-semibold">16 A directional rectangular reveal built for expressive,17 editorial motion systems.18 </h1>19 </RectangularTextReveal>20 );21}

Example Production Use Case

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.


Best Used For

  • Graphic brand pages where a framed or block-based reveal matches the design language.
  • Campaign lines where the mask is an art-direction choice, not a gimmick.
  • Rectangular Text Reveal makes a short phrase arrive with timing while keeping the final text readable and indexable.

Not For

Avoid it on body copy, labels, error and legal text, or any wording that has to be read on sight.


Performance Budget

Move only the words that carry weight, pre-reserve their space to avoid shift, and skip costly filters on large text blocks.


Accessibility and Mobile

Assistive technology should hear the phrase once, not character by character; visually split fragments are hidden from the accessibility tree with aria-hidden.


Common Mistakes

  • Using Rectangular Text Reveal on long body copy.
  • Removing the readable text from the DOM.
  • Letting split text cause layout shift.

Changelog

Added reduced-motion support for accessible lower-motion rectangular reveal.
Initial release

API Reference

PropTypeDefaultDescription
baseColorstring#ea580cBase reveal rectangle color.
overlayColorstring#111111Overlay reveal rectangle color. Needs Use Overlay on.
useOverlaybooleantrueEnables the overlay pass.
staggernumber0.2Delay between line reveals.
coverDurationnumber0.34Cover animation duration.
revealDurationnumber0.42Reveal animation duration.
directionstringleftReveal direction.

Questions, Answered.

When should I use Rectangular Text Reveal?

Use it when a heading needs a rectangular mask controlling its entrance.

How do I keep Rectangular Text Reveal accessible?

Keep the resolved phrase in the DOM, exposed once; mark any duplicated animated fragments hidden from assistive technology.

Does Rectangular Text Reveal affect SEO?

Not as long as the resolved text is genuine HTML and never trapped in canvas or client-only animation.

How do I avoid layout shift with Rectangular Text Reveal?

Hold the finished text's footprint so wrapping does not jump between breakpoints.

What should reduced motion do for Rectangular Text Reveal?

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.

Request a Custom Animation

Need a custom effect? Tell us what to create.

Related Effects

Explore All EffectsExplore All EffectsExplore All Effects
Overflow Text Reveal
Pro
GSAP

Overflow Text Reveal

Text

Text Convergence
GSAP

Text Convergence

Scroll

Blur Text
Pro
Motion

Blur Text

Text

Rolling Text
GSAP

Rolling Text

Text

Focus Text
GSAP

Focus Text

Text