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
VaultPage transitionsZoom-Out Card Transition
Image Handoff on ScrollBrowse all 182Reeded Glass List
  • 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

Zoom-Out Card Transition

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

Setup

npm i gsapregisterPlugin(CustomEase, SplitText)

More like this

  • Card
  • Reveal
  • Expand
  • Split text

Features.

  • The page presses back into a small card, and its corners round as it shrinks
  • The next page slides up inside the same card while the old one drifts up under it
  • The card grows back out to full screen and squares off as the slide lands
  • The new title lifts in letter by letter as the card starts to grow
  • Click another page mid-cut and it follows straight after; the newest click wins
  • The nav sits above the card, never moves and stays clickable
  • Focus moves to the new page when a nav link had it
  • window.au.MatchCut.go(el, "page-2") runs the transition from your own code
  • Respects prefers-reduced-motion: pages swap instantly

How to get it right.

Pick a backdrop none of the pages share

The backdrop (--mcu-backdrop) is what shows round the card. A page in the same colour has no edge once it shrinks, and the card disappears.

Give every page a solid background

The old page stays under the new one until the cut ends. A page without a background lets it show through.

Keep the nav outside the card

The nav bar is a sibling of the card, so it doesn't shrink. Put anything else that should hold still (a logo, a header) next to it, with a z-index above 1.

Variations.

  • Slower cut — data-au-duration="2.6"; every step stretches with it
  • Smaller card — --mcu-scale: 0.45 on the root
  • Square card — --mcu-radius: 0em
  • From another side — data-au-from="top", "left" or "right"
  • Push or cover — data-au-drift="100" pushes the old page right out; "0" leaves it still under the new one
  • More pages — add a <main data-mcu-page="page-4" hidden> inside the card and a link with data-mcu-link="page-4"
  • Your palette — override --mcu-backdrop and the page colours on the root

Where it fits.

  • Portfolios — case study to case study
  • Small sites — a handful of pages kept in one document
  • Product tours — full-screen steps
  • Router transitions — call go() from your router's hook

Frequently asked.

No. The pages live in one document and the script shows and hides them. For a router, render the pages into the card and call window.au.MatchCut.go(el, name).

The cut in flight finishes, then the last page you asked for comes in. Clicks in between are skipped.

The rounding is part of the motion: the corners go from square to --mcu-radius as the card presses in and back to square as it grows. At rest the page has no radius. Set --mcu-radius: 0em for a square card.

Yes. Each <main> is an ordinary full-screen container; put anything in it. It all shrinks with the card.

Related components.

NewPro

Bell Wipe Transition

Click

Pro

Card Expand Transition

Click

Pro

Card Shrink Transition

Click