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 https://ui.aryank.space/r/text-displacement-field.json

Installs from ui.aryank.space. To add it by hand, copy the files in Usage below, or register the @compronents namespace via the docs.

Files

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.