Skip to content

Write HTML. Render video. Built for agents.

1.8 KB
Raw Blame
<!doctype html>
<!--
  Text Select Cursor, standalone demo. Mounts cursor-text-select.html full-frame over a
  flat light backdrop; the component draws its own document card.
-->
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=1920, height=1080" />
    <title>Text Select Cursor, Demo</title>
    <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/gsap.min.js"></script>
    <style>
      *,
      *::before,
      *::after {
        box-sizing: border-box;
      }
      html,
      body {
        margin: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
      }
      #root {
        position: relative;
        width: 1920px;
        height: 1080px;
        overflow: hidden;
        background: #f4f4f5;
      }
      .backdrop {
        position: absolute;
        inset: 0;
      }
    </style>
  </head>
  <body>
    <div
      id="root"
      data-composition-id="cursor-text-select-demo"
      data-start="0"
      data-width="1920"
      data-height="1080"
      data-duration="4.2"
    >
      <div class="backdrop clip" data-start="0" data-duration="4.2" data-track-index="0"></div>
      <div
        class="clip"
        id="cursor-text-select"
        data-composition-id="cursor-text-select"
        data-composition-src="./cursor-text-select.html"
        data-variable-values='{"phrase":"approve the final cut","accent":"#0a84ff"}'
        data-start="0"
        data-duration="4.2"
        data-track-index="1"
        data-width="1920"
        data-height="1080"
        style="position: absolute; inset: 0; width: 1920px; height: 1080px"
      ></div>
    </div>

    <script>
      window.__timelines = window.__timelines || {};
      var tl = gsap.timeline({ paused: true });
      window.__timelines["cursor-text-select-demo"] = tl;
    </script>
  </body>
</html>