Components / section

Pinned Panels

v1.0.0 · premium

Full-screen panels that slide up over each other as you scroll, while the one beneath recedes.

Pinned Panels demo

Implementation

Full-screen panels that slide up over each other as you scroll, while the one beneath recedes.

Framework
React 19.3.1 with TypeScript
Motion
Native CSS and browser APIs. No GSAP required.
Available modes
build
Version
1.0.0 · published

Source code

Download source ZIP
export function PinnedPanels({ panels, label, ink, className }: {
  panels: readonly ReactNode[];
  /** Accessible name of the section. */

Quality evidence

Export tested in 2 consumer projects with chromium, firefox, webkit. Evidence recorded on .

Changelog

v1.0.0 · Full-screen panels that slide up over each other as you scroll, while the one beneath recedes.

Frequently asked questions

Are the panels still in reading order for assistive technology?

Yes. All panels are in the document in order. The pinned layout only changes how they are painted.

How many panels can I use?

Two or more. The section is one screen tall for each panel, so very long lists make a very long page.