mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-05 00:56:23 +00:00
chore(catalog): remove internal source markers
This commit is contained in:
@@ -1 +1 @@
|
||||
{"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>Per-Word Crossfade - 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: #fafafa;\n font-family: Inter, system-ui, sans-serif;\n }\n .demo-frame {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 40px;\n width: 1920px;\n height: 1080px;\n padding: 120px 160px;\n }\n /* outgoing phrase — static, fades out */\n .phrase-out {\n display: inline-flex;\n gap: 28px;\n font-size: 128px;\n font-weight: 900;\n letter-spacing: -0.04em;\n line-height: 1;\n color: #71717a;\n font-family: Inter, system-ui, sans-serif;\n position: relative;\n }\n .phrase-out span {\n display: inline-block;\n will-change: opacity;\n }\n /* incoming phrase — the GSAP-animated element */\n .hf-remocn-per-word-crossfade {\n color: #18181b;\n font-family: Inter, system-ui, sans-serif;\n font-weight: 900;\n letter-spacing: -0.04em;\n }\n .hf-remocn-per-word-crossfade {\n display: inline-flex;\n gap: 28px;\n font-size: 128px;\n line-height: 1;\n }\n .hf-remocn-per-word-crossfade span {\n display: inline-block;\n transform: translate(var(--hf-word-x, 0px), var(--hf-word-y, 0px))\n scale(var(--hf-word-scale, 1));\n filter: blur(var(--hf-word-blur, 0px));\n will-change: transform, filter, opacity;\n }\n /* label */\n .demo-label {\n font-size: 26px;\n font-weight: 500;\n color: #a1a1aa;\n letter-spacing: 0.08em;\n text-transform: uppercase;\n margin-top: 24px;\n }\n </style>\n </head>\n <body>\n <div\n id=\"demo\"\n data-composition-id=\"per-word-crossfade-demo\"\n data-start=\"0\"\n data-width=\"1920\"\n data-height=\"1080\"\n data-duration=\"5\"\n >\n <div class=\"demo-frame\">\n <!-- outgoing phrase: fades out word-by-word -->\n <div class=\"phrase-out\">\n <span>Write</span><span>once</span><span>publish</span><span>anywhere</span>\n </div>\n <!-- incoming phrase: per-word crossfade in -->\n <div class=\"hf-remocn-per-word-crossfade\">\n <span>Create</span><span>once</span><span>reuse</span><span>everywhere</span>\n </div>\n <div class=\"demo-label\">per-word crossfade</div>\n </div>\n <script>\n const tl = gsap.timeline({ paused: true });\n const startTime = 0.5;\n\n // outgoing phrase fades out word-by-word\n tl.to(\n \".phrase-out span\",\n {\n opacity: 0,\n duration: 0.25,\n stagger: 0.055,\n ease: \"power2.in\",\n },\n startTime,\n );\n\n // incoming phrase fades in word-by-word (the named component)\n tl.fromTo(\n \".hf-remocn-per-word-crossfade span\",\n { opacity: 0, \"--hf-word-y\": \"22px\", \"--hf-word-scale\": 0.92, \"--hf-word-blur\": \"5px\" },\n {\n opacity: 1,\n \"--hf-word-y\": \"0px\",\n \"--hf-word-scale\": 1,\n \"--hf-word-blur\": \"0px\",\n duration: 0.3,\n stagger: 0.055,\n ease: \"power3.out\",\n },\n startTime + 0.1,\n );\n\n tl.set({}, {}, 5);\n window.__timelines = window.__timelines || {};\n window.__timelines[\"per-word-crossfade-demo\"] = tl;\n </script>\n </div>\n </body>\n</html>\n"}
|
||||
{"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>Per-Word Crossfade - 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: #fafafa;\n font-family: Inter, system-ui, sans-serif;\n }\n .demo-frame {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 40px;\n width: 1920px;\n height: 1080px;\n padding: 120px 160px;\n }\n /* outgoing phrase — static, fades out */\n .phrase-out {\n display: inline-flex;\n gap: 28px;\n font-size: 128px;\n font-weight: 900;\n letter-spacing: -0.04em;\n line-height: 1;\n color: #71717a;\n font-family: Inter, system-ui, sans-serif;\n position: relative;\n }\n .phrase-out span {\n display: inline-block;\n will-change: opacity;\n }\n /* incoming phrase — the GSAP-animated element */\n .hf-catalog-per-word-crossfade {\n color: #18181b;\n font-family: Inter, system-ui, sans-serif;\n font-weight: 900;\n letter-spacing: -0.04em;\n }\n .hf-catalog-per-word-crossfade {\n display: inline-flex;\n gap: 28px;\n font-size: 128px;\n line-height: 1;\n }\n .hf-catalog-per-word-crossfade span {\n display: inline-block;\n transform: translate(var(--hf-word-x, 0px), var(--hf-word-y, 0px))\n scale(var(--hf-word-scale, 1));\n filter: blur(var(--hf-word-blur, 0px));\n will-change: transform, filter, opacity;\n }\n /* label */\n .demo-label {\n font-size: 26px;\n font-weight: 500;\n color: #a1a1aa;\n letter-spacing: 0.08em;\n text-transform: uppercase;\n margin-top: 24px;\n }\n </style>\n </head>\n <body>\n <div\n id=\"demo\"\n data-composition-id=\"per-word-crossfade-demo\"\n data-start=\"0\"\n data-width=\"1920\"\n data-height=\"1080\"\n data-duration=\"5\"\n >\n <div class=\"demo-frame\">\n <!-- outgoing phrase: fades out word-by-word -->\n <div class=\"phrase-out\">\n <span>Write</span><span>once</span><span>publish</span><span>anywhere</span>\n </div>\n <!-- incoming phrase: per-word crossfade in -->\n <div class=\"hf-catalog-per-word-crossfade\">\n <span>Create</span><span>once</span><span>reuse</span><span>everywhere</span>\n </div>\n <div class=\"demo-label\">per-word crossfade</div>\n </div>\n <script>\n const tl = gsap.timeline({ paused: true });\n const startTime = 0.5;\n\n // outgoing phrase fades out word-by-word\n tl.to(\n \".phrase-out span\",\n {\n opacity: 0,\n duration: 0.25,\n stagger: 0.055,\n ease: \"power2.in\",\n },\n startTime,\n );\n\n // incoming phrase fades in word-by-word (the named component)\n tl.fromTo(\n \".hf-catalog-per-word-crossfade span\",\n { opacity: 0, \"--hf-word-y\": \"22px\", \"--hf-word-scale\": 0.92, \"--hf-word-blur\": \"5px\" },\n {\n opacity: 1,\n \"--hf-word-y\": \"0px\",\n \"--hf-word-scale\": 1,\n \"--hf-word-blur\": \"0px\",\n duration: 0.3,\n stagger: 0.055,\n ease: \"power3.out\",\n },\n startTime + 0.1,\n );\n\n tl.set({}, {}, 5);\n window.__timelines = window.__timelines || {};\n window.__timelines[\"per-word-crossfade-demo\"] = tl;\n </script>\n </div>\n </body>\n</html>\n"}
|
||||
Reference in New Issue
Block a user