Skip to content

Write HTML. Render video. Built for agents.

19.3 KB
Raw Blame
{"html":"<!doctype html>\n<html\n  lang=\"en\"\n  data-composition-variables='[{\"id\":\"notifTitle\",\"type\":\"string\",\"role\":\"content\",\"label\":\"Notification title\",\"description\":\"Bold first line on every banner.\",\"default\":\"New render\"},{\"id\":\"message1\",\"type\":\"string\",\"role\":\"content\",\"label\":\"Message 1\",\"description\":\"Subtitle of the first banner to land.\",\"default\":\"Launch video is ready.\"},{\"id\":\"message2\",\"type\":\"string\",\"role\":\"content\",\"label\":\"Message 2\",\"description\":\"Subtitle of the second banner.\",\"default\":\"All checks passed.\"},{\"id\":\"message3\",\"type\":\"string\",\"role\":\"content\",\"label\":\"Message 3\",\"description\":\"Subtitle of the third banner.\",\"default\":\"4K render done in 92s.\"},{\"id\":\"message4\",\"type\":\"string\",\"role\":\"content\",\"label\":\"Message 4\",\"description\":\"Subtitle of the fourth banner.\",\"default\":\"Published to the catalog.\"},{\"id\":\"appName\",\"type\":\"string\",\"role\":\"content\",\"label\":\"App name\",\"description\":\"Name of the brand this video promotes, credited in the corner of every banner. Use the real name of that brand.\",\"portrays\":[\"subject_name\"],\"default\":\"HyperFrames\"},{\"id\":\"headlineTop\",\"type\":\"string\",\"role\":\"content\",\"label\":\"End-card line 1\",\"description\":\"First line of the closing card.\",\"default\":\"SHIP VIDEO\"},{\"id\":\"headlineAccent\",\"type\":\"string\",\"role\":\"content\",\"label\":\"End-card line 2\",\"description\":\"Accented second line of the closing card.\",\"default\":\"FROM HTML\"},{\"id\":\"footerText\",\"type\":\"string\",\"role\":\"content\",\"label\":\"End-card footer\",\"description\":\"Domain of the brand this video promotes, under the end-card headline. Use the real domain, or a call to action when no domain fits.\",\"portrays\":[\"subject_domain\"],\"default\":\"hyperframes.heygen.com\"},{\"id\":\"brandLogo\",\"type\":\"image\",\"role\":\"content\",\"label\":\"Brand logo\",\"description\":\"Transparent mark of the brand this video promotes, centered on the closing card.\",\"portrays\":[\"subject_logo\"],\"default\":\"/public/catalog/assets/f9f942c43b465616.svg\"}]'\n>\n  <head><base href=\"/public/catalog/items/notification-cascade/\">\n    <meta charset=\"UTF-8\" />\n    <meta name=\"viewport\" content=\"width=1080, height=1920\" />\n    <title>Notification Cascade</title>\n    <script src=\"https://cdn.jsdelivr.net/npm/[email protected]/dist/gsap.min.js\"></script>\n    <style>\n      * {\n        margin: 0;\n        padding: 0;\n        box-sizing: border-box;\n      }\n      body {\n        background: #000;\n      }\n      #nc-root {\n        position: relative;\n        width: 1080px;\n        height: 1920px;\n        overflow: hidden;\n        font-family: -apple-system, BlinkMacSystemFont, \"Helvetica Neue\", sans-serif;\n        /* palette: warm glass banners over a bright soft backdrop, dark scrim under the end card */\n        --nc-glass: var(--hf-ui-surface-raised, rgba(250, 246, 241, 0.94));\n        --nc-ink-strong: var(--hf-ui-text-strong, #1c1c1e);\n        --nc-ink: var(--hf-ui-text, #464040);\n        --nc-ink-faint: var(--hf-ui-text-faint, #5a5450);\n        --nc-accent: var(--hf-ui-accent, #0a9c6b);\n        --nc-endcard-ink: #f7ece5;\n        --nc-endcard-accent: #3ce6ac;\n      }\n      #nc-stage-ground {\n        position: absolute;\n        inset: 0;\n        background: #000;\n      }\n      .clip {\n        position: absolute;\n        inset: 0;\n      }\n\n      /* ---------------- backdrop plate ---------------- */\n      /* a real photograph, like the footage it stands in for, pushed in slowly\n         by the timeline */\n      #nc-backdrop {\n        position: absolute;\n        left: 0;\n        top: 0;\n        width: 1080px;\n        height: 1920px;\n        object-fit: cover;\n      }\n      #nc-vignette {\n        position: absolute;\n        inset: 0;\n        background: radial-gradient(\n          ellipse 120% 90% at 50% 42%,\n          rgba(0, 0, 0, 0) 58%,\n          rgba(50, 25, 8, 0.18) 100%\n        );\n      }\n\n      /* ---------------- notification stack ---------------- */\n      /* geometry measured from the reference: 810px banners on a 214px pitch,\n         entries every 2.000s, expo.out restack (spec provenance: measured) */\n      #nc-stack-inner {\n        position: absolute;\n        inset: 0;\n      }\n      .nc-banner {\n        position: absolute;\n        left: 135px;\n        width: 810px;\n        height: 176px;\n        border-radius: 26px;\n        background: var(--nc-glass);\n        box-shadow: 0 10px 26px rgba(50, 25, 8, 0.18);\n      }\n      .nc-banner .nc-icon {\n        position: absolute;\n        left: 23px;\n        top: 38px;\n        width: 100px;\n        height: 100px;\n        border-radius: 24px;\n        background: linear-gradient(180deg, #5ae458 0%, #1fc83f 100%);\n      }\n      .nc-banner .nc-icon svg {\n        position: absolute;\n        left: 18px;\n        top: 20px;\n      }\n      .nc-banner .nc-title {\n        position: absolute;\n        left: 148px;\n        top: 37px;\n        font-size: 35px;\n        font-weight: 700;\n        color: var(--nc-ink-strong);\n        letter-spacing: 0.25px;\n      }\n      .nc-banner .nc-subtitle {\n        position: absolute;\n        left: 148px;\n        top: 85px;\n        font-size: 33px;\n        font-weight: 400;\n        color: var(--nc-ink);\n        letter-spacing: -0.75px;\n      }\n      .nc-banner .nc-now {\n        position: absolute;\n        right: 26px;\n        top: 32px;\n        font-size: 22px;\n        font-weight: 400;\n        color: var(--nc-ink-faint);\n        letter-spacing: 1px;\n      }\n      .nc-banner .nc-credit {\n        position: absolute;\n        right: 26px;\n        bottom: 10px;\n        font-size: 24px;\n        font-style: italic;\n        color: var(--nc-ink-faint);\n      }\n      #nc-pill-row {\n        position: absolute;\n        left: 0;\n        top: 1164px;\n        width: 1080px;\n        height: 72px;\n      }\n      #nc-pill {\n        position: absolute;\n        left: 615px;\n        width: 241px;\n        height: 72px;\n        border-radius: 36px;\n        background: rgba(250, 246, 242, 0.85);\n        display: flex;\n        align-items: center;\n        justify-content: flex-start;\n        padding-left: 20px;\n        gap: 9px;\n        font-size: 27px;\n        font-weight: 500;\n        color: #3f3a38;\n        box-shadow: 0 8px 20px rgba(50, 25, 8, 0.14);\n      }\n      #nc-pill-x {\n        position: absolute;\n        left: 873px;\n        width: 73px;\n        height: 72px;\n        border-radius: 50%;\n        background: rgba(250, 246, 242, 0.85);\n        display: flex;\n        align-items: center;\n        justify-content: center;\n        box-shadow: 0 8px 20px rgba(50, 25, 8, 0.14);\n      }\n\n      /* ---------------- end card ---------------- */\n      /* the source cut to dark footage under its card; the scrim below is that\n         ground, faded in on the same beat */\n      #nc-endcard-scrim {\n        position: absolute;\n        inset: 0;\n        background: linear-gradient(180deg, #14110e 0%, #221b13 100%);\n      }\n      #nc-endcard-inner {\n        position: absolute;\n        inset: 0;\n        text-align: center;\n      }\n      #nc-ec-top {\n        position: absolute;\n        left: 0;\n        top: 662px;\n        width: 1080px;\n        font-family: Georgia, \"Times New Roman\", serif;\n        font-weight: 700;\n        font-size: 93px;\n        letter-spacing: 4px;\n        color: var(--nc-endcard-ink);\n        text-shadow: 2.5px 3px 1px rgba(0, 0, 0, 0.66);\n      }\n      #nc-ec-accent {\n        position: absolute;\n        left: 0;\n        top: 784px;\n        width: 1080px;\n        font-family: Georgia, \"Times New Roman\", serif;\n        font-weight: 700;\n        font-size: 67px;\n        letter-spacing: 3px;\n        color: var(--nc-endcard-accent);\n        text-shadow: 2.5px 3px 1px rgba(0, 0, 0, 0.64);\n      }\n      #nc-ec-mark {\n        position: absolute;\n        left: 277px;\n        top: 990px;\n        width: 526px;\n        height: 158px;\n      }\n      #nc-ec-footer {\n        position: absolute;\n        left: 0;\n        top: 1190px;\n        width: 1080px;\n        font-size: 35px;\n        font-weight: 600;\n        color: var(--nc-endcard-accent);\n      }\n\n      #nc-black-fade {\n        position: absolute;\n        inset: 0;\n        background: #000;\n      }\n    </style>\n  </head>\n  <body>\n    <div\n      id=\"nc-root\"\n      data-composition-id=\"notification-cascade\"\n      data-start=\"0\"\n      data-width=\"1080\"\n      data-height=\"1920\"\n      data-duration=\"14\"\n    >\n      <div id=\"nc-stage-ground\"></div>\n\n      <!-- backdrop plate: slow push-in added in the timeline -->\n      <section id=\"nc-base\" class=\"clip\" data-start=\"0\" data-duration=\"14\" data-track-index=\"1\">\n        <img id=\"nc-backdrop\" src=\"/public/catalog/assets/b84738ef758732c7.jpg\" alt=\"\" />\n        <div id=\"nc-vignette\"></div>\n      </section>\n\n      <!-- notification stack -->\n      <section\n        id=\"nc-stack\"\n        class=\"clip\"\n        data-start=\"1.59\"\n        data-duration=\"8.03\"\n        data-track-index=\"2\"\n      >\n        <div id=\"nc-stack-inner\">\n          <div id=\"nc-pill-row\">\n            <div id=\"nc-pill\">\n              <svg width=\"25\" height=\"25\" viewBox=\"0 0 26 26\" fill=\"none\">\n                <path\n                  d=\"M4 8 L13 18 L22 8\"\n                  stroke=\"#3f3a38\"\n                  stroke-width=\"3.4\"\n                  stroke-linecap=\"round\"\n                  stroke-linejoin=\"round\"\n                />\n              </svg>\n              <span>Show less</span>\n            </div>\n            <div id=\"nc-pill-x\">\n              <svg width=\"34\" height=\"34\" viewBox=\"0 0 34 34\" fill=\"none\">\n                <path\n                  d=\"M6 6 L28 28 M28 6 L6 28\"\n                  stroke=\"#4a4442\"\n                  stroke-width=\"4.2\"\n                  stroke-linecap=\"round\"\n                />\n              </svg>\n            </div>\n          </div>\n\n          <div class=\"nc-banner\" id=\"nc-banner-1\" style=\"top: 1260px\">\n            <div class=\"nc-icon\">\n              <svg width=\"64\" height=\"60\" viewBox=\"0 0 64 60\" fill=\"none\">\n                <path\n                  d=\"M32 2 C15 2 2 13 2 27 c0 8 4.6 15 12 19.6 -0.7 3.6 -2.9 7.4 -6.4 10.2 5.8 -0.6 10.9 -2.8 14.6 -5.5 3.1 0.8 6.4 1.2 9.8 1.2 17 0 30 -11 30 -25.5 S49 2 32 2 Z\"\n                  fill=\"#fff\"\n                />\n              </svg>\n            </div>\n            <div class=\"nc-title\">New render</div>\n            <div class=\"nc-subtitle\">Launch video is ready.</div>\n            <div class=\"nc-now\">NOW</div>\n            <div class=\"nc-credit\">HyperFrames</div>\n          </div>\n          <div class=\"nc-banner\" id=\"nc-banner-2\" style=\"top: 1260px\">\n            <div class=\"nc-icon\">\n              <svg width=\"64\" height=\"60\" viewBox=\"0 0 64 60\" fill=\"none\">\n                <path\n                  d=\"M32 2 C15 2 2 13 2 27 c0 8 4.6 15 12 19.6 -0.7 3.6 -2.9 7.4 -6.4 10.2 5.8 -0.6 10.9 -2.8 14.6 -5.5 3.1 0.8 6.4 1.2 9.8 1.2 17 0 30 -11 30 -25.5 S49 2 32 2 Z\"\n                  fill=\"#fff\"\n                />\n              </svg>\n            </div>\n            <div class=\"nc-title\">New render</div>\n            <div class=\"nc-subtitle\">All checks passed.</div>\n            <div class=\"nc-now\">NOW</div>\n            <div class=\"nc-credit\">HyperFrames</div>\n          </div>\n          <div class=\"nc-banner\" id=\"nc-banner-3\" style=\"top: 1260px\">\n            <div class=\"nc-icon\">\n              <svg width=\"64\" height=\"60\" viewBox=\"0 0 64 60\" fill=\"none\">\n                <path\n                  d=\"M32 2 C15 2 2 13 2 27 c0 8 4.6 15 12 19.6 -0.7 3.6 -2.9 7.4 -6.4 10.2 5.8 -0.6 10.9 -2.8 14.6 -5.5 3.1 0.8 6.4 1.2 9.8 1.2 17 0 30 -11 30 -25.5 S49 2 32 2 Z\"\n                  fill=\"#fff\"\n                />\n              </svg>\n            </div>\n            <div class=\"nc-title\">New render</div>\n            <div class=\"nc-subtitle\">4K render done in 92s.</div>\n            <div class=\"nc-now\">NOW</div>\n            <div class=\"nc-credit\">HyperFrames</div>\n          </div>\n          <div class=\"nc-banner\" id=\"nc-banner-4\" style=\"top: 1260px\">\n            <div class=\"nc-icon\">\n              <svg width=\"64\" height=\"60\" viewBox=\"0 0 64 60\" fill=\"none\">\n                <path\n                  d=\"M32 2 C15 2 2 13 2 27 c0 8 4.6 15 12 19.6 -0.7 3.6 -2.9 7.4 -6.4 10.2 5.8 -0.6 10.9 -2.8 14.6 -5.5 3.1 0.8 6.4 1.2 9.8 1.2 17 0 30 -11 30 -25.5 S49 2 32 2 Z\"\n                  fill=\"#fff\"\n                />\n              </svg>\n            </div>\n            <div class=\"nc-title\">New render</div>\n            <div class=\"nc-subtitle\">Published to the catalog.</div>\n            <div class=\"nc-now\">NOW</div>\n            <div class=\"nc-credit\">HyperFrames</div>\n          </div>\n        </div>\n      </section>\n\n      <!-- end card -->\n      <section\n        id=\"nc-endcard\"\n        class=\"clip\"\n        data-start=\"9.89\"\n        data-duration=\"4.11\"\n        data-track-index=\"3\"\n      >\n        <div id=\"nc-endcard-scrim\"></div>\n        <div id=\"nc-endcard-inner\">\n          <div id=\"nc-ec-top\">SHIP VIDEO</div>\n          <div id=\"nc-ec-accent\">FROM HTML</div>\n          <img\n            id=\"nc-ec-mark\"\n            data-var-src=\"brandLogo\"\n            src=\"/public/catalog/assets/f9f942c43b465616.svg\"\n            alt=\"Brand logo\"\n          />\n          <div id=\"nc-ec-footer\">hyperframes.heygen.com</div>\n        </div>\n      </section>\n\n      <!-- opening fade from black -->\n      <section id=\"nc-fade\" class=\"clip\" data-start=\"0\" data-duration=\"0.7\" data-track-index=\"4\">\n        <div id=\"nc-black-fade\"></div>\n      </section>\n    </div>\n\n    <script>\n      (function () {\n        \"use strict\";\n\n        /* -------- variables: every override falls back to its declared default -------- */\n        var vars =\n          window.__hyperframes && typeof window.__hyperframes.getVariables === \"function\"\n            ? window.__hyperframes.getVariables()\n            : {};\n\n        function text(value, fallback) {\n          if (typeof value !== \"string\") return fallback;\n          var t = value.trim();\n          if (!t) return fallback;\n          return t.length > 80 ? t.slice(0, 80) : t;\n        }\n\n        function setAll(selector, value) {\n          document.querySelectorAll(selector).forEach(function (el) {\n            el.textContent = value;\n          });\n        }\n\n        setAll(\".nc-title\", text(vars.notifTitle, \"New render\"));\n        setAll(\".nc-credit\", text(vars.appName, \"HyperFrames\"));\n        var messages = [\n          text(vars.message1, \"Launch video is ready.\"),\n          text(vars.message2, \"All checks passed.\"),\n          text(vars.message3, \"4K render done in 92s.\"),\n          text(vars.message4, \"Published to the catalog.\"),\n        ];\n        document.querySelectorAll(\".nc-subtitle\").forEach(function (el, i) {\n          el.textContent = messages[i] || messages[messages.length - 1];\n        });\n        document.getElementById(\"nc-ec-top\").textContent = text(vars.headlineTop, \"SHIP VIDEO\");\n        document.getElementById(\"nc-ec-accent\").textContent = text(\n          vars.headlineAccent,\n          \"FROM HTML\",\n        );\n        document.getElementById(\"nc-ec-footer\").textContent = text(\n          vars.footerText,\n          \"hyperframes.heygen.com\",\n        );\n\n        /* -------- timeline: every decisive number is measured from the reference -------- */\n        window.__timelines = window.__timelines || {};\n        var tl = gsap.timeline({ paused: true });\n\n        var PITCH = 214; /* banner-to-banner spacing, px */\n        var ENTRY = [1.6033, 3.6033, 5.6033, 7.6033]; /* one arrival every 2.000s */\n        var FADE_D = 0.3333; /* linear alpha ramp */\n        var RISE = 22; /* entry micro-rise, px */\n        var RESTACK_D = 1.0; /* expo.out slide when the stack makes room */\n        var EXIT_T = 9.2033; /* group exit */\n        var ENDCARD_T = 9.9033;\n        var ENDCARD_D = 0.5667;\n\n        /* baselines at t=0.001 so every span is covered at any seek */\n        tl.set(\n          [\"#nc-banner-1\", \"#nc-banner-2\", \"#nc-banner-3\", \"#nc-banner-4\", \"#nc-pill-row\"],\n          { autoAlpha: 0 },\n          0.001,\n        );\n        tl.set([\"#nc-endcard-inner\", \"#nc-endcard-scrim\"], { autoAlpha: 0 }, 0.001);\n\n        /* opening fade from black */\n        tl.fromTo(\n          \"#nc-black-fade\",\n          { autoAlpha: 1 },\n          { autoAlpha: 0, duration: 0.5, ease: \"none\" },\n          0,\n        );\n\n        /* backdrop push-in: linear, scale 1 -> 1.105 across the piece */\n        tl.fromTo(\n          \"#nc-backdrop\",\n          { scale: 1.0, transformOrigin: \"525px 950px\" },\n          { scale: 1.105, duration: 13.4667, ease: \"none\" },\n          0.5333,\n        );\n\n        /* banner entries: linear fade + expo micro-rise */\n        var banners = [\"#nc-banner-1\", \"#nc-banner-2\", \"#nc-banner-3\", \"#nc-banner-4\"];\n        banners.forEach(function (sel, i) {\n          tl.fromTo(\n            sel,\n            { autoAlpha: 0 },\n            { autoAlpha: 1, duration: FADE_D, ease: \"none\" },\n            ENTRY[i],\n          );\n          tl.fromTo(sel, { y: RISE }, { y: 0, duration: 0.9, ease: \"expo.out\" }, ENTRY[i]);\n        });\n        /* pill + X appear with banner 1 */\n        tl.fromTo(\n          \"#nc-pill-row\",\n          { autoAlpha: 0 },\n          { autoAlpha: 1, duration: FADE_D, ease: \"none\" },\n          ENTRY[0],\n        );\n\n        /* restacks: existing banners + pill slide up one pitch in lockstep */\n        tl.to(\n          [\"#nc-banner-1\", \"#nc-pill-row\"],\n          { y: -PITCH, duration: RESTACK_D, ease: \"expo.out\" },\n          ENTRY[1],\n        );\n        tl.to(\n          [\"#nc-banner-1\", \"#nc-pill-row\"],\n          { y: -2 * PITCH, duration: RESTACK_D, ease: \"expo.out\" },\n          ENTRY[2],\n        );\n        tl.to(\"#nc-banner-2\", { y: -PITCH, duration: RESTACK_D, ease: \"expo.out\" }, ENTRY[2]);\n        tl.to(\n          [\"#nc-banner-1\", \"#nc-pill-row\"],\n          { y: -3 * PITCH, duration: RESTACK_D, ease: \"expo.out\" },\n          ENTRY[3],\n        );\n        tl.to(\"#nc-banner-2\", { y: -2 * PITCH, duration: RESTACK_D, ease: \"expo.out\" }, ENTRY[3]);\n        tl.to(\"#nc-banner-3\", { y: -PITCH, duration: RESTACK_D, ease: \"expo.out\" }, ENTRY[3]);\n\n        /* group exit: rise + fade */\n        tl.to(\"#nc-stack-inner\", { y: -560, duration: 0.5, ease: \"expo.out\" }, EXIT_T);\n        tl.to(\"#nc-stack-inner\", { autoAlpha: 0, duration: 0.37, ease: \"none\" }, EXIT_T);\n\n        /* end card: dark scrim and card fade in together, then hold */\n        tl.fromTo(\n          \"#nc-endcard-scrim\",\n          { autoAlpha: 0 },\n          { autoAlpha: 1, duration: 0.2, ease: \"none\" },\n          ENDCARD_T,\n        );\n        tl.fromTo(\n          \"#nc-endcard-inner\",\n          { autoAlpha: 0 },\n          { autoAlpha: 1, duration: ENDCARD_D, ease: \"none\" },\n          ENDCARD_T,\n        );\n\n        window.__timelines[\"notification-cascade\"] = tl;\n      })();\n    </script>\n  </body>\n</html>\n"}