
Blur Text
Text
A spatial text reveal animation that gives headlines and launch claims a subtle depth-led arrival.
Perspective Text Reveal helps important words arrive with intent: lines arrive with depth.
Reach for it on headlines, launch claims, section openers, and one-line proof. Keep it away from body copy, error messages, legal text, and instructions, where reading has to be effortless.
The main risk is that the words get lost in the motion. The resolved phrase has to be real DOM text, the animation must not spell itself out to a screen reader, and a reduced-motion visitor gets the whole block fading up over 0.8s instead of the tilt.
import PerspectiveTextReveal from "@/components/effects/perspective-text-reveal"; const page = () => { return ( <> <PerspectiveTextReveal scrub={false}> <h1 className="text-[7vw] font-black uppercase leading-[0.84] text-white max-sm:text-[8vw] max-sm:leading-[0.88]"> Lines fall into depth. </h1> </PerspectiveTextReveal> </> )} export default pageA boutique hotel website can use Perspective Text Reveal for the short lines that introduce rooms, dining, and the spa. Each line rotates out of depth into place as the section comes into view, giving the copy a quiet, dimensional entrance that fits a premium brand.
The outcome is presence. The headings feel crafted without slowing the visitor down, and room rates, booking dates, and policies remain plain text that reads immediately.
Not for body text, labels, errors, legal copy, or anything a user must read right away.
Limit motion to the phrase that earns it, hold its layout space ahead of time, and keep heavy filters off large blocks of text.
Make the whole phrase available to assistive technology a single time; where the text is split into per-character spans, mark the duplicates aria-hidden.
| Prop | Type | Default | Description |
|---|---|---|---|
delay | number | 0 | Animation delay in seconds. |
duration | number | 0.8 | Line reveal duration in seconds. |
stagger | number | 0.08 | Delay between revealed lines. |
startOpacity | number | 0 | Opacity the text starts from before it reveals. |
direction | string | top | Side the text swings in from. |
splitBy | string | lines | Animate per character, per word, or per line. |
rotation | number | 70 | Starting tilt in degrees; its sign follows the direction. |
ease | string | power3.out | GSAP ease for the reveal. |
perspective | number | 800 | Perspective distance in px - lower values give a stronger 3D effect. |
Use it when a headline needs lines tilting in with depth.
Ship the final phrase in the DOM and surface it a single time, hiding duplicated animated fragments from assistive technology where needed.
Not when the final text ships as real HTML rather than living inside canvas or client-only animation.
Pre-reserve the final text's space so line breaks stay put across breakpoints.
Perspective Text Reveal skips the per-line tilt and fades the whole block up from 24px over 0.8s when it scrolls into view (or on mount if animateOnScroll is off).
Need a custom effect? Tell us what to create.