{
  "format": "css.observer/playground@1",
  "id": "00000000-0000-4000-9000-000000000017",
  "url": "https://css.observer/s/scroll-reveal-cards",
  "title": "Scroll-reveal cards",
  "description": "Feature cards that fade and rise into place as they scroll into view, using animation-timeline: view() and no JavaScript.",
  "category": "experimental",
  "tags": [
    "scroll-driven-animations",
    "view-timeline",
    "animation-timeline"
  ],
  "visibility": "public",
  "status": "published",
  "revision": 1,
  "author": "observer",
  "forked_from": null,
  "created_at": "2026-12-02T11:24:56.169Z",
  "updated_at": "2026-12-02T11:24:56.169Z",
  "published_at": "2026-12-02T11:24:56.169Z",
  "source": {
    "html": "<main class=\"page\">\n  <header class=\"page__head\">\n    <h1>Everything you need to launch</h1>\n    <p>Scroll down. Each card animates as it enters the viewport.</p>\n  </header>\n  <div class=\"cards\">\n    <article class=\"card\"><span class=\"card__num\">01</span><h2>Auth</h2><p>Passwords, magic links and passkeys, with sessions handled for you.</p></article>\n    <article class=\"card\"><span class=\"card__num\">02</span><h2>Billing</h2><p>Subscriptions, usage pricing and invoices from one dashboard.</p></article>\n    <article class=\"card\"><span class=\"card__num\">03</span><h2>Emails</h2><p>Templates that render the same in every client, with previews.</p></article>\n    <article class=\"card\"><span class=\"card__num\">04</span><h2>Analytics</h2><p>Privacy-friendly page views and events without cookie banners.</p></article>\n    <article class=\"card\"><span class=\"card__num\">05</span><h2>Storage</h2><p>Uploads with resizing, signed URLs and a global CDN.</p></article>\n    <article class=\"card\"><span class=\"card__num\">06</span><h2>Search</h2><p>Typo-tolerant full-text search over your own data.</p></article>\n  </div>\n</main>",
    "css": "body {\n  margin: 0;\n  background: #0d0e12;\n  color: #eceef2;\n  font: 15px/1.5 system-ui, sans-serif;\n}\n\n.page {\n  max-width: 760px;\n  margin: 0 auto;\n  padding: 48px 20px 30vh;\n}\n\n.page__head {\n  margin-bottom: 28px;\n  text-align: center;\n}\n\n.page__head h1 {\n  margin: 0;\n  font-size: clamp(1.8rem, 5vw, 2.6rem);\n  letter-spacing: -0.03em;\n  text-wrap: balance;\n}\n\n.page__head p {\n  margin: 8px 0 0;\n  color: #8f929d;\n}\n\n.cards {\n  display: grid;\n  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));\n  gap: 12px;\n}\n\n.card {\n  padding: 20px;\n  border: 1px solid #24262d;\n  border-radius: 16px;\n  background: linear-gradient(180deg, #17181e, #131418);\n}\n\n.card__num {\n  color: #7c6cff;\n  font: 600 0.8rem ui-monospace, monospace;\n}\n\n.card h2 {\n  margin: 10px 0 6px;\n  font-size: 1.1rem;\n}\n\n.card p {\n  margin: 0;\n  color: #a3a6b1;\n  font-size: 0.9rem;\n}\n\n@supports (animation-timeline: view()) {\n  .card {\n    animation: reveal linear both;\n    animation-timeline: view();\n    animation-range: entry 10% cover 30%;\n  }\n\n  @keyframes reveal {\n    from {\n      opacity: 0;\n      transform: translateY(40px) scale(0.96);\n    }\n  }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .card {\n    animation: none;\n  }\n}",
    "js": ""
  }
}