uibrik

Hover Weight

Preview

Customize

Min weight400
Max weight700
Radius60px
Sweep0.9s
Text size48px

Usage

import { HoverWeight } from "@/components/uibrik/hover-weight/hover-weight";

<HoverWeight play={play} />

Installation

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

Props

HoverWeight
text
Type string
"Move closer"
The copy to animate.
minWeight
Type number
400
Weight away from the pointer.
maxWeight
Type number
700
Weight right under the pointer.
radius
Type number
60
Reach of the pointer.
sweepDuration
Type number
0.9
Replay sweep across the line.
playrequired
Type number
–
Each change plays the effect again; 0 shows its resting state.