Components / section

Scroll Text Focus

v1.0.0 · premium

A centered statement comes into focus word by word as you scroll.

Scroll Text Focus demo

Implementation

A centered statement comes into focus word by word as you scroll.

Framework
React 19.3.1 with TypeScript
Motion
Native CSS and browser APIs. No GSAP required.
Available modes
build
Version
1.0.0 · published

Source code

Download source ZIP
export function ScrollTextFocus({ text, scrollLength = 100, label = 'Scroll Text Focus', className }: ScrollTextFocusPro
  const root = useRef<HTMLElement>(null);
  const stage = useRef<HTMLDivElement>(null);

Quality evidence

Export tested in 2 consumer projects with chromium, firefox, webkit. Evidence recorded on .

Changelog

v1.0.0 · A centered statement comes into focus word by word as you scroll.

Frequently asked questions

Can visitors read the statement with reduced motion enabled?

Yes. With reduced motion, the whole statement is shown in a static reading layout.

Can I slow down the focus change?

Yes. Increase scrollLength so visitors scroll farther through the statement.