Skip to content

Sticky Card Stack

Pro

Cards that pin one after another as you scroll. Each card under the next one shrinks and dims a little, so the stack reads as depth.

  • Base UI
  • Motion
  • React 19
  • Tailwind CSS 4

Added Nov 10, 2026 · Pro license

Playground

Loading the preview

Props

Needs your Pro API key in GELATIN_UI_PRO_TOKEN. Set it up

Pro itemAPI key required

Sticky Card Stack needs a Pro API key

Try the live preview for free. With Pro, the add command above puts the source in your project.

Files it adds
21
More Pro items, one API key
+327
Your coding agent runs it
1 cmd

$79$129once, for life

Already have Pro? Sign in to set up your API key.

Put one card in each item, and give the stack room below the last card.

The sample also uses Card. One command adds them with this item:

how-it-works.tsx

StickyCardStack

<div>
PropTypeDefaultDescription
offsetnumber80The px from the top of the view where the first card pins. Default 80 (under a header).
peeknumber12The px of each card that stays in sight under the next one. Default 12.
shrinknumber0.05How much smaller a card gets for each card on top of it: 0.05 is 5%. Default 0.05.
dimnumber0.15How much a card dims for each card on top of it, from 0 to 1. Default 0.15.
disabledbooleanfalseThe cards still pin, but never shrink or dim, and the rect work stops.
containerRefObject<HTMLElement | null>—The scroll box, when the stack scrolls inside one and not with the page.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

StickyCardStackItem

<div>
PropTypeDefaultDescription
...props<div> attributes—Every other attribute goes to the <div>, with a ref.
  • Put each card in a StickyCardStackItem. The item adds no surface: put a Card or your own box inside.
  • Set where the first card pins with offset (px from the top, 80 by default for a header) and how much of each card stays in sight with peek.
  • Give the root room below the last card (bottom padding), so the stack has scroll to pin in.
  • In a scroll box, pass the box as container.
  • For cards that a reader swipes through side by side, use Carousel.
  • For cards that turn toward the pointer, use Tilt.
TabA focus in a covered card scrolls back to where that card pins, so the focused control shows.

The cards keep their reading order. The dim layer is aria-hidden and takes no clicks.

Scroll
none · the scale and the dim of each card follow the scroll in the same frame, with no easing

Built with

Installs with Sticky Card Stack

Components
Parallax
  1. AddedSticky Card Stack, with Parallax.
Open the release