Component packs › Shuffle › Riffle Loader

Riffle Loader

The deck splits, the halves riffle together card by card from the bottom and the pile bridges and squares; on done() the top card turns over to show what the shuffle left there.

Riffle Loader is a loader 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: true riffle order, bridge, reveal on done.

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.

Riffle Loader props

PropTypeDefaultDescription
loadingboolean
labelstringAccessible name.
onDone(card: string) => voidCalled with the card left on top when done() finishes.
autoplaynumber | falseShowcase mode: alternates loading and done every N ms while visible.

Methods on the ref

Use it in React

import RiffleLoader from './RiffleLoader';

<RiffleLoader />

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

More in Shuffle

Good for: Skeuomorphic UI.