Skip to content
motionprompts motionprompts

Trapezoid Card Stack

GSAP animation component · Published 2026-11-21 · by vanguardia.dev

Open live demo ↗ Download source

What it does

Three wide trapezoid cards (clip-path) that overlap and rise into place with the scroll; as each new card arrives, the one beneath tilts back on rotateX from its top edge and shrinks slightly, like a deck closing. Mono index "01/" and a large light name on each card.

How it's built

Categorycards
Techgsap
GSAP pluginsScrollTrigger
Complexitysection
Performance costlight
Mobile-safeyes

cards stack perspective rotatex trapezoid clip-path scrub scroll

Rebuild it with AI

This component's prompt is part of the paid library. Below you can read how it starts; the full prompt, the exact structure, timing and easing an AI agent needs to rebuild the effect, unlocks with any paid plan, yearly or lifetime.

# Trapezoid Card Stack — three wide cards that close like a deck as you scroll
## Goal
Build a stack of three large cards, each cut into a **trapezoid** (wider at the top), that overlap and rise into place with the scroll. **When the next card arrives, the card beneath tilts back on `rotateX` from its top edge and shrinks to 0.97, inside a shared `perspective`, so the stack reads as a deck closing.** Each card carries a small mono index (`01/`, `02/`, `03/`) and one large light-weight name. Use it for three services, phases or product lines. Do not use it for more than four or five items, or for cards that need dense content: the cards are mostly empty on purpose.
## Tech
Vanilla HTML/CSS/JS with ES modules: `gsap` (npm) and its `ScrollTrigger` plugin. No Lenis, no pin.
```js
import gsap from "gsap";
import { ScrollTrigger } from "gsap/ScrollTrigger";
gsap.registerPlugin(ScrollTrigger);
```
## Structure
```html
…

Premium prompt

Unlock this prompt, and every other one

From $99/year, or $139 once for lifetime access. Commercial license included.

See pricing Or start with the free set Already bought? Sign in

New components in your inbox

One email a week, only when new components ship, each with its live demo and prompt.