Sticky Stack Cards
Full-height cards that pin in place and stack. As the next card scrolls up over the current one, the underlying card scales down, tilts a few degrees in alternating directions, and darkens under a shadow overlay, so the deck compresses into a layered pile. GSAP ScrollTrigger.
npx shadcn@latest add https://ui.aryank.space/r/sticky-stack-cards.jsonInstalls from ui.aryank.space. To add it by hand, copy the files in Usage below, or register the @compronents namespace via the docs.
| Prop | Type | Default | Description |
|---|---|---|---|
| cards | StickyStackCard[] | Four BLANK principle cards | Index, title, image, and description per card. |
| intro / outro / captionLabel | string | The Foundations / Ends in Form / (About the state) | Opening panel, closing panel, and card caption. |
| embedded | boolean | true | Owns the scroll container so it fits a bounded box. |
cardstextIndex, title, image, and description per card.
cards[].imageasset-urlFeature image inside each card.
intro / outro / captionLabeltextOpening panel, closing panel, and the small caption.
gsaplenis


