Files
hyperframes/docs/public/catalog/components/perspective-marquee.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.8 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>Perspective Marquee - 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 /* ponytail: scale on wrapper — GSAP only targets the inner div, so CSS transform is safe here */\n transform: scale(3);\n }\n .hf-remocn-perspective-marquee {\n color: #18181b;\n font-family: Inter, system-ui, sans-serif;\n font-weight: 900;\n letter-spacing: -0.04em;\n }\n .hf-remocn-perspective-marquee {\n width: 580px;\n perspective: 900px;\n overflow: hidden;\n transform: rotateX(18deg);\n }\n .hf-remocn-perspective-marquee div {\n display: inline-flex;\n gap: 22px;\n white-space: nowrap;\n transform: translateX(var(--hf-marquee-x, 0px));\n }\n .hf-remocn-perspective-marquee span {\n padding: 12px 18px;\n border-radius: 999px;\n background: #18181b;\n color: #fff;\n font-size: 28px;\n box-shadow: 0 18px 44px rgba(24, 24, 27, 0.18);\n }\n </style>\n </head>\n <body>\n <div\n id=\"demo\"\n data-composition-id=\"perspective-marquee-demo\"\n data-start=\"0\"\n data-width=\"1920\"\n data-height=\"1080\"\n data-duration=\"5\"\n >\n <div class=\"demo-frame\">\n <div class=\"hf-remocn-perspective-marquee\">\n <div>\n <span>COMPONENTS</span><span>PRIMITIVES</span><span>TRANSITIONS</span><span>AGENTS</span\n ><span>COMPONENTS</span><span>PRIMITIVES</span><span>TRANSITIONS</span\n ><span>AGENTS</span>\n </div>\n </div>\n </div>\n <script>\n const tl = gsap.timeline({ paused: true });\n const startTime = 0.5;\n tl.fromTo(\n \".hf-remocn-perspective-marquee div\",\n { \"--hf-marquee-x\": \"0px\" },\n { \"--hf-marquee-x\": \"-360px\", duration: 4.5, ease: \"none\" },\n startTime,\n );\n tl.set({}, {}, 5);\n window.__timelines = window.__timelines || {};\n window.__timelines[\"perspective-marquee-demo\"] = tl;\n </script>\n </div>\n </body>\n</html>\n"}