# Swipe photo stack

https://fieldbook.lizardi.mx/components/swipe-photo-stack

Category: Cards
![Still of the Swipe photo stack component, a Fieldbook UI component in Cards.](https://fieldbook.lizardi.mx/thumbs/swipe-photo-stack.webp)
Preview video: https://ejpqcxcjbiyabxkx.public.blob.vercel-storage.com/previews/swipe-photo-stack-ed182c8659.mp4 (5 s, silent)

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.

## Frameworks

react, vue, svelte, astro, html

## Preview controls

These controls are passed to the demo. Defaults and limits describe the preview; consult the implementation for its full prop API.

| Name | Type | Default | Options or constraints |
| --- | --- | --- | --- |
| 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. |

## Usage notes

Swipe photo stack uses the card preview frame with a dark theme setting.

### 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.

## Install through MCP

Connect your client, call get_component to retrieve the implementation, then get_install_command for installation instructions. Choose a listed framework, integrate the returned source and verify it in your application.

```json
{
  "tool": "get_component",
  "arguments": {
    "slug": "swipe-photo-stack",
    "framework": "react"
  }
}
```

[For agents](https://fieldbook.lizardi.mx/docs/agents)
[MCP](https://fieldbook.lizardi.mx/api/mcp)

## Related open components

- [Card Shuffle Stack](https://fieldbook.lizardi.mx/components/card-shuffle-stack)
- [Cursor drift link preview](https://fieldbook.lizardi.mx/components/cursor-drift-link-preview)
- [Pointer tilt photo card](https://fieldbook.lizardi.mx/components/pointer-tilt-photo-card)
- [Tilt card](https://fieldbook.lizardi.mx/components/tilt-card)
- [Tilt Parallax Tile](https://fieldbook.lizardi.mx/components/tilt-parallax-tile)
- [Bouncing Photo Fan](https://fieldbook.lizardi.mx/components/bouncing-photo-fan)
