Platform
VaultVault
  • Free15
  • Navigation19
  • Buttons9
  • Scroll55
  • Text27
  • Sliders & marquees19
  • Gallery & images67
  • Cursor24
  • Page transitions10
  • Loaders2
  • Backgrounds10
  • UI components33
ButtonsPart of ProButtons
IconsPart of ProIcons
  • Interface Essentials144
  • Social Icons69
  • Payment Badges41
SavedPart of ProSaved
Support
DocumentationDocumentation
MCP serverMCP server
SettingsSettings
VaultNavigationStacked Drawer Menu
Cursor Rail Card ListBrowse all 182Wavy Seam Accordion
  • Free15
  • Navigation19
  • Buttons9
  • Scroll55
  • Text27
  • Sliders & marquees19
  • Gallery & images67
  • Cursor24
  • Page transitions10
  • Loaders2
  • Backgrounds10
  • UI components33
  • Interface Essentials144
  • Social Icons69
  • Payment Badges41
Sign inSign in

Start free. The code for 15 components, no card needed.

Get 15 free

Stacked Drawer Menu

This one is locked. Become a member to open the code for it and the rest of the Vault.

See plansTry the 15 free ones

What you'll need.

Install

  • gsap
  • CustomEase

Setup

npm i gsapregisterPlugin(CustomEase)

More like this

  • Menu
  • Drawer

Features.

  • A fixed bar with logo, link pill and a Menu / Close toggle whose label rolls and whose bars cross
  • The drawer slides in over a dimmed backdrop; its rows follow with a short stagger
  • Sub-menus open as sheets stacked on top, as deep as you nest them
  • Each covered level leaves a strip showing: click it to drop straight back to that level
  • Closing mid-open and re-opening mid-close both carry on from wherever it is, so fast clicks never jump
  • Opening moves focus to the first row; Escape steps back one level at a time; focus follows into each sheet and back to the row that opened it; closing returns it to the toggle
  • Tab stays inside the menu while it's open, and covered levels are inert
  • The page behind is locked while it's open
  • Full-width drawer and narrower strips on phones
  • GSAP and CustomEase only; respects prefers-reduced-motion

How to get it right.

Nest sheets where they open from

A sheet goes inside the level that opens it, after that level's content. The row that opens it is a button with data-skm-trigger and aria-controls set to the sheet's id. That's all the wiring there is: the script reads parent and child levels from the DOM.

Give every level a strip

Each level's first child is a data-skm-edge button. It stays hidden until a sheet covers the level, then becomes the way back. Give it an aria-label that names the level ("Back to work").

Keep ids unique

Sheet ids are global. With two menus on a page, prefix them per menu.

Mind the width

data-au-width sets the drawer in em on screens above 767px; phones always get the full width. Three levels deep, every strip takes data-au-edge off the content, so keep labels short or the drawer wide.

Variations.

  • Wide panel: data-au-width="38" for big type or a larger promo card
  • Tight stack: data-au-edge="2" for slim strips that leave more room for content
  • Dark drawer: override --skm-surface, --skm-surface-2, --skm-surface-3, --skm-fg, --skm-muted, --skm-body and --skm-border on the root
  • No backdrop: remove the data-skm-backdrop element; the page stays clickable behind the drawer

Where it fits.

  • Studio or agency site with a few top sections that each hold real depth: work by discipline and sector, services, people
  • Product site with a deep docs or features tree that would overload a dropdown
  • Mobile-first nav where a full-screen drawer with clear back steps beats a mega menu

Frequently asked.

Not as shipped: the drawer, the sheets and their strips are built for the right-hand side.

Yes: overflow: hidden on <html> (plus scrollbar-gutter: stable if the page has a scrollbar) from open until the close has finished, or until destroy(). A smooth-scroll library that scrolls from script ignores that, so stop yours while the root has is-open, or put data-lenis-prevent on the backdrop, drawer and bar if it's Lenis.

Keep them separate: a row either navigates or opens a sheet. Put the overview link as the skm_more link at the bottom of the sheet.

No. Load gsap and CustomEase before the script.

Related components.

NewPro

Ink Spread Menu

Click

Pro

Folding Burger Nav

Scroll

Pro

Full-Screen Wipe Menu

Click