R=145px · k=0.14Approach & Click
Magnetic Button
Spring-damped cursor pull pill button featuring decoupled inner text parallax and radial XOR glow.
Produces cohesive sweeping focus feedback across dense media cards and portfolio thumbnails.
Vector atan2 slides glass panel along crossed edge.
Aspect-normalized quad detection stays true on wide cards.
Enter card perimeter from top, right, bottom, or left edge.
npm install framer-motionSmoothly drives directional x/y entrance and exit trajectories.
| Prop | Type | Default | Description | Effect |
|---|---|---|---|---|
| children | ReactNode | (required) | Resting foreground card surface. | Acts as base visual target. |
| overlay | ReactNode | (required) | Glass overlay content revealed upon directional entry. | Renders inside directional backdrop-blur overlay. |
| duration | number | 0.28 | Slide travel duration in seconds. | Tunes directional snap velocity. |
Spring-damped cursor pull pill button featuring decoupled inner text parallax and radial XOR glow.
Radial light container uncovering masked hairline coordinates cleanly under pointer.
Dynamic width spring capsule gliding smoothly between navigation tabs via scoped layoutId.