
Split Canvas
Scroll
A text fill animation that adds visual emphasis to short phrases, metrics, proof points, and high-impact statements.
Text Fill helps important words arrive with intent: text fill.
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 production 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 should land on the final, readable state at once.
import TextFillAnimation from "@/components/effects/text-fill-animation"; const page = () => { return ( <> <TextFillAnimation text="Design systems should feel effortless, not like you're fighting your own components every time you build." textSize="3vw" textWidth="60%" textColor="#111111" primaryColor="#ff6b00" dimColor="#AAAAAA" backgroundColor="#F0EFE9" id="hero-break" containerClassName="" mobileTextSize="8vw" mobileTextWidth="92%" tabletTextSize="6vw" tabletTextWidth="88%" /> </> );}; export default page;A product design agency can use Text Fill Animation for the one-sentence belief statement on its about page. The section holds in place while the visitor scrolls, and the characters fill in sequence from a dim tone, through a brief accent color, to the final text color.
The outcome is emphasis. The statement is read at the pace of the scroll, so the agency's position lands before the team bios and client list begin.
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 |
|---|---|---|---|
textColor | string | #111111 | Final text color. |
primaryColor | string | #ff6b00 | Highlight color. |
dimColor | string | #AAAAAA | Initial dimmed text color. |
backgroundColor | string | #F0EFE9 | Section background color. |
duration | number | 0.4 | Character fill animation duration in seconds. |
stagger | number | 0.05 | Delay offset between each animated character. |
fillWidth | number | 1 | Width of the color fill sweep band applied to each character. |
Use it when a headline needs its fill animating in to add emphasis.
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.
Render the settled, legible text at once, with no scrambling, staggering, or looping.
Need a custom effect? Tell us what to create.