Files
hyperframes/docs/public/catalog/components/panel-reveal.json
T
Miguel Ángel 9734578e60 feat(registry): bring back the video-primitive moves (#3169)
Restores the 208 catalog items reverted after their previews 404'd in
production, this time on the payload mechanism rather than the .html files
that caused the outage.

The generator no longer writes a preview document to docs/public. That writer,
and the machinery under it, existed only to produce files the docs host
discards, so it is gone rather than bypassed. Items now embed the composition
itself via a payload, which is what the previous change already does for the
items that were already in the catalog.

The variables explorer is parked, not restored: it drove its preview through
the same unpublished .html path, so it would have shown an empty frame. Items
that declare variables get the live player plus the static variables table, and
reconnecting the explorer to payloads is a follow-up.
2026-08-10 18:46:03 -04:00

1 line
2.9 KiB
JSON

{"html":"<!doctype html>\n<html lang=\"en\">\n <head>\n <meta charset=\"UTF-8\" />\n <meta name=\"viewport\" content=\"width=1920, height=1080\" />\n <title>Panel Reveal - Demo</title>\n <script src=\"https://cdn.jsdelivr.net/npm/gsap@3.14.2/dist/gsap.min.js\"></script>\n <style>\n * {\n box-sizing: border-box;\n }\n html,\n body {\n margin: 0;\n width: 1920px;\n height: 1080px;\n overflow: hidden;\n }\n #demo {\n width: 1920px;\n height: 1080px;\n display: grid;\n place-items: center;\n background: #f7f7f8;\n font-family: Inter, system-ui, sans-serif;\n }\n .demo-frame {\n display: grid;\n place-items: center;\n min-width: 760px;\n min-height: 480px;\n padding: 56px;\n /* ponytail: scale wrapper — GSAP targets .hf-transition-panel-reveal, not this element */\n transform: scale(2.6);\n transform-origin: center center;\n }\n .hf-transition-panel-reveal {\n --hf-panel-open: 1;\n width: 380px;\n overflow: hidden;\n border: 1px solid #e4e4e7;\n border-radius: 14px;\n background: #fff;\n color: #18181b;\n font-family: Inter, system-ui, sans-serif;\n box-shadow: 0 24px 70px rgba(24, 24, 27, 0.1);\n }\n .hf-transition-panel-reveal header {\n padding: 18px 20px 14px;\n font-size: 16px;\n font-weight: 600;\n letter-spacing: -0.01em;\n }\n .hf-transition-panel-reveal div {\n max-height: calc(var(--hf-panel-open) * 120px);\n opacity: var(--hf-panel-open);\n padding: 0 20px calc(var(--hf-panel-open) * 20px);\n overflow: hidden;\n }\n .hf-transition-panel-reveal p {\n margin: 0 0 8px;\n color: #71717a;\n font-size: 15px;\n }\n </style>\n </head>\n <body>\n <div\n id=\"demo\"\n data-composition-id=\"panel-reveal-demo\"\n data-start=\"0\"\n data-width=\"1920\"\n data-height=\"1080\"\n data-duration=\"5\"\n >\n <div class=\"demo-frame\">\n <section class=\"hf-transition-panel-reveal\">\n <header>Motion tokens</header>\n <div>\n <p>Duration 420ms</p>\n <p>Easing power3.out</p>\n </div>\n </section>\n </div>\n <script>\n const tl = gsap.timeline({ paused: true });\n const startTime = 0.5;\n tl.fromTo(\n \".hf-transition-panel-reveal\",\n { \"--hf-panel-open\": 0 },\n { \"--hf-panel-open\": 1, duration: 0.44, ease: \"power3.inOut\" },\n startTime,\n );\n tl.set({}, {}, 5);\n window.__timelines = window.__timelines || {};\n window.__timelines[\"panel-reveal-demo\"] = tl;\n </script>\n </div>\n </body>\n</html>\n"}