{
  "format": "css.observer/playground@1",
  "id": "00000000-0000-4000-9000-000000000015",
  "url": "https://css.observer/s/scroll-driven-progress",
  "title": "Scroll-driven progress bar",
  "description": "A reading progress bar powered by animation-timeline: scroll() — zero JavaScript.",
  "category": "experimental",
  "tags": [
    "scroll-timeline",
    "animation-timeline",
    "progress"
  ],
  "visibility": "public",
  "status": "published",
  "revision": 1,
  "author": "observer",
  "forked_from": null,
  "created_at": "2026-12-02T10:26:36.930Z",
  "updated_at": "2026-12-02T10:26:36.930Z",
  "published_at": "2026-12-02T10:26:36.930Z",
  "source": {
    "html": "<div class=\"progress\" aria-hidden=\"true\"></div>\n<article><h1>Scroll me</h1><p>Scroll-driven animations tie keyframes to a scroll position instead of time. Keep scrolling to watch the bar fill.</p><p>Scroll-driven animations tie keyframes to a scroll position instead of time. Keep scrolling to watch the bar fill.</p><p>Scroll-driven animations tie keyframes to a scroll position instead of time. Keep scrolling to watch the bar fill.</p><p>Scroll-driven animations tie keyframes to a scroll position instead of time. Keep scrolling to watch the bar fill.</p><p>Scroll-driven animations tie keyframes to a scroll position instead of time. Keep scrolling to watch the bar fill.</p><p>Scroll-driven animations tie keyframes to a scroll position instead of time. Keep scrolling to watch the bar fill.</p><p>Scroll-driven animations tie keyframes to a scroll position instead of time. Keep scrolling to watch the bar fill.</p><p>Scroll-driven animations tie keyframes to a scroll position instead of time. Keep scrolling to watch the bar fill.</p><p>Scroll-driven animations tie keyframes to a scroll position instead of time. Keep scrolling to watch the bar fill.</p><p>Scroll-driven animations tie keyframes to a scroll position instead of time. Keep scrolling to watch the bar fill.</p><p>Scroll-driven animations tie keyframes to a scroll position instead of time. Keep scrolling to watch the bar fill.</p><p>Scroll-driven animations tie keyframes to a scroll position instead of time. Keep scrolling to watch the bar fill.</p><p>Scroll-driven animations tie keyframes to a scroll position instead of time. Keep scrolling to watch the bar fill.</p><p>Scroll-driven animations tie keyframes to a scroll position instead of time. Keep scrolling to watch the bar fill.</p></article>",
    "css": "body { margin: 0; font: 17px/1.7 Georgia, serif; background: #fbfaf7; color: #16171a; }\narticle { max-width: 620px; margin: 0 auto; padding: 60px 20px; }\n.progress { position: fixed; top: 0; left: 0; right: 0; height: 5px; background: #3f6b00; transform-origin: left; transform: scaleX(.15); }\n@supports (animation-timeline: scroll()) {\n  .progress { animation: grow linear both; animation-timeline: scroll(root); }\n  @keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }\n}",
    "js": ""
  }
}