Text Effects
Block Reveal
Gold block sweeps left-to-right over stacked uppercase words, pauses, then retracts right to reveal the text. Loops with a faint underline rule.
csslight complexitymoderate motion
Open on the canvas to copy the code → Free account · 3 copies a day · membership goes unlimited
Worth keeping?
Votes steer what gets built next — sign in to cast one, free to read
When to use it
Hero headlines, brand reveals, title cards, or any context needing a cinematic text entrance on a dark background.
When not to
Light backgrounds (dark navy hardcoded). More than 3 lines — stagger timing compounds and loop pacing breaks.
Working with an AI agent
Every component ships agent-ready metadata. An example instruction for this one:
Change the words to "SHIP IT", set gold to electric blue (#00cfff), slow the sweep to 6s by updating animation-duration on .tte05-txt, .tte05-blk, and .tte05-stage::after. Theme: dark tokens live in :root, the light variant in :root[data-theme="light"]; ?theme=light or a {type:'forever:theme'} postMessage switches at runtime.
Safe to edit
- word content (inner text of .tte05-txt spans)
- gold color (#f5d76e — text, block, and rule)
- animation duration (4.6s)
- stagger delay per row (.16s increments)
- font size clamp(34px,15vmin,90px)
- theme tokens (:root dark defaults + [data-theme=light] overrides)
Keep intact
- clip-path inset keyframe pairing between tte05-block and tte05-reveal (must stay in sync)
- prefers-reduced-motion guard
- visibilitychange pause in IIFE
- theme hook (?theme= bootstrap + forever:theme message listener + theme tokens)
Known limitations
- Light re-theme via the [data-theme=light] token block; catalog bg/accent describe the dark default
- Third row requires a new nth-child delay rule
- Purely passive — no click or hover interactivity
More Text Effects components
- Scramble DecodeGold monospace text resolves from random glyphs left-to-right with a tracking caret, holds with micro-flickers, then re-scrambles through a 6-phrase loop.
- Stagger RiseGold serif letters rise through a clipped baseline one by one, hold as a word, then exit upward in a staggered loop.
- Gradient WipeBold headline in dim steel; a bright gold sheen band sweeps across via background-clip:text with a soft bloom glow pulsing beneath at center crossing.
- Weight WaveA bell-curve wave of font-weight travels left-to-right across the word WEIGHT; crest letters bulge bold, lift slightly, and warm to gold glow.
- Glitch SplitBold word renders with red/cyan RGB channel-split; periodic bursts trigger horizontal slice displacement and scanline glints over a dark background.