R=145px · k=0.14Approach & Click
Magnetic Button
Spring-damped cursor pull pill button featuring decoupled inner text parallax and radial XOR glow.
Great for product specification cards, interactive flashcards, credit cards, and layered feature reveals.
Click card or hover (when configured) to flip between faces.
npm install framer-motionDrives hardware-accelerated spring 3D rotation.
| Prop | Type | Default | Description | Effect |
|---|---|---|---|---|
| axis | 'y' | 'x' | 'y' | 3D rotation flip axis. | Selects horizontal vs vertical flip orientation. |
| flipTrigger | 'click' | 'hover' | 'click' | User gesture triggering 180deg turnover. | Switches click toggle vs hover peek. |
| stiffness | number | 260 | Spring stiffness driving flip velocity. | Controls turn briskness. |
| damping | number | 24 | Damping coefficient settling overshoot cleanly. | Controls end bounce softness. |
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.