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 componentsCard Stack Tabs
Fanning Image CardsBrowse all 182Card Tunnel Hero
  • 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

Card Stack Tabs

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

  • Card
  • Tabs
  • Glow
  • 3D
  • Canvas

Features.

  • A 3D stack of cards, one per tab, with the cards behind peeking out above the front one
  • Picking a tab shuffles the stack by the tab difference: the card passing the front sinks, stretches and fades, then drops into the back from above
  • Going back mirrors it: the back card lifts out and rises in at the front
  • Clicking a card behind the front brings it forward
  • On wide screens each tab scatters four floating cards round the corners, at a fresh random spot each load; hover flips one to show what it was painted with
  • On screens 991px and below the same tags sit inside the card, and the tab bar centres the active tab and can be dragged sideways
  • A soft glow follows the pointer across the dot grid (mouse only)
  • The cards rise in on a spring the first time the section comes into view
  • A real tablist: arrow keys, Home and End move between tabs
  • Respects prefers-reduced-motion: everything jumps, no glow, no flip
  • GSAP and CustomEase; the glow is a canvas

How to get it right.

Five cards, five tabs

The stack shows the active card and everything behind it. Five is the source of the effect; with many more, the back cards climb far above the front one (each sits depth em higher).

Give it height

The section has 14em of padding on top for the cards behind to rise into. Don't cut it back unless you also lower depth.

Keep the card copy short

A title and one short line sit under the image. The notch is bare by default; .cst_notch-label adds a vertical label to it.

Square images

Card and floating images are cropped square. Pick pictures with a clear centre.

Four tags per card

The floating cards fill four corners, one tag each. Fewer tags leave a corner empty; more than four are only shown inside the card on narrow screens.

Variations.

  • Default — 6em depth, floating cards and the pointer glow on
  • Tight stack — data-au-depth="3" so the cards behind barely peek out
  • Just the stack — data-au-floats="false" and data-au-glow="false"
  • Light section — override --cst-bg, --cst-text, --cst-card, --cst-dot-glow and --cst-media with light values, and set --cst-glow: none
  • Your colours — also --cst-border, --cst-tag, --cst-pill and --cst-pill-text on .cst_section

Where it fits.

  • Services or solutions — one card per offer, with its details as corner cards
  • Process steps — a short sequence you flick through
  • Courses or workshops — one card per class, tags for what you'll learn
  • Product ranges — one card per line, corner cards for variants

Frequently asked.

Not built in. Call .click() on the next [data-cst-tab] from a timer if you want it to cycle.

Each one sits at a random spot (30–70%) inside its corner cell, picked when the script starts. It keeps the layout from looking stamped out.

They need room round the stack, so below 992px the tags show inside the card instead.

It's written by the script. Edit the string in code.js where the back face is built.

No. Load gsap and CustomEase before the script.

Related components.

Pro

Image Slide Tabs

Click

Pro

Glow Band Sheet Modal

Click

Pro

Expanding Card Modal

Click