Scroll Text Wave

Scroll Text Wave is a text scroll effect in the UI HUB text scroll collection. A scroll-scrubbed halftone typographic wave with no animation library: one canvas 2D pass, one rAF loop and an on-demand scheduler. A single canvas paints the whole story and either the page (full mode) or a hidden inner scroll column (compact preview) scrubs it.

The component is driven by 4 documented props (compact, word, phases, className), so colours, intensity, timing and density can be tuned from the call site instead of being hard-coded.

Implementation notes: no animation library, one canvas 2D pass and one rAF loop; an on-demand rAF that stops when the eased value reaches the target; document.fonts.load('400 100px Anton') gating the glyph metrics.

Preview the text scroll effect in the browser above, copy the source, and paste it into your project. Text Scroll components in UI HUB are grouped by category so you can compare effects side by side before choosing one.

What is Scroll Text Wave?

A halftone scroll wave: an orange Anton wordmark starts as a two-tone poster, then a purple bump swells out of the centre line inside a growing halftone-clipped lens, wiping orange to purple as the copy cross-fades through three phases.

Scroll Text Wave at a glance

Category
Text Scroll
Pricing
Free to use
Libraries
React and google fonts (Anton, Inter)
Language
TypeScript
Styling
Tailwind CSS
Configurable props
4
AI prompts
Ready for Advance, Antigravity, Claude Code, Cursor, Lovable

How Scroll Text Wave works

A scroll-scrubbed halftone typographic wave with no animation library: one canvas 2D pass, one rAF loop and an on-demand scheduler. A single canvas paints the whole story and either the page (full mode) or a hidden inner scroll column (compact preview) scrubs it. At progress 0 the frame is a two-tone orange poster - black field with the word in orange #f85010 across the top half, and a solid orange field carrying the same word in black across the bottom half, meeting exactly on the centre line. A bump profile SHAPE ([0,1],[60,0.924],[100,0.79],[140,0.63],[180,0.467],[220,0.26],[260,0.125],[290,0]) is interpolated with a smoothstep-biased blend and spans SHAPE_SPAN = 290 source units. Half-width hw = 0.403 * sqrt(W * H * 0.5625), ou = hw / SHAPE_SPAN, A = H * 0.254, wf = 1 + 5k, af = 1 + 2k; the envelope is e(x) = max(A * af * amp * shape((x - W/2) / ou / wf), H * 0.52 * k^5) and the outlines are H/2 -+ e(x). Trace the top outline left to right and the bottom right to left, close and clip: inside the clip fill black, draw the word in purple #9008f8 scaled from (0.011W, lerp(0.3125H, 0.011H, k)) to (0.978W, lerp(0.473H, 0.978H, k)) so the lettering grows into the frame, and lay a translucent rgba(60,0,110,.42) shadow band 58 * ou * (1 - k) under the top outline. After restore, stroke only where e(x) > 0.8: a round-joined black stroke 15 * ou * min(1, amp * 4) along the top outline and a max(2, 5 * ou) orange stroke along the bottom. Progress mapping: 0.00-0.40 the wave pops open with amp = 1 - (1 - a)^3 where a = clamp(p / 0.4, 0, 1); 0.40-0.55 hold; 0.55-0.95 purple floods outward as k = inOut(clamp((p - 0.55) / 0.4, 0, 1)); 0.95-1.00 hold on the finished purple lettering. Every frame ends by resetting the transform to device pixels and laying a repeating halftone tile (pitch = max(3, round(max(4, min(W, H) / 110) * DPR)), one black circle of radius pitch * 0.24) as a createPattern over cv.width x cv.height. Three copy phases { title: [lead, accentTail], copy, hint } cross-fade as progress passes 0.12 and 0.6 through a 220 ms .swap opacity/translate transition, with a '01 / 03' step counter, a hint arrow hidden on the last phase, and a --accent custom property rewritten on the root so the kicker, headline tail, progress bar and hint re-colour together. The loop runs on demand: cur += (target - cur) * 0.14, snap within 0.0004, render only on change, and stop the rAF entirely once cur === target, restarting from the scroll handler.

Technical information for Scroll Text Wave

Category Text Scroll
Libraries React and google fonts (Anton, Inter)
Styling Tailwind CSS
Language TypeScript
State change an orange two-tone poster at progress 0 - orange letters on black above the centre line, black letters on a solid orange field below it to the finished purple lettering at progress 1, the bump having flooded outward until every trace of orange is gone, fully reversible by scrolling back up
Props 4 configurable
Usage example Included on this page

What Scroll Text Wave requires

  • no animation library, one canvas 2D pass and one rAF loop
  • an on-demand rAF that stops when the eased value reaches the target
  • document.fonts.load('400 100px Anton') gating the glyph metrics
  • an rAF-throttled ResizeObserver rebuilding the canvas and the halftone dot pattern
  • Google Fonts Anton and Inter via CSS @import

How to use Scroll Text Wave

  1. Install the dependencies: npm install google fonts (Anton, Inter).
  2. Copy the usage example from the Source section of this page. It shows the import path and the props the component expects.
  3. Render <ScrollTextWave /> in your page using that import path.
  4. Pass any of the 4 documented props to change colours, density, speed or behaviour.

Scroll Text Wave questions

What is Scroll Text Wave?

A halftone scroll wave: an orange Anton wordmark starts as a two-tone poster, then a purple bump swells out of the centre line inside a growing halftone-clipped lens, wiping orange to purple as the copy cross-fades through three phases.

How does Scroll Text Wave work?

A scroll-scrubbed halftone typographic wave with no animation library: one canvas 2D pass, one rAF loop and an on-demand scheduler. A single canvas paints the whole story and either the page (full mode) or a hidden inner scroll column (compact preview) scrubs it. At progress 0 the frame is a two-tone orange poster - black field with the word in orange #f85010 across the top half, and a solid orange field carrying the same word in black across the bottom half, meeting exactly on the centre line. A bump profile SHAPE ([0,1],[60,0.924],[100,0.79],[140,0.63],[180,0.467],[220,0.26],[260,0.125],[290,0]) is interpolated with a smoothstep-biased blend and spans SHAPE_SPAN = 290 source units. Half-width hw = 0.403 * sqrt(W * H * 0.5625), ou = hw / SHAPE_SPAN, A = H * 0.254, wf = 1 + 5k, af = 1 + 2k; the envelope is e(x) = max(A * af * amp * shape((x - W/2) / ou / wf), H * 0.52 * k^5) and the outlines are H/2 -+ e(x). Trace the top outline left to right and the bottom right to left, close and clip: inside the clip fill black, draw the word in purple #9008f8 scaled from (0.011W, lerp(0.3125H, 0.011H, k)) to (0.978W, lerp(0.473H, 0.978H, k)) so the lettering grows into the frame, and lay a translucent rgba(60,0,110,.42) shadow band 58 * ou * (1 - k) under the top outline. After restore, stroke only where e(x) > 0.8: a round-joined black stroke 15 * ou * min(1, amp * 4) along the top outline and a max(2, 5 * ou) orange stroke along the bottom. Progress mapping: 0.00-0.40 the wave pops open with amp = 1 - (1 - a)^3 where a = clamp(p / 0.4, 0, 1); 0.40-0.55 hold; 0.55-0.95 purple floods outward as k = inOut(clamp((p - 0.55) / 0.4, 0, 1)); 0.95-1.00 hold on the finished purple lettering. Every frame ends by resetting the transform to device pixels and laying a repeating halftone tile (pitch = max(3, round(max(4, min(W, H) / 110) * DPR)), one black circle of radius pitch * 0.24) as a createPattern over cv.width x cv.height. Three copy phases { title: [lead, accentTail], copy, hint } cross-fade as progress passes 0.12 and 0.6 through a 220 ms .swap opacity/translate transition, with a '01 / 03' step counter, a hint arrow hidden on the last phase, and a --accent custom property rewritten on the root so the kicker, headline tail, progress bar and hint re-colour together. The loop runs on demand: cur += (target - cur) * 0.14, snap within 0.0004, render only on change, and stop the rAF entirely once cur === target, restarting from the scroll handler.

Which category does Scroll Text Wave belong to?

Scroll Text Wave is listed under Text Scroll in the UI HUB catalog. Scroll-driven typography that animates as the page moves: words that slide, pin, fade or reveal in sync with scroll position instead of playing once on load. Each component documents whether it drives motion from native scroll events, GSAP ScrollTrigger or Framer Motion, which matters on long pages. Pair them with a pinned section for the strongest effect.

What does the compact prop do in Scroll Text Wave?

Preview mode: the wave fills its container and is scrubbed by an invisible scroll column inside the card instead of the page. It defaults to false.

What does the word prop do in Scroll Text Wave?

The big lettering drawn on the canvas. Its metrics are measured at 400px Anton and scaled into the frame. It defaults to "UI HUB".

Is Scroll Text Wave free to use?

Scroll Text Wave is a free component on UI HUB. You can preview it in the browser and read the full props table on the component page.

Which libraries does Scroll Text Wave use?

Scroll Text Wave uses React and google fonts (Anton, Inter) and is styled with Tailwind CSS.

What does Scroll Text Wave need to run?

Scroll Text Wave needs no animation library, one canvas 2D pass and one rAF loop, an on-demand rAF that stops when the eased value reaches the target, document.fonts.load('400 100px Anton') gating the glyph metrics and an rAF-throttled ResizeObserver rebuilding the canvas and the halftone dot pattern.