Move pointer or tap cells to illuminate hairline grid
01
Pointer Tracking
02
Masked Grid
03
Touch Ready
04
Zero Packages
Beam 280px · Grid 28px
Cursor Spotlight
Radial light container uncovering masked hairline coordinates cleanly under pointer.
Prevents boundary feedback oscillation by anchoring spring proximity relative to unshifted resting button center.
Sweep pointer inside magnetic proximity field or click to emit rebound ripple.
Zero external dependencies — paste MagneticButton.tsx paired with magnetic-button.css.
| Prop | Type | Default | Description | Effect |
|---|---|---|---|---|
| magneticRadius | number | 145 | Attraction proximity halo radius around button anchor in pixels. | Expands pointer pickup zone. |
| pullStrength | number | 0.38 | Displacement scaling strength ratio. | Controls how aggressively button tracks pointer. |
| innerParallaxRatio | number | 0.52 | Relative inner label travel fraction versus shell displacement. | Enhances layered tactile depth perception. |
| stiffness | number | 0.14 | Hooke spring force constant. | Adjusts spring responsiveness. |
| damping | number | 0.76 | Velocity friction factor (0.55 - 0.90). | Controls spring settle overshoot. |
Radial light container uncovering masked hairline coordinates cleanly under pointer.
Dynamic width spring capsule gliding smoothly between navigation tabs via scoped layoutId.
Vector atan2 slides glass panel along crossed edge.
Aspect-normalized quad detection stays true on wide cards.
Detects pointer crossing edge via atan2 geometry and slides scrim along exact side.