Skip to content
FreeCards

Card Stack

A deck of cards you shuffle by dragging the top one: inertia, rotation and a spring back to the bottom. Also works with click and keyboard.

Plan
Free · MIT
Dependencies
React only
Props
6 (4 adjustable)

Free forever

MIT license, for personal and commercial projects. See installation

01 / 05
SunriseCold light over the bay

Made with Furin: Pill Nav · Metal Button · Copy Morph

Props

PropTypeDefaultDescription
cards{ title: string; caption?: string; from?: string; to?: string }[]"5 sample cards"Cards in the deck, from top to bottom.
widthnumber250Width of each card, in px.
fannumber18How much each lower card peeks out, in px.
messinessnumber4Maximum rotation of the cards in the deck, in degrees.
thresholdnumber90Drag distance that shuffles the top card, in px.
onShuffle(topIndex: number) => void""Called with the index of the card that just ended up on top.

Installation

Install it

1Install the package

npm i furin-ui

2Import it

import { CardStack } from "furin-ui";

Also with pnpm add furin-ui, yarn add furin-ui or bun add furin-ui. Each component ships its own CSS and imports it for you.

Dependencies

React
18 or later
Other libraries
none
License
MIT

Each file ships its own CSS: there's nothing else to install.

Keep exploring

  • Arcs of electricity that snake around the border, with local discharges, sparks and a flickering glow.

    Cards

  • A cardboard folder that opens on hover and lets its documents peek out with a soft bounce.

    Cards

  • Liquid glass with refraction, a specular edge and a reflection that follows the cursor.

    Cards