{
  "id": "stacking-cards-scroll",
  "name": "Stacking Cards on Scroll",
  "category": "effects",
  "tags": [
    "sticky",
    "stack",
    "scroll",
    "cards",
    "position sticky",
    "storytelling"
  ],
  "description": "Cards that pile up on top of each other as you scroll, each sticking a little lower, with plain position: sticky.",
  "url": "https://copy-css.com/snippets/stacking-cards-scroll",
  "markdown": "https://copy-css.com/snippets/stacking-cards-scroll.md",
  "html": "<ol class=\"stack-scroll\">\n  <li style=\"--i: 0\">01 · Research</li>\n  <li style=\"--i: 1\">02 · Prototype</li>\n  <li style=\"--i: 2\">03 · Test</li>\n  <li style=\"--i: 3\">04 · Ship</li>\n</ol>",
  "css": ".stack-scroll {\n  display: grid;\n  gap: 60px;\n  margin: 0;\n  padding: 0 0 40px;\n  list-style: none;\n  font-family: system-ui, sans-serif;\n}\n\n.stack-scroll li {\n  position: sticky;\n  top: calc(16px + var(--i) * 14px);\n  display: flex;\n  align-items: flex-end;\n  height: 120px;\n  padding: 18px;\n  box-sizing: border-box;\n  border-radius: 18px;\n  background: hsl(calc(250 + var(--i) * 30) 85% 65%);\n  box-shadow: 0 -8px 24px -12px rgba(0, 0, 0, 0.6);\n  color: #fff;\n  font-size: 20px;\n  font-weight: 800;\n}",
  "features": [
    "box shadows",
    "CSS Grid",
    "Flexbox",
    "sticky positioning",
    "custom properties"
  ],
  "customProperties": []
}
