mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-04 16:42:27 +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>Line-by-Line Slide - 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: 900px;\n min-height: 500px;\n padding: 64px;\n /* ponytail: scale wrapper — not a GSAP target, so CSS transform is safe */\n transform: scale(2.8);\n transform-origin: center center;\n }\n .hf-catalog-line-by-line-slide {\n color: #18181b;\n font-family: Inter, system-ui, sans-serif;\n font-weight: 900;\n letter-spacing: -0.04em;\n }\n .hf-catalog-line-by-line-slide {\n display: grid;\n gap: 10px;\n font-size: 64px;\n line-height: 1.05;\n overflow: hidden;\n }\n .hf-catalog-line-by-line-slide span {\n display: block;\n transform: translate(var(--hf-line-x, 0px), var(--hf-line-y, 0px));\n filter: blur(var(--hf-line-blur, 0px));\n will-change: transform, filter, opacity;\n }\n </style>\n </head>\n <body>\n <div\n id=\"demo\"\n data-composition-id=\"line-by-line-slide-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-catalog-line-by-line-slide\">\n <span>Design faster</span><span>Render cleaner</span><span>Ship louder</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-line-by-line-slide span\",\n { opacity: 0, \"--hf-line-x\": \"-36px\", \"--hf-line-y\": \"18px\", \"--hf-line-blur\": \"6px\" },\n {\n opacity: 1,\n \"--hf-line-x\": \"0px\",\n \"--hf-line-y\": \"0px\",\n \"--hf-line-blur\": \"0px\",\n duration: 0.34,\n stagger: 0.08,\n ease: \"power3.out\",\n },\n startTime,\n );\n tl.set({}, {}, 5);\n window.__timelines = window.__timelines || {};\n window.__timelines[\"line-by-line-slide-demo\"] = tl;\n </script>\n </div>\n </body>\n</html>\n"} |