uibrik

Pull Toward Cursor

Preview

Customize

Strength0.18
Radius110px
Sweep0.9s
Text size48px

Usage

import { PullToCursor } from "@/components/uibrik/pull-to-cursor/pull-to-cursor";

<PullToCursor play={play} />

Installation

npx shadcn@latest add https://uibrik.com/r/pull-to-cursor.json
Adds the files to components/uibrik/pull-to-cursor and installs motion. With the @uibrik namespace set up: npx shadcn@latest add @uibrik/pull-to-cursor.

Props

PullToCursor
text
Type string
"Drawn together"
The copy to animate.
strength
Type number
0.18
How far letters lean toward the pointer.
radius
Type number
110
Reach of the pull.
sweepDuration
Type number
0.9
Replay sweep across the line.
playrequired
Type number
–
Each change plays the effect again; 0 shows its resting state.