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
VaultNavigationFolding Burger Nav
Diagonal Tile GalleryBrowse all 182Heading Lift on Scroll
  • 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

Folding Burger Nav

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

  • Header
  • Menu
  • Mega menu
  • Sticky

Features.

  • The pill of links folds across the bar into a burger as you scroll down, and unfolds on a card when you scroll back up
  • Turn round mid-fold and it carries on from where it is
  • Point at the burger, click it or press Enter to unfold without scrolling
  • A light patch follows the pointer along the links
  • Drop-down panels: rows with a picture that follows the hovered row, two titled columns, or rows beside tiles
  • The button and burger change colour over any section you mark
  • A full phone menu with accordions under 992px
  • Keyboard throughout: Enter or ↓ opens a panel, Escape steps back out
  • Respects prefers-reduced-motion: states change at once

How to get it right.

Keep the burger next to the button

The pill travels to wherever [data-fnv-burger] sits and takes its size. It has no fill of its own: the folded pill is its background.

Mark sections for the accent

Add data-fnv-accent to any section. While it is behind the bar, the button, burger and folded pill take --fnv-accent.

Match the lamp to the links

[data-fnv-lamp] repeats the labels in the same order. Change a label in both places, or delete the lamp.

Number the pictures

Each row with data-fnv-picture="2" shows the third image in [data-fnv-pictures].

Variations.

  • Slower or faster fold — data-au-duration="0.8"
  • Another curve — data-au-ease="spring", or any of snappy, soft, linear, expo-out, expo-in-out, back-out, windup, drive, kick, hop
  • Fold later — data-au-top="200"
  • Unfold sooner or later — data-au-unfold="10" or "200"
  • Click only — data-au-hover="false"
  • Round pill and buttons — --fnv-radius: 2.25em on the root
  • Another accent — --fnv-accent
  • Looser rows — --fnv-step: 80ms
  • Plain links only — leave data-fnv-item empty on every link and delete [data-fnv-drop]
  • No lamp, no phone menu, no text link — delete [data-fnv-lamp], [data-fnv-mobile] with [data-fnv-toggle], or .fnv_login
  • Your palette — override --fnv-fg, --fnv-bg, --fnv-pill, --fnv-surface-top, --fnv-surface-end and --fnv-raised on the root

Where it fits.

  • Product and SaaS sites — a full menu at the top, out of the way while reading
  • Shops — the button stays in reach the whole way down
  • Long landing pages — the links are one small scroll up from anywhere

Frequently asked.

No. Only GSAP and CustomEase. It reads the page's scroll position directly, so it works with native scroll and with Lenis.

Pointing at the burger unfolds it. Set data-au-hover="false" to make it click only.

It is 991px in two places: the @media (max-width: 991px) block in the CSS and small in the script. Change both.

Yes. At the top of the page it sits on your hero; further down it gets its card.

Related components.

NewPro

Ink Spread Menu

Click

Pro

Full-Screen Wipe Menu

Click

Pro

Tilting Panel Menu

Click