Command Palette

Search for a command to run...

0GitHub stars
Components

Card Shuffle Deck

An interactive fanned card deck that continuously flings the front card out to the bottom-left and tucks it smoothly behind the stack, with click, drag-to-flick, and keyboard navigation.

Loading…
Dependencies (1)

Features

  • Continuous autonomous fling-and-tuck card rotation with spring physics.
  • Interactive drag-to-flick gestures and keyboard navigation (Arrow keys, Space, Enter).
  • Accessible polite live region announcements for current card indices.
  • Adaptive lighting shadows and smooth reduced-motion fallback.

Use cases

  • Portfolio creative showcases and interactive hero artwork stacks.
  • Testimonial and review highlights on landing pages.
  • Feature card teasers and interactive media previews.

Installation

pnpm dlx shadcn@latest add @abushaidislam/card-shuffle-deck

API reference

CardShuffleDeck

Prop

Type

License and usage

  • Free to use and modify in both personal and commercial projects.
  • Attribution is appreciated but not required.
  • Released under the MIT License.

Was this helpful?

Command Palette

Search for a command to run...