Black Friday: 30% off Pro

Get 30% off

Hover Weight

Preview

Customize

Min weight400
Max weight700
Radius60px
Sweep0.9s
Text size48px

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.

Usage

import { HoverWeight } from "@/components/uibrik/hover-weight/hover-weight";​<HoverWeight  play={0}  text="Move closer"  minWeight={400}  maxWeight={700}  radius={60}  sweepDuration={0.9}/>

Where to use Hover Weight

  • Interactive headlines

    Letters growing heavier as the cursor nears make a title respond to the visitor.

    Pairs with Pull Toward Cursor

  • Font showcases

    Variable weight under the pointer demonstrates a typeface's full range.

  • Portfolio intros

    A name that thickens under the cursor is a subtle, type-led interaction.

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.