PRO

Deal Stack Cards Scroll

A pinned deck where each card rises from below, lands on the pile at its own fixed tilt, then gets pushed off toward the top left as the cards behind it arrive. Departure speed is scaled per card, so the earliest card travels furthest and the stack fans out diagonally instead of leaving as one block. Each card only starts moving once the previous one has fully landed.

Component

Future threads for a fractured world.

X01-842

V9-372K

Z84-Q17

L56-904

A23-7P1

T98-462

Tomorrow, tailored.

Install
npx shadcn@latest add https://ui.aryank.space/r/deal-stack-cards-scroll.json

Installs from ui.aryank.space. To add it by hand, copy the files in Usage below, or register the @compronents namespace via the docs.

Files

API
PropTypeDefaultDescription
cardsDealStackCard[]Six BLANK cardsImage and label per card. The pin length and per-card slice both follow the array length.
rotationsnumber[][-12, 10, -5, 5, -5, -2]Resting tilt for each card, applied on arrival.
embeddedbooleantrueOwn the scroll container so it fits a bounded box. Set false to drive it from the window scroll.
Customize
cardstext

Card images and their reference labels.

rotationstext

Per-card resting tilt in degrees.

Dependencies
gsaplenis