Navigation · block · 27K
A stack of cards for case studies and portfolios, in the spirit of late-'80s card-and-background stacks: one card at a time in a shared background with a "3 / 12" counter, card buttons, an arrow palette, #card-id deep links and visual effects (stepped dither dissolve, wipes, iris, barn door) via the View Transitions API.
Cards must be direct children of <CardStack> (fragments are fine). Every card stays in the DOM, hidden unless current. Effects need document.startViewTransition (Chrome, Edge, Safari 18+); elsewhere, under prefers-reduced-motion and in hidden tabs the card swaps instantly. Going backward mirrors wipes and closes the iris and barn door. Keys: ←/→, Home/End, ⌘←/⌘→ (Ctrl elsewhere) inside the stack, or page-wide with keyboard="document". The effect keyframes are injected once with a React 19 hoisted <style href precedence>. The export Card shares a name with shadcn's Card; alias it on import if you use both.
pnpm dlx shadcn@latest add @s7ui/card-stackThis example also uses @s7ui/icons @s7ui/label @s7ui/native-select.
Four small projects, one card each. Every card has its own link: try reloading with #weather-kiosk in the address bar.
A search screen for a neighbourhood library: one field, big results, and a printable shelf slip for every book.
A wall display for a harbour office. Readable from five metres, updates every ten minutes, works offline.
Printable recipe cards from a plain text file. Each card fits a 4×6 index card and scales servings on the fly.
Write to hello@example.com. Replies within a few days.