R=145px · k=0.14Approach & Click
Magnetic Button
Spring-damped cursor pull pill button featuring decoupled inner text parallax and radial XOR glow.
Transforms cards, buttons, and interactive panels with customizable ring count, fade duration, and wave accent colors.
Origin locks cleanly to pointer press coordinates
Click anywhere inside surface panel to emit concentric rings.
npm install framer-motionSmoothly scales concentric wave spans inside overflow bounds.
| Prop | Type | Default | Description | Effect |
|---|---|---|---|---|
| rippleColor | string | '#536dfe' | Stroke & radial core glow color. | Tints expanding wave rings. |
| ringCount | number | 3 | Concentric rings emitted per impulse (1–4). | Adjusts concentric density. |
| durationMs | number | 850 | Propagation duration in milliseconds. | Controls ripple velocity. |
| pulseOnMount | boolean | true | Emits subtle center wave briefly upon mount. | Affordance indicator for first view. |
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.