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.

7.8 KB
Raw Blame
<template id="scene5-benefits-template">
  <div
    data-composition-id="scene5-benefits"
    data-start="0"
    data-width="1080"
    data-height="1920"
    data-duration="3.95"
  >
    <div class="s5-panel">
      <div class="s5-headline">WHAT THEY WANT</div>
      <div class="s5-row">
        <div class="s5-card" id="s5-c1">
          <div class="s5-check" id="s5-chk1">
            <svg viewBox="0 0 32 32">
              <circle cx="16" cy="16" r="14" fill="#37bdf8" />
              <path d="M9 17 L14 22 L23 11" fill="none" stroke="#07121c" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" />
            </svg>
          </div>
          <div class="s5-num">01</div>
          <svg class="s5-icon" viewBox="0 0 80 80">
            <circle cx="40" cy="40" r="30" fill="none" stroke="#37bdf8" stroke-width="4" />
            <line x1="40" y1="40" x2="40" y2="20" stroke="#37bdf8" stroke-width="4" stroke-linecap="round" />
            <line x1="40" y1="40" x2="54" y2="46" stroke="#37bdf8" stroke-width="4" stroke-linecap="round" />
          </svg>
          <div class="s5-label">SAVE<br />TIME</div>
          <div class="s5-underline" id="s5-ul1"></div>
        </div>
        <div class="s5-card" id="s5-c2">
          <div class="s5-check" id="s5-chk2">
            <svg viewBox="0 0 32 32">
              <circle cx="16" cy="16" r="14" fill="#37bdf8" />
              <path d="M9 17 L14 22 L23 11" fill="none" stroke="#07121c" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" />
            </svg>
          </div>
          <div class="s5-num">02</div>
          <svg class="s5-icon" viewBox="0 0 80 80">
            <path
              d="M18 56 L40 34 L46 40 L24 62 Z"
              fill="none"
              stroke="#37bdf8"
              stroke-width="4"
              stroke-linejoin="round"
            />
            <circle cx="58" cy="22" r="8" fill="none" stroke="#37bdf8" stroke-width="4" />
            <line x1="50" y1="30" x2="40" y2="40" stroke="#37bdf8" stroke-width="4" stroke-linecap="round" />
          </svg>
          <div class="s5-label">FIX<br />MISTAKES</div>
          <div class="s5-underline" id="s5-ul2"></div>
        </div>
        <div class="s5-card" id="s5-c3">
          <div class="s5-check" id="s5-chk3">
            <svg viewBox="0 0 32 32">
              <circle cx="16" cy="16" r="14" fill="#37bdf8" />
              <path d="M9 17 L14 22 L23 11" fill="none" stroke="#07121c" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" />
            </svg>
          </div>
          <div class="s5-num">03</div>
          <svg class="s5-icon" viewBox="0 0 80 80">
            <rect x="14" y="18" width="52" height="36" rx="4" fill="none" stroke="#37bdf8" stroke-width="4" />
            <line x1="30" y1="62" x2="50" y2="62" stroke="#37bdf8" stroke-width="4" stroke-linecap="round" />
            <line x1="40" y1="54" x2="40" y2="62" stroke="#37bdf8" stroke-width="4" />
          </svg>
          <div class="s5-label">REAL<br />WORK</div>
          <div class="s5-underline" id="s5-ul3"></div>
        </div>
      </div>
    </div>

    <style>
      [data-composition-id="scene5-benefits"] {
        position: absolute;
        inset: 0;
      }
      [data-composition-id="scene5-benefits"] .s5-panel {
        position: absolute;
        top: 0;
        left: 0;
        width: 1080px;
        height: 960px;
        background: #07121c;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 60px;
        gap: 40px;
        box-sizing: border-box;
        overflow: hidden;
        font-family: "Montserrat", sans-serif;
      }
      [data-composition-id="scene5-benefits"] .s5-headline {
        font-family: "Roboto Mono", monospace;
        font-weight: 500;
        font-size: 44px;
        letter-spacing: 0.18em;
        color: #96a2b6;
        opacity: 0;
      }
      [data-composition-id="scene5-benefits"] .s5-row {
        display: flex;
        gap: 24px;
      }
      [data-composition-id="scene5-benefits"] .s5-card {
        width: 290px;
        height: 520px;
        background: #0d2031;
        border: 2px solid #37bdf8;
        border-radius: 28px;
        padding: 32px 24px;
        display: flex;
        flex-direction: column;
        gap: 18px;
        align-items: flex-start;
        position: relative;
        overflow: hidden;
        opacity: 0;
        transform: translateY(60px) scale(0.92);
      }
      [data-composition-id="scene5-benefits"] .s5-num {
        font-family: "Roboto Mono", monospace;
        font-weight: 700;
        font-size: 40px;
        color: #37bdf8;
        letter-spacing: 0.04em;
      }
      [data-composition-id="scene5-benefits"] .s5-icon {
        width: 140px;
        height: 140px;
        margin-top: 20px;
      }
      [data-composition-id="scene5-benefits"] .s5-label {
        font-family: "Montserrat", sans-serif;
        font-weight: 900;
        font-size: 48px;
        line-height: 0.92;
        letter-spacing: -0.01em;
        color: #ffffff;
        margin-top: auto;
        position: relative;
      }
      [data-composition-id="scene5-benefits"] .s5-underline {
        position: absolute;
        left: 24px;
        bottom: 20px;
        height: 4px;
        width: calc(100% - 48px);
        background: #37bdf8;
        box-shadow: 0 0 10px rgba(55, 189, 248, 0.6);
        transform: scaleX(0);
        transform-origin: left center;
      }
      [data-composition-id="scene5-benefits"] .s5-check {
        position: absolute;
        top: 16px;
        right: 16px;
        width: 48px;
        height: 48px;
        opacity: 0;
        transform: scale(0) rotate(-90deg);
      }
      [data-composition-id="scene5-benefits"] .s5-check svg {
        width: 100%;
        height: 100%;
        filter: drop-shadow(0 0 12px rgba(55, 189, 248, 0.7));
      }
    </style>

    <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/gsap.min.js"></script>
    <script>
      (function () {
        const tl = gsap.timeline({ paused: true });
        const scope = '[data-composition-id="scene5-benefits"] ';

        // Scene starts at 9.55s on master.
        tl.to(
          scope + ".s5-headline",
          { opacity: 1, duration: 0.3, ease: "power2.out" },
          0.05,
        );
        // "save" @ 10.06 -> local 0.51
        tl.to(
          scope + "#s5-c1",
          { opacity: 1, y: 0, scale: 1, duration: 0.38, ease: "back.out(1.3)" },
          0.51,
        );
        // "fix" @ 10.90 -> local 1.35
        tl.to(
          scope + "#s5-c2",
          { opacity: 1, y: 0, scale: 1, duration: 0.38, ease: "back.out(1.3)" },
          1.35,
        );
        // "make" @ 11.98 -> local 2.43
        tl.to(
          scope + "#s5-c3",
          { opacity: 1, y: 0, scale: 1, duration: 0.38, ease: "back.out(1.3)" },
          2.43,
        );

        // Secondary motion — keeps the scene alive through its remaining 1.5s.
        // Underline sweeps under each label, then checkmark pops top-right.
        // Offsets align with spoken words: "time" (local 0.65), "mistakes" (1.89),
        // "real work" (3.33) — but we reuse simpler stagger for visual rhythm.
        const UNDERLINE_START = 2.85;
        const CHECK_START = 3.05;
        [1, 2, 3].forEach(function (i) {
          tl.to(
            scope + "#s5-ul" + i,
            { scaleX: 1, duration: 0.32, ease: "power2.out" },
            UNDERLINE_START + (i - 1) * 0.12,
          );
          tl.to(
            scope + "#s5-chk" + i,
            {
              opacity: 1,
              scale: 1,
              rotation: 0,
              duration: 0.28,
              ease: "back.out(2.4)",
            },
            CHECK_START + (i - 1) * 0.12,
          );
        });

        tl.set({}, {}, 3.95);

        window.__timelines = window.__timelines || {};
        window.__timelines["scene5-benefits"] = tl;
      })();
    </script>
  </div>
</template>