Black Friday: 30% off Pro

Get 30% off

Draggable Letters

Preview

Customize

Falloff0.50
Settle0.45s
Bounce0.15
Text size48px

Installation

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

Usage

import { DraggableLetters } from "@/components/uibrik/draggable-letters/draggable-letters";​<DraggableLetters  play={0}  text="Pull me apart"  falloff={0.5}  settleDuration={0.45}  bounce={0.15}/>

Where to use Draggable Letters

  • Portfolio heroes

    Letters you can pull apart invite visitors to play with a name or title.

  • 404 and empty pages

    Something to drag turns a dead end into a moment of delight.

  • Creative agency sites

    Springy, physical type suits studios that want their site to feel hands-on.

Props

DraggableLetters
text
Type string
"Pull me apart"
The copy to animate.
falloff
Type number
0.5
Share of the pull each neighbour follows, per step away.
settleDuration
Type number
0.45
Time to spring home.
bounce
Type number
0.15
Spring bounce on release.
playrequired
Type number
–
Each change plays the effect again; 0 shows its resting state.