R=145px · k=0.14Approach & Click
Magnetic Button
Spring-damped cursor pull pill button featuring decoupled inner text parallax and radial XOR glow.
Isolates layoutId projection per rendered instance while providing semantic ARIA tablist markup out of the box.
Select tabs and tune spring stiffness/damping parameters.
npm install framer-motionPowers shared-element spring FLIP projection across tabs.
| Prop | Type | Default | Description | Effect |
|---|---|---|---|---|
| items | FluidNavItem[] | (required) | Array of `{ id, label }` tab definitions. | Renders variable-width interactive tabs. |
| stiffness | number | 400 | Spring stiffness driving shared pill speed. | Controls snappy response velocity. |
| damping | number | 30 | Spring damping coefficient. | Tunes bounce overshoot. |
| pillColor | string | '#536dfe' | Active indicator capsule fill color. | Styles floating background pill. |
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.
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.