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
VaultUI componentsPush Aside Drawer
Staircase Letter PopBrowse all 182Staggered Card Reveals
  • 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

Push Aside Drawer

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
  • SplitText

Setup

npm i gsapregisterPlugin(SplitText)

More like this

  • Hero
  • Drawer
  • Reveal
  • Split text

Features.

  • A full-screen hero that is one big button: click anywhere on it to open the detail panel
  • A panel slides in from the right with its left edge opening just behind the slide
  • The hero image is pushed aside and zooms slightly, its shade deepens and a blurred backdrop covers the rest
  • The hero heading and link lift out of sight word by word, and rise back in when the panel closes
  • In the panel, each line of text is uncovered top-down as it rises into place, then any image or button fades up
  • Close with the close button, a click on the backdrop or Escape; closing runs 1.5× faster than opening
  • It's a real dialog: the panel is inert and hidden from screen readers while closed, focus moves to the close button on open and back to the hero on close
  • Image push, zoom and panel width are options
  • Full-width panel and a smaller heading below 768px
  • Respects prefers-reduced-motion: everything opens and closes instantly
  • GSAP and SplitText

How to get it right.

Two short heading lines

The heading is 8em and set as two lines with a <br>. Three or four words a line keeps it inside the hero on a laptop; it drops to 3.5em on phones.

Choose an image that survives the push

On open the image moves left by push vw and the panel covers the right half. Pick a picture whose subject still reads on the left half, or lower the push.

Keep the panel copy plain

The panel's text is split into lines when the page's fonts are ready. Plain paragraphs reveal best; links and bold inside them work but each split line is revealed as one piece.

Adding more to the panel

It ships with a title, a short paragraph and an image. Add a .psd_tagline or more .psd_text blocks with data-psd-lines, or a .psd_button inside a data-psd-fade block; the <figure class="psd_figure" data-psd-fade> is optional. In React, pass tagline, figure and button.

Give each drawer its own id

The hero's aria-controls points at the panel's id. With two drawers on a page, change both ids on the second one.

Variations.

  • Default — 20vw push, 1.08 zoom, half-width panel
  • Still hero — data-au-push="0" and data-au-zoom="1": only the panel moves
  • Wide panel — data-au-width="65" with data-au-push="30"
  • Narrow panel — data-au-width="35" for a short note
  • Your colours — override the --psd-* variables; the panel has its own set (--psd-panel-*, --psd-accent)

Where it fits.

  • Campaign or product heroes — a big picture first, the story one click away
  • Portfolio case studies — the cover image opens the brief
  • Event pages — a poster-style hero that opens the details and a booking button
  • Studio or about pages — a statement that opens into the longer version

Frequently asked.

Not as built. It's anchored right and the image is pushed left; a left version means flipping the panel's position, the clip edge and the push direction.

Yes. Anything inside [data-psd-inner] that isn't a data-psd-lines block is left alone; wrap it in data-psd-fade to fade it up with the image and button.

Lines are split once, when the fonts are ready. After a big layout change call window.au.PushDrawer.refresh().

The component doesn't lock page scrolling. The panel scrolls on its own (overscroll-behavior: contain) when its content is taller than the screen.

Yes: gsap and SplitText, loaded before the script.

Related components.

Pro

Image Slide Tabs

Click

Pro

Glow Band Sheet Modal

Click

Pro

Expanding Card Modal

Click