
Text Fill Animation
Text
A focused text reveal for hero statements, editorial intros, product claims, and brand pages where copy should move from atmosphere into clarity.
Focus Text turns a stacked message into a controlled reading sequence.
Every character starts invisible, scaled down to 0.4 and blurred by 18px. A single staggered wave then brings the characters into focus in reading order, 0.05s apart, each taking about 3.2s to sharpen, so neighbouring lines overlap rather than finishing one at a time. The result is a soft sweep of focus across the whole statement.
Use Focus Text when a page needs to slow the eye without slowing the user. It works for hero copy, campaign statements, portfolio intros, product positioning, studio manifestos, launch lines, and brand-led sections where the writing deserves a measured arrival.
The page job is clarity. The animation should help the visitor read the message in the intended order. It should not turn a simple sentence into a vision test with typography.
import FocusText from "@/components/effects/focus-text"; const page = () => { return ( <> <FocusText/> </div> </> )} export default pageA product landing page can use Focus Text in the hero to introduce a three-line positioning statement. Focus sweeps across the characters in reading order, so the first line starts sharpening first and the final line finishes last, just before the visitor reaches the CTA.
The outcome is pacing. The message feels intentional without needing a loud transition, a heavy 3D scene, or a full-screen animation that steals attention from the copy.
A creative studio can use the same pattern for a manifesto-style section where each line carries one part of the brand promise: craft, motion, and commercial clarity.
Not for body copy, legal text, documentation, error messages, form labels, pricing details, or instructions.
Not for long paragraphs. If every line needs time to focus, the page is not cinematic. It is slow.
Not for copy that is weak without motion. Focus Text can pace a good statement; it cannot make a vague one meaningful.
Keep the animated text short. Each character is its own span animating opacity, scale, and a CSS blur filter, so long copy and large blurAmount values get expensive, especially on low-power devices. By default it plays once on mount; with scrub it follows the scroll position between scrollStart and scrollEnd instead.
Let the animation finish and rest. loop is off by default; if you turn it on, the whole reveal repeats after holdDuration, which can feel nervous beside a CTA.
The text renders once as a real h1, split into per-character spans with no duplicate layers. Test it with a screen reader, and if your page already has an h1, adapt the heading level. There is no mobile-specific logic, so lower blurAmount, characterStagger, and raise startScale for small screens yourself.
With reduced motion, the component skips scale, blur, stagger, looping, and scroll linking, and fades all characters in together over 0.3s.
| Prop | Type | Default | Description |
|---|---|---|---|
textColor | string | #ffffff | Text color. |
fontSize | number | 4.5 | Text size in vw units. |
characterStagger | number | 0.05 | Delay between each character reveal. |
revealDuration | number | 3.2 | Duration of each character reveal. |
startScale | number | 0.4 | Starting scale before characters settle. |
blurAmount | number | 18 | Initial blur amount in pixels. |
holdDuration | number | 1.2 | Pause duration after the full reveal completes. Needs Loop on. |
loop | boolean | false | Automatically replay the animation on a loop. |
showReplayButton | boolean | true | Shows the built-in replay button inside the component. |
Focus Text is a React text animation that brings a short statement into clarity character by character, animating each from blurred, scaled down, and transparent to sharp.
Use it when a short stacked statement needs a controlled reading sequence: hero copy, campaign intros, product claims, studio positioning, or editorial section openers.
Not exactly. Blur Text usually reveals a phrase or group of words through a soft blur-in. Focus Text combines blur with a scale-up on every character and staggers them in reading order, so focus sweeps across the statement rather than arriving all at once.
Keep it short. Two to four lines work best. More than that starts to feel like the user is waiting for the page to read itself.
The message renders once as real text inside an h1, with no duplicate layers. It is split into per-character spans, so check how your screen reader reads it, and note that the heading has opacity 0 until the script runs.
No. The message renders once as real text inside an h1, so it stays crawlable. The heading starts at opacity 0 until the script runs, and because the component renders its own h1, check that your page doesn't already have one.
Need a custom effect? Tell us what to create.