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
VaultNavigationTilting Panel Menu
Stripe Reveal CarouselBrowse all 182Diamond Line Timeline
  • 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

Tilting Panel 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
  • Tilt

Features.

  • A Menu pill fixed top right that drops in on a spring when the page loads
  • Hover it with a mouse and the pill tips over while the panel leans in from the side and rests against the pill's round end, a peek of the menu
  • The resting point is worked out from the pill and panel sizes, so the two always just touch, whatever the lean
  • Click and the pill is thrown off the top while the panel springs flat into place
  • The links rise out of their rows one after another, turned and pushed aside, and settle with a small lift
  • Close sits exactly where the pill was; closing sends the panel away and drops the pill back in
  • Every move starts from where things are, so a quick re-open, close or re-hover never jumps
  • Hover or focus a link and it steps right while the others dim; the current page is marked in a dimmer ink and stays put
  • Escape, a link or a click on the dimmed page closes; focus goes to the first link on open and back to the pill on close; Tab stays inside the menu; the page can't scroll while it's open
  • Full screen on phones, and the links scroll on short screens
  • Respects prefers-reduced-motion: no peek, and open and close swap instead of animating
  • GSAP only, plain CSS for the look and the link rise

How to get it right.

Mount it once

The pill, scrim and panel are all position: fixed, so the component can sit anywhere in your page; just after <body> opens is tidiest. It's a site-level menu: one per page.

Keep the lean small

The peek only works while the pill visibly rests on the panel's edge. 5° to 9° reads as a tip; past 10° the pill tips so far its label gets hard to read.

Five links or so

The rise is staggered 0.05s per row, so five or six rows land together as one gesture. Ten would still work but the last rows arrive late. The list scrolls if it's taller than the screen.

Mark the current page

Put aria-current="page" on the link for the page you're on. It's drawn in --tlt-dim and never steps aside, so it reads as "you are here".

Variations.

  • Default — 7° peek, 0.8 spring, 0.8s open
  • Bouncy — data-au-spring="0.5" for a pill and panel that ring more
  • Calm — data-au-spring="1.2" and data-au-duration="1" for a softer landing
  • No peek — data-au-peek="false": the pill only opens on click
  • Your colours — override --tlt-panel, --tlt-face, --tlt-ink and --tlt-disc on .tlt_menu

Where it fits.

  • Studio and portfolio sites — a handful of big links behind one confident button
  • Campaign and event pages — a bold colour panel that feels like part of the design rather than a drawer
  • Sites with a busy hero — the pill sits clear of the content and the panel doesn't cover the whole page on desktop

Frequently asked.

Yes. <html> gets overflow: hidden while it's open, with scrollbar-gutter: stable if your page has a scrollbar so nothing shifts. It's released as soon as closing starts and in destroy().

The peek is a hover effect, so it only runs for a mouse on a device that can hover. On touch a tap opens the menu straight away.

Yes. Delete the .tlt_small list and the menu works the same. The scrim (data-tlt-scrim) is optional too; without it a click outside the panel no longer closes it, and the page shows undimmed.

At 767px and below the panel fills the screen with square corners, the pill and type get smaller, and Close still sits where the pill was.

window.au.TiltMenu.refresh() resets every instance closed. Use it after a client-side route change.

Related components.

NewPro

Ink Spread Menu

Click

Pro

Folding Burger Nav

Scroll

Pro

Full-Screen Wipe Menu

Click