Sticky Flip Cards
A pinned hero where a single front card flips a half turn to reveal a fanned stack of color-coded back cards, which then peel off and dismiss one by one with a tilt as you scroll. The headline lifts away on entry and an outro statement closes it out. GSAP ScrollTrigger with Lenis, no images.
npx shadcn@latest add https://ui.aryank.space/r/sticky-flip-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 | FlipCardItem[] | Four BLANK cards | Back-card title, body, and icon (lock-open/layers/prism/infinite). |
| heroHeading / frontTitle / frontLabel / frontBody / outroHeading | string | BLANK copy | Hero, front-card, and outro copy. |
| embedded | boolean | true | Own the scroll container; set false to ride the window scroll. |
cardstextThe four back-card titles, bodies, and icon names.
heroHeading / frontTitle / frontBody / outroHeadingtextThe hero headline, front card copy, and outro statement.
gsaplenis