motion-magnetic

Pulls the element toward the cursor as it moves across it. Springs back smoothly on leave.

Preview

Usage

Properties

Property Type Default Description
strength number 0.4 Fraction of cursor offset to apply (0 = none, 1 = full)
duration number 0.5 Spring duration hint in seconds