Skip to content

Write HTML. Render video. Built for agents.

2.0 KB
Raw Blame
<!doctype html>
<!--
  marker-highlight demo. This standalone composition mounts the primitive
  through data-composition-src. Non-default text, style, and accent values
  prove the variable path while the primitive stays elastic to its host box.
-->
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=1920, height=1080" />
    <title>Marker Highlight Demo</title>
    <style>
      * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
      }

      html,
      body {
        width: 1920px;
        height: 1080px;
        overflow: hidden;
        background: var(--bg, #0b0c0e);
      }

      #root {
        --bg: #0b0c0e;
        --fg: #f8fafc;
        --brand: #71f5a7;
        --accent: #61a8ff;
        --accent-2: #c5a3ff;
        position: relative;
        width: 1920px;
        height: 1080px;
        overflow: hidden;
      }

      .mount-box {
        position: absolute;
        width: 80%;
        height: 56%;
        left: 10%;
        top: 22%;
        container-type: size;
        overflow: hidden;
      }
    </style>
  </head>
  <body>
    <div
      id="root"
      data-composition-id="marker-highlight-demo"
      data-start="0"
      data-width="1920"
      data-height="1080"
      data-duration="3.5"
      data-fps="30"
    >
      <div
        id="marker-highlight-mount"
        class="mount-box clip"
        data-composition-id="marker-highlight"
        data-composition-src="./marker-highlight.html"
        data-variable-values='{"text":"Zero render surprises","emphasis_word":"Zero","style":"circle","accent":"violet","draw_at":1.1}'
        data-start="0"
        data-duration="3.5"
        data-track-index="0"
        data-width="1536"
        data-height="605"
      ></div>
    </div>

    <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/gsap.min.js"></script>
    <script>
      window.__timelines = window.__timelines || {};
      window.__timelines["marker-highlight-demo"] = gsap.timeline({ paused: true });
    </script>
  </body>
</html>