Skip to content

Write HTML. Render video. Built for agents.

2.1 KB
Raw Blame
<!doctype html>
<!--
  type-match-cut demo. This standalone composition mounts type-match-cut.html
  inside a sized host clip. Non-default copy and accent prove both variables
  flow through the elastic mount.
-->
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=1920, height=1080" />
    <title>Type Match Cut Demo</title>
    <style>
      * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
      }

      html,
      body {
        width: 1920px;
        height: 1080px;
        overflow: hidden;
        background: #0b0c0e;
      }

      #root {
        --bg: #0b0c0e;
        --fg: #f7f8fa;
        --font-display: Inter, system-ui, sans-serif;
        position: relative;
        width: 1920px;
        height: 1080px;
        overflow: hidden;
        background: radial-gradient(ellipse at 50% 44%, #1b1e24 0%, var(--bg) 72%);
      }

      .mount-card {
        width: 80%;
        height: 72%;
        left: 10%;
        top: 14%;
        container-type: size;
        overflow: hidden;
        border: 2px solid rgba(247, 248, 250, 0.14);
        border-radius: 32px;
        background: #0b0c0e;
        box-shadow: 0 52px 130px rgba(0, 0, 0, 0.52);
      }
    </style>
  </head>
  <body>
    <div
      id="root"
      data-composition-id="type-match-cut-demo"
      data-start="0"
      data-width="1920"
      data-height="1080"
      data-duration="4"
      data-fps="30"
    >
      <div
        id="type-match-cut-mount"
        class="mount-card clip"
        data-composition-id="type-match-cut"
        data-composition-src="./type-match-cut.html"
        data-variable-values='{"text":"Ideas become motion","accent":"violet"}'
        data-start="0"
        data-duration="4"
        data-track-index="0"
        data-width="1536"
        data-height="778"
      ></div>
    </div>

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