StealThis .dev

Card Stack Choreography

Looping card stack transforms for staged reveal sequences.

Open in Lab
gsapcard-motion
Targets: JS HTML

Code

body { margin: 0; min-height: 100vh; display: grid; place-content: center; background: #060a12; color: #f2f7ff; font-family: "Avenir Next", sans-serif; }
.back { position: fixed; top: 14px; left: 14px; color: #86e8ff; text-decoration: none; }
h1 { text-align: center; margin: 0 0 1rem; }
.stack { position: relative; width: min(88vw, 520px); height: 340px; }
.card { position: absolute; inset: 0; border-radius: 18px; display: grid; place-content: center; font-size: 2rem; font-weight: 800; border: 1px solid #344865; background: linear-gradient(150deg, #223652, #6f3eb2); }
.card:nth-child(2){ background: linear-gradient(150deg, #2a4454, #2e6cb3); }
.card:nth-child(3){ background: linear-gradient(150deg, #4d2f69, #6c3eb2); }
.card:nth-child(4){ background: linear-gradient(150deg, #3f4b7d, #486bb0); }

Card Stack Choreography

Looping card stack transforms for staged reveal sequences.

Source

  • Repository: libs-gen
  • Original demo id: 07-card-stack-choreo

Notes

Looping card stack transforms for staged reveal sequences.