Skip to content

Section Stack

Pro

Full-view sections that pin one after another. Each next section slides up over the one before it, which shrinks, rounds its corners, and dims.

  • 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

Section 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
23
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 full-view section in each item.

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

lakes-guide.tsx

SectionStack

<div>
PropTypeDefaultDescription
containerRefObject<HTMLElement | null>—The scroll box, when the item scrolls inside one and not with the page.
shrinknumber0.08How much smaller an item gets when the next one covers it: 0.08 is 8%. Default 0.08.
dimbooleantrueAn item dims as the next one covers it. Default true.
disabledbooleanfalsePlain sections in the flow: no pin, no shrink, no dim, and no scroll work.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

SectionStackItem

<div>
PropTypeDefaultDescription
childrenReactNode—
...props<div> attributes—Every other attribute goes to the <div>, with a ref.
  • Put each section in a SectionStackItem. It has the page color; set another background with className.
  • Keep each section to one view: the item clips content that is taller.
  • Set the shrink of a covered section with shrink, and its corner with --section-stack-corner (24px) on the root.
  • In a scroll box, pass the box as container and set --parallax-view to its height.
  • For slides that a reader swipes through side by side, use Carousel.
  • For one photo that moves a little slower than the page, use Parallax Image.
TabA focus in a section that is not in place scrolls the page to that section.

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

Scroll
none · the slide, the shrink, the corner, and the dim follow the scroll in the same frame, with no easing

Built with

Installs with Section Stack

Components
Parallax
  1. AddedSection Stack, with Parallax.
Open the release