Skip to content

Herk Edit Kit by Nate Herk: edit videos, reels, and YouTube Shorts with Codex or Claude Code. 15 skills, transcript-driven cuts, storytelling, 406 motion-graphics cards, and HyperFrames templates.

14.2 KB
Raw Blame
<!doctype html>
<!--
  KALLAWAY · tier1 · overview · CALLOUTS
  Central headline with 3 stat callout tiles arranged around it (top-left,
  top-right, bottom-center). Each has a big number that counts up + label.
  Connector lines draw from center to each callout. Aurora bloom, glassmorphism.
  Slots: title, headline, c1-val, c1-label, c2-val, c2-label, c3-val, c3-label.
  Knobs: data-val + data-suffix on each .callout (suffix like "%", "K", "x").
-->
<html>
  <head>
    <meta charset="utf-8" />
    <link rel="stylesheet" href="../../tokens.css" />
    <style>
      html, body { margin: 0; }

      #t1-ov-callouts {
        position: absolute; inset: 0; width: 1920px; height: 1080px;
        background: var(--canvas); color: var(--text);
        font-family: var(--font-display); overflow: hidden;
      }

      #t1-ov-callouts .bloom {
        position: absolute; inset: 0; background: var(--bloom-bottom); z-index: 1;
      }
      #t1-ov-callouts .bloom-corner {
        position: absolute; inset: 0; background: var(--bloom-corner); z-index: 1;
      }
      #t1-ov-callouts .dot-grid {
        position: absolute; inset: 0; z-index: 1;
        background-image: var(--dot); background-size: var(--dot-size); opacity: 0.44;
        -webkit-mask-image: radial-gradient(115% 100% at 50% 60%, #000 30%, transparent 78%);
                mask-image: radial-gradient(115% 100% at 50% 60%, #000 30%, transparent 78%);
      }

      /* Title kicker */
      #t1-ov-callouts .title-row {
        position: absolute; left: 0; right: 0; top: 72px;
        text-align: center; z-index: 4;
      }
      #t1-ov-callouts .title {
        font-family: var(--font-mono); font-size: var(--size-label);
        font-weight: var(--wt-bold); letter-spacing: var(--track-wide);
        text-transform: uppercase; color: var(--accent);
        text-shadow: var(--textglow-accent);
      }

      /* Center stage */
      #t1-ov-callouts .center-stage {
        position: absolute; inset: 0; z-index: 4;
      }

      /* Connector SVG layer */
      #t1-ov-callouts .connectors-svg {
        position: absolute; inset: 0; width: 1920px; height: 1080px;
        z-index: 3; pointer-events: none;
      }

      /* Central headline glass pill */
      #t1-ov-callouts .headline-pill {
        position: absolute; left: 50%; top: 50%;
        transform: translate(-50%, -50%);
        background: var(--glass-bg-dark);
        border: var(--stroke) solid var(--glass-border);
        border-radius: var(--radius-lg);
        box-shadow: var(--glass-shadow),
                    0 0 60px rgba(var(--accent-rgb), 0.20);
        backdrop-filter: var(--glass-blur);
        -webkit-backdrop-filter: var(--glass-blur);
        padding: 52px 80px;
        text-align: center;
        max-width: 740px;
        position: absolute;
        z-index: 5;
      }
      #t1-ov-callouts .headline-pill::before {
        content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
        background: linear-gradient(90deg, transparent, var(--glass-hi) 20%, var(--glass-hi) 80%, transparent);
      }
      #t1-ov-callouts .headline-text {
        font-family: var(--font-display); font-weight: var(--wt-bold);
        font-size: var(--size-headline); letter-spacing: var(--track-snug); line-height: 1.18;
        color: var(--white); text-shadow: var(--textglow);
      }
      #t1-ov-callouts .headline-text em {
        font-style: normal; color: var(--accent); text-shadow: var(--textglow-accent);
      }

      /* Callout tiles */
      .callout {
        position: absolute;
        background: var(--glass-bg-dark);
        border: var(--stroke) solid var(--glass-border);
        border-radius: var(--radius);
        box-shadow: var(--glass-shadow);
        backdrop-filter: var(--glass-blur);
        -webkit-backdrop-filter: var(--glass-blur);
        padding: 44px 52px 40px;
        min-width: 360px;
        z-index: 5;
        overflow: hidden;
      }
      .callout::before {
        content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
        background: linear-gradient(90deg, transparent, var(--glass-hi) 20%, var(--glass-hi) 80%, transparent);
      }

      /* Top left */
      #co-1 { left: 130px; top: 160px; }
      /* Top right */
      #co-2 { right: 130px; top: 160px; }
      /* Bottom center */
      #co-3 { left: 50%; transform: translateX(-50%); bottom: 80px; }

      .callout-num {
        font-family: var(--font-display); font-weight: var(--wt-black);
        font-size: 110px; line-height: 1; letter-spacing: var(--track-tight);
        background: linear-gradient(150deg, #ffffff 15%, rgba(var(--accent-rgb), 0.80) 85%);
        -webkit-background-clip: text; background-clip: text;
        -webkit-text-fill-color: transparent; text-fill-color: transparent;
        filter: drop-shadow(0 0 24px rgba(var(--accent-rgb), 0.50));
      }
      .callout-label {
        font-family: var(--font-body); font-size: var(--size-body);
        font-weight: var(--wt-med); color: var(--text-dim);
        margin-top: 12px; line-height: 1.4; max-width: 280px;
      }
      .callout-rule {
        width: 40px; height: 2px; border-radius: 1px;
        background: var(--accent);
        box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.60);
        margin: 16px 0 0;
      }

      /* Vignette + grain */
      #t1-ov-callouts .vignette {
        position: absolute; inset: 0; pointer-events: none; z-index: 6;
        background: var(--vignette);
      }
      #t1-ov-callouts .grain {
        position: absolute; inset: -40px; background: var(--tex-grain);
        background-size: 200px 200px; mix-blend-mode: overlay; opacity: 0.10;
        pointer-events: none; z-index: 7;
      }
    </style>
  </head>
  <body>
    <div id="t1-ov-callouts" data-composition-id="t1-ov-callouts" data-start="0" data-width="1920" data-height="1080">
      <div class="bloom"></div>
      <div class="bloom-corner"></div>
      <div class="dot-grid"></div>

      <div class="title-row">
        <div class="title" data-slot="title">BY THE NUMBERS</div>
      </div>

      <!-- Connector lines SVG -->
      <svg class="connectors-svg" id="connectors-svg" viewBox="0 0 1920 1080"
           fill="none" xmlns="http://www.w3.org/2000/svg">
        <defs>
          <filter id="connGlow" x="-20%" y="-20%" width="140%" height="140%">
            <feGaussianBlur in="SourceGraphic" stdDeviation="3" result="blur"/>
            <feComposite in="SourceGraphic" in2="blur" operator="over"/>
          </filter>
        </defs>
        <!-- Center point = ~960, 540 -->
        <!-- to top-left callout endpoint ~490, 330 -->
        <line id="conn-1" x1="960" y1="540" x2="490" y2="330"
          stroke="rgba(55,189,248,0.50)" stroke-width="1.5"
          stroke-dasharray="8 6" filter="url(#connGlow)"/>
        <!-- to top-right callout ~1430, 330 -->
        <line id="conn-2" x1="960" y1="540" x2="1430" y2="330"
          stroke="rgba(55,189,248,0.50)" stroke-width="1.5"
          stroke-dasharray="8 6" filter="url(#connGlow)"/>
        <!-- to bottom-center ~960, 880 -->
        <line id="conn-3" x1="960" y1="540" x2="960" y2="880"
          stroke="rgba(55,189,248,0.50)" stroke-width="1.5"
          stroke-dasharray="8 6" filter="url(#connGlow)"/>

        <!-- small glow dot at each callout end -->
        <circle id="conn-dot-1" cx="490" cy="330" r="5"
          fill="#37BDF8" opacity="0"
          style="filter:drop-shadow(0 0 8px rgba(55,189,248,0.90));"/>
        <circle id="conn-dot-2" cx="1430" cy="330" r="5"
          fill="#37BDF8" opacity="0"
          style="filter:drop-shadow(0 0 8px rgba(55,189,248,0.90));"/>
        <circle id="conn-dot-3" cx="960" cy="880" r="5"
          fill="#37BDF8" opacity="0"
          style="filter:drop-shadow(0 0 8px rgba(55,189,248,0.90));"/>

        <!-- center origin dot -->
        <circle cx="960" cy="540" r="8"
          fill="rgba(55,189,248,0.70)" id="center-dot"
          style="filter:drop-shadow(0 0 14px rgba(55,189,248,0.80));" opacity="0"/>
      </svg>

      <!-- Central headline -->
      <div class="headline-pill" id="headline-pill"
           style="left:50%;top:50%;transform:translate(-50%,-50%);z-index:5;position:absolute;">
        <div class="headline-text" data-slot="headline">
          Why Students <em>Stay</em> and <em>Come Back</em>
        </div>
      </div>

      <!-- Callout 1 — top left -->
      <div class="callout" id="co-1" data-val="94" data-suffix="%">
        <div class="callout-num" id="co-1-num">0</div>
        <div class="callout-rule"></div>
        <div class="callout-label" data-slot="c1-label">completion rate among active subscribers</div>
      </div>

      <!-- Callout 2 — top right -->
      <div class="callout" id="co-2" data-val="4.8" data-suffix="">
        <div class="callout-num" id="co-2-num">0.0</div>
        <div class="callout-rule"></div>
        <div class="callout-label" data-slot="c2-label">average rating out of 5.0 stars</div>
      </div>

      <!-- Callout 3 — bottom center -->
      <div class="callout" id="co-3" data-val="3" data-suffix="x">
        <div class="callout-num" id="co-3-num">0x</div>
        <div class="callout-rule"></div>
        <div class="callout-label" data-slot="c3-label">more likely to re-enroll in a second course</div>
      </div>

      <div class="vignette"></div>
      <div class="grain"></div>
    </div>

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

      /* measure connector lengths */
      function lineLen(id) {
        const el = document.getElementById(id);
        const x1 = parseFloat(el.getAttribute("x1")), y1 = parseFloat(el.getAttribute("y1"));
        const x2 = parseFloat(el.getAttribute("x2")), y2 = parseFloat(el.getAttribute("y2"));
        return Math.sqrt((x2-x1)**2 + (y2-y1)**2);
      }
      ["conn-1","conn-2","conn-3"].forEach(id => {
        const el = document.getElementById(id);
        const len = lineLen(id);
        el.style.strokeDasharray = len + " " + len;
        el.style.strokeDashoffset = len;
      });

      /* grain flicker */
      tl.fromTo("#t1-ov-callouts .grain",
        { backgroundPosition: "0px 0px" },
        { backgroundPosition: "102px 76px", duration: 0.6, ease: "none", repeat: 11, yoyo: true }, 0);

      /* environment */
      tl.from("#t1-ov-callouts .bloom",
          { autoAlpha: 0, scale: 0.90, transformOrigin: "50% 120%", duration: 1.4, ease: "expo.out" }, 0)
        .from("#t1-ov-callouts .bloom-corner",
          { autoAlpha: 0, duration: 1.2, ease: "power2.out" }, 0.2)
        .from("#t1-ov-callouts .dot-grid",
          { autoAlpha: 0, duration: 1.1, ease: "power2.out" }, 0.2)

        /* title kicker */
        .from("#t1-ov-callouts .title",
          { autoAlpha: 0, y: 16, duration: 0.7, ease: "power3.out" }, 0.45)

        /* center dot */
        .to("#center-dot", { autoAlpha: 1, scale: 1, duration: 0.5, ease: "back.out(2.0)",
            transformOrigin: "960px 540px" }, 0.65)

        /* headline pill glides in */
        .from("#headline-pill",
          { autoAlpha: 0, scale: 0.90, transformOrigin: "50% 50%",
            filter: "blur(16px)", duration: 1.0, ease: "back.out(1.4)" }, 0.80);

      gsap.set("#center-dot", { scale: 0.3 });

      /* connectors draw out */
      tl.to("#conn-1", { strokeDashoffset: 0, duration: 0.65, ease: "power2.out" }, 1.45)
        .to("#conn-2", { strokeDashoffset: 0, duration: 0.65, ease: "power2.out" }, 1.52)
        .to("#conn-3", { strokeDashoffset: 0, duration: 0.65, ease: "power2.out" }, 1.59);

      /* endpoint dots pop */
      tl.to("#conn-dot-1", { autoAlpha: 1, duration: 0.3, ease: "power2.out" }, 2.05)
        .to("#conn-dot-2", { autoAlpha: 1, duration: 0.3, ease: "power2.out" }, 2.12)
        .to("#conn-dot-3", { autoAlpha: 1, duration: 0.3, ease: "power2.out" }, 2.19);

      /* callouts spring in */
      gsap.set(["#co-1","#co-2","#co-3"], { scale: 0.85 });
      tl.to("#co-1",
          { autoAlpha: 1, scale: 1, transformOrigin: "50% 50%",
            filter: "blur(0px)", duration: 0.72, ease: "back.out(1.5)" }, 2.0)
        .to("#co-2",
          { autoAlpha: 1, scale: 1, transformOrigin: "50% 50%",
            filter: "blur(0px)", duration: 0.72, ease: "back.out(1.5)" }, 2.12)
        .to("#co-3",
          { autoAlpha: 1, scale: 1, transformOrigin: "50% 50%",
            filter: "blur(0px)", duration: 0.72, ease: "back.out(1.5)" }, 2.24);

      gsap.set(["#co-1","#co-2","#co-3"], { autoAlpha: 0, filter: "blur(14px)" });

      /* count-up: callout 1 */
      const co1 = document.getElementById("co-1");
      const n1el = document.getElementById("co-1-num");
      const v1 = parseFloat(co1.getAttribute("data-val")) || 94;
      const s1 = co1.getAttribute("data-suffix") || "%";
      tl.to({ v: 0 }, {
        v: v1, duration: 1.2, ease: "power2.out",
        onUpdate: function() {
          n1el.textContent = Math.round(this.targets()[0].v) + s1;
        }
      }, 2.30);

      /* count-up: callout 2 */
      const co2 = document.getElementById("co-2");
      const n2el = document.getElementById("co-2-num");
      const v2 = parseFloat(co2.getAttribute("data-val")) || 4.8;
      const s2 = co2.getAttribute("data-suffix") || "";
      tl.to({ v: 0 }, {
        v: v2, duration: 1.2, ease: "power2.out",
        onUpdate: function() {
          n2el.textContent = this.targets()[0].v.toFixed(1) + s2;
        }
      }, 2.40);

      /* count-up: callout 3 */
      const co3 = document.getElementById("co-3");
      const n3el = document.getElementById("co-3-num");
      const v3 = parseFloat(co3.getAttribute("data-val")) || 3;
      const s3 = co3.getAttribute("data-suffix") || "x";
      tl.to({ v: 0 }, {
        v: v3, duration: 1.0, ease: "power2.out",
        onUpdate: function() {
          n3el.textContent = Math.round(this.targets()[0].v) + s3;
        }
      }, 2.50);

      /* breathing glow on center dot */
      tl.to("#center-dot",
        { scale: 1.8, autoAlpha: 0.5, transformOrigin: "960px 540px",
          duration: 1.3, ease: "sine.inOut", repeat: 2, yoyo: true }, 3.1);

      /* slow drift */
      tl.to("#t1-ov-callouts .center-stage",
        { y: -6, duration: 5.0, ease: "sine.inOut" }, 2.2);

      tl.set({}, {}, 7);
      window.__timelines["t1-ov-callouts"] = tl;
    </script>
  </body>
</html>