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
VaultNavigationCurved Drawer Menu
Line Trail CursorBrowse all 182Logo and Quote Marquee
  • 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

Curved 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

Setup

npm i gsap

More like this

  • Menu
  • Drawer
  • Magnetic

Features.

  • A round menu button opens a full-height side panel from the right
  • The panel's edge bulges into a deep curve while it travels and flattens to a straight edge as it lands
  • Links step in behind the panel, a few hundredths of a second apart
  • The button's two bars cross into an X and the button turns orange while open
  • An orange fill rises through the button on hover and carries on out of the top on leave
  • The button and links lean towards the pointer and spring back on leave
  • A dot marks the current page and follows the hovered link
  • Opens with focus on the first link; Tab stays inside the menu; the page behind is locked
  • Closes from the button, a click on the dimmed page, or Escape, and focus always goes back to the button
  • Interrupting an open or close turns back from where it is; a panel taller than the screen scrolls
  • Full-width panel on phones, with a deeper curve and the content trailing in
  • Light and dark themes; the panel is inert while closed
  • Respects prefers-reduced-motion: the panel swaps in place, no pull
  • CSS transitions for the drawer, GSAP for the fill and the pull

How to get it right.

Mark the current page

Put aria-current="page" on the link for the page you're on. The dot sits on it and hands over to whichever link the pointer is on.

Keep the curve in proportion

6vw reads as a soft bulge on desktop and turns into 20vw on phones, where the panel is full width. Past 10 the curve starts to look like a separate shape; at 0 the panel slides in with a straight edge.

Match the speed to the page

data-au-duration is the open; the close takes 0.75× that, so the default is 0.8s open and 0.6s close. Go to 0.6 for a snappier product site; much below 0.5 the curve flattens before anyone sees it.

Pick the theme against your page

The panel and button share one colour. Use light on dark pages and dark on light ones so the button stands out before the menu opens.

Four or five links

The links are display-sized. Four or five fit any laptop screen; past six, lower the size on .cvm_link-text or the panel has to scroll.

Variations.

  • Light — the default: pale panel and button, dark links, for dark pages
  • Dark — data-au-theme="dark": dark panel and button, light links, for light pages
  • Straight edge — data-au-curve="0" for a plain slide-in panel
  • Deep curve — data-au-curve="10" and data-au-duration="1" for a slower, more liquid entrance
  • Your colours — override --cvm-panel, --cvm-text, --cvm-muted, --cvm-line and --cvm-accent on the root

Where it fits.

  • Portfolio or studio site — the main navigation on every page, with the button always in the corner
  • Landing page — a single menu that keeps the hero clear until someone asks for it
  • Case studies — next to a minimal header, so the work gets the whole screen
  • Mobile navigation — the full-width panel works as the phone menu on any site

Frequently asked.

Fixed in the top-right corner, 1.8em in (1.25em on phones). Change --cvm-edge on the root to move it, or --cvm-size to resize it.

The button uses z-index: 105, the panel and backdrop 100. Raise them in code.css if your header is higher, and keep the menu's root out of any element with a transform, which would trap the fixed panel inside it.

On a multi-page site the page changes anyway. For in-page anchors, call window.au.CurvedMenu.refresh(menu) after the jump: it closes the menu, releases the page lock and keeps the button's state in sync.

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

Not out of the box. Flip right to left on .cvm_panel and .cvm_toggle, mirror the translate values, and move .cvm_curve to the panel's right side.

The drawer itself is CSS, but the script waits for gsap before wiring the button. Load gsap before the script; nothing else is needed.

The default is the links alone. For socials, pass socials in React, or add a .cvm_socials block after .cvm_nav: a <p class="cvm_label cvm_label--socials"> and a .cvm_social-list of .cvm_social links. For a label above the links, add <p class="cvm_label cvm_label--nav"> and <span class="cvm_rule"></span> at the top of .cvm_nav. The styles are still in code.css.

Related components.

NewPro

Ink Spread Menu

Click

Pro

Folding Burger Nav

Scroll

Pro

Full-Screen Wipe Menu

Click