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
VaultGallery & imagesFile Drawer Cards
Image Trail TakeoverBrowse all 182Card Expand Transition
  • 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

File Drawer Cards

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

  • Hero
  • Card
  • 3D

Features.

  • Cards stand on edge in real perspective, placed by one projection function
  • The pointer lifts the cards around it in a soft wave
  • A click pulls a card out until it clears the one in front; click again or press Escape to drop it back
  • On touch the file slides under your finger, throws and snaps to a card
  • The cards are dealt up from below when the section comes into view
  • Every card is a real button: Tab lifts, Enter opens
  • window.au.CardFile.open(el, index) and close(el) from your own code
  • Respects prefers-reduced-motion: cards jump instead of gliding

How to get it right.

Give it the height

The file sits on the bottom edge of the root and an open card rises almost to the top. Keep the root tall: it is 100svh with a 35em minimum.

Keep card content at the top

Only the top of an open card clears the cards in front. Anything in the lower 44% stays hidden behind them.

Use enough cards

The file is centred, so a handful of cards looks thin. Twelve or more fill a desktop screen.

Variations.

  • Taller wave — data-au-lift="0.34"
  • Wider wave — data-au-falloff="2.4"
  • Lower pull-out — data-au-pull="0.7"; a clicked card rises 70% of the way. At low values (0.6 and under) the big number sits partly behind the card in front
  • Looser or tighter file — data-au-gap="0.32" or "0.16"
  • Slower or faster — data-au-speed="0.6" or "1.6"
  • Another ease — data-au-ease="snappy", "soft" or "spring" (cards overshoot and settle)
  • More curves — data-au-ease also takes expo-out, expo-in-out, back-out, windup, drive, kick, hop. back-out and hop run past the end and settle back; windup pulls back first
  • Photos — put an <img> inside a card with position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover
  • Your own names — each card's name is the .cdf_name span; the page heading is the h1 with data-cdf-intro (remove it, or add more elements with that hook and they fade up with the deal)
  • Your palette — override --cdf-orange, --cdf-cream, --cdf-ash, --cdf-stone and their -ink partners

Where it fits.

  • Portfolio heroes — one card per project
  • Archives and indexes — years, issues, chapters
  • Team or product line-ups — where browsing is the point

Frequently asked.

As many as you like; 12 to 30 look best. Cards past the screen edges are still there, and on touch you slide to them.

The card is a button that opens itself. Put the link inside the open card's content, in the top half.

Touch has no hover, so the file works differently there: slide it, and the middle card is the raised one. Tap it to pull it out.

No. An IntersectionObserver starts the deal, and nothing else depends on scroll.

Related components.

Pro

Capsule Image Hero

Click

Pro

Depth Fly-Through Hero

Load

Pro

Draggable Brick Grid

Drag