words-in-motion

Words that refuse to sit still.

Intros, outros, loops, scroll scrubs and cursor tricks. One tiny package, zero dependencies.

Read the docsGitHub

Scroll-driven

Scrub effects that move at the speed of your thumb.

readingLine

Reading is motion already. Your eye sweeps. Pauses. Jumps back. readingLine makes every beat visible as you scroll.

scatterReassemble

Chaos first. Then order. Letters arrive apart. Words find each other. The sentence settles back into place.

waveRelay

One letter starts the relay. The next follows. Then another. A wave crosses each wrapped line and carries the sentence forward.

Cursor playground

Move your cursor over the words.

Nine reactive effects, one pointer. They stack on the same text too.

Come a little closer

pullpull('.title')

Back off, letters said

pushpush('.title')

Solid cursor, shoving glyphs

obstaclePushobstaclePush('.title')

Now you see it

proximityFadeproximityFade('.title')

Every letter has a back side

proximityFlipproximityFlip('.title')

Tilt the whole sentence

proximityRotateproximityRotate(el, { maxAngle: 90 })

Nervous type

proximityShakeproximityShake('.title')

Bold where you look, light elsewhere

fontWeightfontWeight(el, { maxWeight: 800 })

Colour follows the dot

accentColoraccentColor(el, { accentColor: '#FF5A3C' })

Intro / outro

Entrances worth staying for. Exits worth scrolling back up for.

intro: directionalReveal

Arrive with intent. Leave through a hole in the page.

intro: lampFlicker

Flicker on like an old sign above a good bar.

intro: rise

Rise quietly. Break apart when nobody is watching.

intro: chunkedScramble

Scrambled first, legible second. That is the whole trick.

intro: stripRealign

Slide the strips back into line, then blur out of focus.

Keep scrolling ↓