Swipe Deck
Gesture card stack with spring return, fling discharge, and cyclic ordering.
Gesture card stack with spring return, fling discharge, and cyclic ordering.
Tactile gesture card deck with physical spring relaxation, velocity-driven fling discharge, haptic vibration impulses, and infinite cyclical card recycling.
| Prop | Type | Default | Description |
|---|---|---|---|
| stiff | number | 220 | Hooke's law spring stiffness restoring position. |
| damp | number | 22 | Harmonic damping preventing infinite oscillation. |
| tilt | number | 8 | Rotational tilt angle in degrees per 100px drag offset. |
| fling | number | 650 | Minimum release velocity threshold for flick discharge (px/s). |
| depth | number | 3 | Number of cascading visible background cards in stack. |
| offset | number | 16 | Vertical stacking offset distance in pixels. |
| shrink | number | 0.06 | Scale reduction factor per card depth level. |
| radius | number | 26 | Card corner border radius in pixels. |
| lift | number | 1.04 | Active card scale boost when grabbed. |
| bg | string | "#0f1014" | Container stage backdrop fill. |
| cards | DeckCardItem[] | DEFAULT_CARDS | Custom array of cards with word, bg, fg, and text. |
| paused | boolean | false | Pause animation loop manually. |