Cards
Swipe photo stack
Swipe photo stack: A pile of photo cards where the top one can be flung left or right, sending it to the back as the stack shuffles forward.
Using Swipe photo stack
Swipe photo stack uses the card preview frame with a dark theme setting.
Customize the preview
These controls are passed to the demo. Defaults and limits describe the preview; consult the implementation for its full prop API.
| Control | Type | Default | Preview limits |
|---|---|---|---|
peek | number | 12 | From 0 to 32; step 2 |
rotation | number | 4 | From 0 to 12; step 1 |
threshold | number | 100 | From 40 to 220; step 10 |
accent | color | #9BE15D | No additional limit in the metadata. |
Which frameworks are available for Swipe photo stack?
Swipe photo stack is available for React, Vue, Svelte, Astro, HTML. The live preview uses React; the source observations below apply to index.tsx. Check the selected port before relying on the same interactions.
What does Swipe photo stack depend on?
The React metadata lists these npm dependencies beyond React: motion.
What accessibility details are visible in Swipe photo stack?
The React source for Swipe photo stack includes: attributes and handlers (aria-hidden, aria-label, onKeyDown, tabIndex); explicit roles (group); key comparisons (ArrowLeft, ArrowRight). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.
How does Swipe photo stack handle reduced motion?
Swipe photo stack reads the motion preference in its React source through useReducedMotion(). Preference-dependent expressions in index.tsx: reduceMotion ? fade : dragOpacity; reduceMotion ? { duration: 0 } : { type: "spring", stiffness: 300, damping: 28 }. Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.