PRO

Text Displacement Field

A readable field of words and display letters pushed away by cursor proximity. Each span keeps an eased target, so the copy ripples around the pointer and then settles home.

Component

onesubscription

Sharing the craft behind building interactive experiences and carefully tuned websites. The best lessons live in small gestures: a word moving away from the cursor, a line finding its rhythm, a surface reacting without shouting. This component turns text into a responsive field while keeping the copy readable.

endlesswebdesign

Install
npx shadcn@latest add @compronents/text-displacement-field

Installs from ui.aryank.space. Needs a registry token and a one-time @compronents entry in components.json. The docs walk through both.

Files
Checking access…
API
PropTypeDefaultDescription
intro / body / outrostringsource-inspired copyText split into letters and words for displacement.
radiusnumber150Pointer influence radius in pixels.
displacement / easenumber300 / 0.1Maximum span offset and interpolation amount.
Customize
intro / body / outrotextarea

Display lines and paragraph copy split into moving spans.

radius / displacement / easetuple

Pointer field radius, maximum push, and easing factor.

Dependencies
None.