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
VaultNavigationPage Turn Menu
Card Ring GalleryBrowse all 182Drag Parallax Slider
  • 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

Page Turn 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
  • Tilt

Features.

  • Opening the menu turns the page away: it drops off the bottom of the screen, tilting and growing as it goes
  • The menu panel waits behind the page and swings in from the top left, counter-tilted, as the page leaves
  • The drop is measured from the page's size, so its highest corner always clears the screen, whatever the tilt and grow
  • One timeline runs open and close: a second click mid-turn turns back from wherever it is
  • The Menu label rolls up to Close and the burger folds into an X during the middle of the turn
  • Each primary link pops an orange dot and steps aside on hover or keyboard focus
  • Each link opens its own picture over the last one, from a band across the middle of a 4:5 frame (touch screens stay on the first picture)
  • The page layer is its own scroller, so your content scrolls normally while the menu is closed
  • Escape closes; focus moves to the first link on open and back to the toggle on close; Tab stays inside the menu; the page is inert while the menu is open
  • The links scroll if they're taller than the screen, and resizing mid-turn re-measures the drop
  • Respects prefers-reduced-motion: the turn swaps instead of animating
  • GSAP only, plain CSS for the look

How to get it right.

Put your page inside the page layer

The effect turns .ptm_page away, so everything that should leave with the page goes inside it. It fills the component and scrolls on its own; the header stays on top of both layers.

Keep the tilt modest

7° reads as a page being turned. Past 12° or so the page starts to spin rather than drop. If you raise the tilt, the script drops the page further so the corner still clears the screen, which makes the move longer in distance; add a little duration to match.

One picture per link

The frame shows the pictures in the order of the links: the first link's picture is shown on open, and hovering the third link opens the third picture. Keep the two lists the same length.

Give the panel its own colour

The page is --ptm-bg and the panel is --ptm-panel. Keep them a step apart so the two layers read as separate sheets while they cross.

Variations.

  • Default — 7° tilt, grows to 1.3, 0.8s open and 0.6s close
  • Straight drop — data-au-tilt="0" and data-au-grow="1": the page falls straight down and the panel slides in from above
  • Big turn — data-au-tilt="12" and data-au-grow="1.5": a heavier, more theatrical page turn
  • Quick — data-au-duration="0.5" for a snappier menu
  • Your colours — override --ptm-bg, --ptm-panel, --ptm-fg, --ptm-muted and --ptm-accent on .ptm_menu

Where it fits.

  • Studio and portfolio sites — a small set of big links with a picture each, the setup this demo shows
  • Editorial sites — sections as the links, a cover image for each
  • Campaign or product pages — a full-screen menu that feels like part of the story rather than a drawer

Frequently asked.

The page layer scrolls natively inside .ptm_page, not on the window. If you want Lenis, point an instance at it with wrapper set to the page layer and content to an inner wrapper, and stop it while the menu is open.

Yes. Add or remove [data-ptm-link] rows and the matching [data-ptm-img] pictures, in the same order.

The page layer is the scroller and the root fills the screen, so there's normally nothing else to scroll. If you have content outside the root, <html> gets overflow: hidden while the menu is open, released when the turn has played back and in destroy().

At 767px and below the picture column is hidden and the type and padding get smaller. The turn is the same.

It's inert from the moment the menu opens until the turn has fully played back, so keyboard and screen-reader users can't land on something that's off screen. The panel works the other way round: it goes inert as soon as closing starts.

Each [data-au-page-turn-menu] is its own instance, but this is a full-screen, site-level menu: one per page is what it's made for. Give each panel a unique id if you do use two.

The menu holds the main links and the page holds one image by default. Add <a class="ptm_all" href="..."> as the last child of .ptm_nav, and a <nav class="ptm_minor"> of .ptm_minor-link links after it. For hero copy, add a .ptm_hero-copy block inside .ptm_hero, with .ptm_eyebrow, .ptm_title and .ptm_sub. 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