Component packs › Shuffle › Deck Pagination

Deck Pagination

Next takes the top card off the draw pile, turns it over in the air and drops it skewed on the discard pile; the piles really thin and grow.

Deck Pagination is a pagination from Shuffle, a component pack with 6 card controls: Loaders, menus, lists and pickers made of playing cards. Price: $2 for the whole pack.

Built with: card per page, arc through the air, pile thickness.

Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.

Deck Pagination props

PropTypeDefaultDescription
pagesnumber
pagenumber
onChange(page: number) => void
autoplaynumber | falseShowcase mode: turns pages every N ms while visible.

Methods on the ref

Use it in React

import DeckPagination from './DeckPagination';

<DeckPagination />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Shuffle

Good for: Skeuomorphic UI.