Text JS behaviour

Scroll text reveal

A tall pinned section: scattered letters gather as you scroll and the filled text wipes in over its own outline; under reduced motion the finished text shows.

Real scenarios

The component as it is used in a product — not a specimen grid.

Scroll · Manifesto

Every word finds its place

A second statement, scattered differently

Same component, seed=7 and a shorter height — the letters start from a different spread and gather a little faster. Both directions read correctly.

Scroll again

Interfaces that respect both directions

Important props

Important props
Prop Type Default What it does
text string '' The sentence the scroll assembles; the whole text also lives in the screen-reader copy.
eyebrow string null The small line above the title — usually an invitation to scroll.
height string '240vh' The section height; taller means a slower, gentler gather.
seed int 1 Scatters the letters another way so two similar sections never look alike.
as string 'h2' The heading level of the pinned title.

Snippet

<x-nx::scroll-text-reveal
    text="هر کلمه جای خودش را پیدا می‌کند"
    eyebrow="اسکرول کنید · Scroll"
    height="220vh" />