# Travel Deck

Travel Deck is a free, MIT-licensed standalone block from AI Canvas (https://aicanvas.me): it belongs to no design system and works in any React + Tailwind app. Index of every component and install setup: https://aicanvas.me/llms.txt

A swipeable deck of destination cards. Drag the front card down to fling it off-screen and reveal the next. Each card reveals an animated hotels counter as it comes forward.

- Category: Cards & Modals
- Built with: Motion, Tailwind CSS
- License: MIT
- Page: https://aicanvas.me/components/traveldeck

## Install

```bash
npx shadcn@latest add @aicanvas/traveldeck
```

Needs a free AI Canvas account. Signed out, the command exits 0 but writes a placeholder (an `AccountRequired` notice); check for it before reporting success. Token setup: the Install section of https://aicanvas.me/llms.txt.

AI agents can also get its install command from the read-only AI Canvas MCP server (`npx -y @aicanvas/mcp`) and run it. Setup: https://aicanvas.me/mcp

Peer dependencies:

```bash
npm install framer-motion
```

## Use it

It installs to `components/aicanvas/traveldeck.tsx` (under `src/` if your project has one). With the usual `@/` alias:

```tsx
import FloatingCards from '@/components/aicanvas/traveldeck'

<FloatingCards />
```

It takes no props.

## About

Travel Deck is a swipeable stack of destination cards: flick the front card with a downward drag and it flings off-screen to reveal the next one behind it. As each card comes forward it animates a hotel-count badge that counts up to its destination total. Motion handles both the drag tracking and the fling-away exit of dismissed cards. It is a strong choice for image galleries, travel marketing pages, portfolio sliders, and product showcases that benefit from a tactile, deck-of-cards interaction.

Use cases: Image gallery, Portfolio, E-commerce.

## Source

Install with the command above to get the source.

## Remix prompt

Only when the user wants Travel Deck rebuilt from scratch instead of installed: its remix prompt is in the Remix panel at https://aicanvas.me/components/traveldeck.

## Related

- [Slide Deck](https://aicanvas.me/components/slide-deck.md): Swipeable card deck with four editorial slides. Navigate forward and back by drag or tap.
- [Product Card Deck](https://aicanvas.me/components/product-card-deck.md): A draggable card deck you flick through one card at a time. The top card leans toward your drag, then spins away with momentum to reveal the next, and the deck loops endlessly. Every card pairs a picture with a title and a pill action button with hover and press states.
- [AI Job Cards](https://aicanvas.me/components/ai-job-cards.md): Three AI job card stacks with swipe-to-cycle. Brand logos, bookmark toggle, springs.
- [Task Cards](https://aicanvas.me/components/task-cards.md): A swipeable project task card stack where each card has a unique accent colour, status badge, and due date. Drag left or right to cycle through tasks. The dismissed card springs back to the bottom of the deck.
- [Meet the Crew](https://aicanvas.me/components/meet-the-crew.md): A swipeable portrait card stack perfect for introducing a team, showcasing crew members, or picking an avatar. Four stacked cards fan out with soft rotations: drag to browse, tap to choose. Drop in your own photos and names for an About Us section, a character selector, or an onboarding profile picker.
