Skip to content

Write HTML. Render video. Built for agents.

4.4 KB
Raw Blame
{"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>Onboarding Stepper Flow - Demo</title>\n    <script src=\"https://cdn.jsdelivr.net/npm/[email protected]/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      /* ponytail: scale on .demo-frame (not a GSAP target) — safe CSS transform */\n      .demo-frame {\n        display: grid;\n        place-items: center;\n        min-width: 760px;\n        min-height: 520px;\n        padding: 56px;\n        transform: scale(2.3);\n      }\n      .hf-ui-onboarding-flow {\n        display: grid;\n        gap: 22px;\n        width: 520px;\n        color: #18181b;\n        font-family: Inter, system-ui, sans-serif;\n      }\n      .hf-ui-onboarding-steps {\n        display: flex;\n        justify-content: center;\n        gap: 18px;\n      }\n      .hf-ui-onboarding-steps span {\n        display: grid;\n        place-items: center;\n        width: 44px;\n        height: 44px;\n        border: 2px solid #e4e4e7;\n        border-radius: 999px;\n        background: #ffffff;\n        color: #71717a;\n        font-size: 15px;\n        font-weight: 600;\n      }\n      .hf-ui-onboarding-steps .done,\n      .hf-ui-onboarding-steps .active {\n        border-color: #18181b;\n        background: #18181b;\n        color: #ffffff;\n      }\n      .hf-ui-onboarding-card {\n        display: grid;\n        gap: 14px;\n        padding: 34px;\n        border: 1px solid #e4e4e7;\n        border-radius: 28px;\n        background: #ffffff;\n        box-shadow: 0 24px 70px rgba(0, 0, 0, 0.1);\n      }\n      .hf-ui-onboarding-card small {\n        color: #71717a;\n        font-size: 11px;\n        font-weight: 600;\n        letter-spacing: 0.08em;\n        text-transform: uppercase;\n      }\n      .hf-ui-onboarding-card strong {\n        font-size: 30px;\n        font-weight: 700;\n        line-height: 1.1;\n      }\n      .hf-ui-onboarding-card p {\n        margin: 0;\n        color: #71717a;\n        font-size: 16px;\n        line-height: 1.5;\n      }\n      .hf-ui-onboarding-card button {\n        justify-self: start;\n        height: 46px;\n        padding: 0 22px;\n        border: 0;\n        border-radius: 12px;\n        background: #18181b;\n        color: #ffffff;\n        font-size: 15px;\n        font-weight: 600;\n        cursor: default;\n      }\n    </style>\n  </head>\n  <body>\n    <div\n      id=\"demo\"\n      data-composition-id=\"onboarding-stepper-flow-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-ui-onboarding-flow\">\n          <div class=\"hf-ui-onboarding-steps\">\n            <span class=\"done\">1</span><span class=\"active\">2</span><span>3</span>\n          </div>\n          <div class=\"hf-ui-onboarding-card\">\n            <small>Step 2 of 3</small>\n            <strong>Choose your visual style</strong>\n            <p>Pick a direction so the agent can generate matching motion primitives.</p>\n            <button type=\"button\">Continue</button>\n          </div>\n        </div>\n      </div>\n      <script>\n        const tl = gsap.timeline({ paused: true });\n        tl.fromTo(\n          \".hf-ui-onboarding-steps span\",\n          { scale: 0.7, opacity: 0 },\n          { scale: 1, opacity: 1, duration: 0.28, stagger: 0.08, ease: \"back.out(1.8)\" },\n          0.3,\n        );\n        tl.fromTo(\n          \".hf-ui-onboarding-card\",\n          { y: 28, opacity: 0 },\n          { y: 0, opacity: 1, duration: 0.42, ease: \"power3.out\" },\n          0.62,\n        );\n        tl.to(\n          \".hf-ui-onboarding-steps .active\",\n          { scale: 1.16, duration: 0.16, yoyo: true, repeat: 1, ease: \"power1.inOut\" },\n          1.1,\n        );\n        tl.set({}, {}, 5);\n        window.__timelines = window.__timelines || {};\n        window.__timelines[\"onboarding-stepper-flow-demo\"] = tl;\n      </script>\n    </div>\n  </body>\n</html>\n"}