mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-19 19:36:04 +00:00
1 line
2.8 KiB
JSON
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>Matrix Decode - 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: #f4f4f5;\n font-family: Inter, system-ui, sans-serif;\n }\n /* ponytail: scale on wrapper (not a GSAP target), zooms content ~3× for thumbnail legibility */\n .demo-frame {\n display: grid;\n place-items: center;\n gap: 32px;\n padding: 72px 96px;\n background: #18181b;\n border-radius: 20px;\n box-shadow: 0 32px 80px rgba(0, 0, 0, 0.22);\n transform: scale(3.2);\n transform-origin: center center;\n }\n .demo-label {\n font-size: 13px;\n font-weight: 500;\n letter-spacing: 0.12em;\n text-transform: uppercase;\n color: #71717a;\n }\n .hf-catalog-matrix-decode {\n display: inline-flex;\n gap: 4px;\n font:\n 700 52px/1 ui-monospace,\n SFMono-Regular,\n Menlo,\n monospace;\n color: #4ade80;\n text-shadow: 0 0 24px rgba(74, 222, 128, 0.45);\n }\n .hf-catalog-matrix-decode span {\n display: inline-block;\n min-width: 0.64em;\n opacity: var(--hf-matrix-opacity, 1);\n }\n </style>\n </head>\n <body>\n <div\n id=\"demo\"\n data-composition-id=\"matrix-decode-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=\"demo-label\">Matrix Decode</div>\n <div class=\"hf-catalog-matrix-decode\" data-final=\"HYPERFRAMES\">\n <span>0</span><span>0</span><span>0</span><span>0</span><span>0</span><span>0</span\n ><span>0</span><span>0</span><span>0</span><span>0</span>\n </div>\n </div>\n <script>\n const tl = gsap.timeline({ paused: true });\n const startTime = 0.5;\n tl.fromTo(\n \".hf-catalog-matrix-decode span\",\n { opacity: 0, y: 12 },\n { opacity: 1, y: 0, duration: 0.18, stagger: 0.035, ease: \"power2.out\" },\n startTime,\n );\n tl.set({}, {}, 5);\n window.__timelines = window.__timelines || {};\n window.__timelines[\"matrix-decode-demo\"] = tl;\n </script>\n </div>\n </body>\n</html>\n"} |