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.

9.4 KB
Raw Blame
<template id="02-cost-of-hesitation-template">
  <div
    data-composition-id="02-cost-of-hesitation"
    data-start="0"
    data-width="1920"
    data-height="1080"
    data-duration="11.82"
  >
    <!-- Beat A: SCOPE CREEPER lockup with NOT YOU stamp -->
    <div class="s2-stereotype">
      <div class="s2-stereotype-label">THE STEREOTYPE</div>
      <div class="s2-stereotype-lockup">
        <span class="s2-stereotype-word">SCOPE</span>
        <span class="s2-stereotype-word">CREEPER</span>
      </div>
      <div class="s2-not-you">
        <span class="s2-x">✕</span>
        <span>NOT YOU</span>
      </div>
    </div>

    <!-- Beat B: 3-step checklist (finish · invoice · move on) -->
    <div class="s2-checklist">
      <div class="s2-checklist-title">WHAT YOU DO INSTEAD</div>
      <div class="s2-row" id="s2-row-1">
        <div class="s2-check">✓</div>
        <div class="s2-row-text">FINISH THE PROJECT</div>
      </div>
      <div class="s2-row" id="s2-row-2">
        <div class="s2-check">✓</div>
        <div class="s2-row-text">SEND THE INVOICE</div>
      </div>
      <div class="s2-row" id="s2-row-3">
        <div class="s2-check">✓</div>
        <div class="s2-row-text">MOVE ON</div>
      </div>
    </div>

    <!-- Beat C: cost payoff -->
    <div class="s2-payoff">
      <div class="s2-payoff-line">HESITATION</div>
      <div class="s2-payoff-line s2-payoff-equals">=</div>
      <div class="s2-payoff-line s2-payoff-cost">LOST REVENUE</div>
    </div>

    <style>
      [data-composition-id="02-cost-of-hesitation"] {
        position: absolute;
        inset: 0;
        font-family: "Montserrat", sans-serif;
      }

      /* ---------- Beat A: stereotype lockup ---------- */
      [data-composition-id="02-cost-of-hesitation"] .s2-stereotype {
        position: absolute;
        top: 90px;
        left: 120px;
        width: 1280px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
      }
      [data-composition-id="02-cost-of-hesitation"] .s2-stereotype-label {
        font-family: "Roboto Mono", monospace;
        font-weight: 500;
        font-size: 20px;
        letter-spacing: 0.32em;
        color: #96a2b6;
        text-transform: uppercase;
      }
      [data-composition-id="02-cost-of-hesitation"] .s2-stereotype-lockup {
        display: flex;
        gap: 28px;
        align-items: baseline;
      }
      [data-composition-id="02-cost-of-hesitation"] .s2-stereotype-word {
        font-family: "Montserrat", sans-serif;
        font-weight: 900;
        font-size: 148px;
        line-height: 0.95;
        letter-spacing: -0.02em;
        color: rgba(150, 162, 182, 0.35);
        text-decoration: line-through;
        text-decoration-color: #f09025;
        text-decoration-thickness: 6px;
      }
      [data-composition-id="02-cost-of-hesitation"] .s2-not-you {
        margin-top: 12px;
        display: inline-flex;
        align-items: center;
        gap: 16px;
        padding: 12px 26px;
        background: rgba(240, 144, 37, 0.14);
        border: 1.5px solid rgba(240, 144, 37, 0.6);
        border-radius: 999px;
        font-family: "Roboto Mono", monospace;
        font-weight: 700;
        font-size: 28px;
        letter-spacing: 0.26em;
        color: #f09025;
      }
      [data-composition-id="02-cost-of-hesitation"] .s2-x {
        font-size: 34px;
        line-height: 1;
      }

      /* ---------- Beat B: checklist ---------- */
      [data-composition-id="02-cost-of-hesitation"] .s2-checklist {
        position: absolute;
        top: 440px;
        left: 120px;
        width: 780px;
        display: flex;
        flex-direction: column;
        gap: 16px;
      }
      [data-composition-id="02-cost-of-hesitation"] .s2-checklist-title {
        font-family: "Roboto Mono", monospace;
        font-weight: 500;
        font-size: 20px;
        letter-spacing: 0.32em;
        color: #96a2b6;
        text-transform: uppercase;
        margin-bottom: 8px;
      }
      [data-composition-id="02-cost-of-hesitation"] .s2-row {
        display: flex;
        align-items: center;
        gap: 22px;
        padding: 20px 28px;
        background: rgba(13, 32, 49, 0.75);
        border: 1px solid rgba(55, 189, 248, 0.22);
        border-radius: 16px;
      }
      [data-composition-id="02-cost-of-hesitation"] .s2-check {
        width: 52px;
        height: 52px;
        border-radius: 50%;
        background: #37bdf8;
        color: #07121c;
        font-family: "Montserrat", sans-serif;
        font-weight: 900;
        font-size: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex: none;
        box-shadow: 0 0 18px rgba(55, 189, 248, 0.55);
      }
      [data-composition-id="02-cost-of-hesitation"] .s2-row-text {
        font-family: "Montserrat", sans-serif;
        font-weight: 700;
        font-size: 40px;
        letter-spacing: 0.03em;
        color: #ffffff;
      }

      /* ---------- Beat C: cost payoff ---------- */
      [data-composition-id="02-cost-of-hesitation"] .s2-payoff {
        position: absolute;
        top: 460px;
        right: 520px;
        width: 540px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        padding: 36px 42px;
        border: 2px solid rgba(240, 144, 37, 0.7);
        border-radius: 24px;
        background: rgba(240, 144, 37, 0.08);
        box-shadow: 0 0 80px rgba(240, 144, 37, 0.28);
      }
      [data-composition-id="02-cost-of-hesitation"] .s2-payoff-line {
        font-family: "Montserrat", sans-serif;
        font-weight: 900;
        font-size: 52px;
        letter-spacing: 0.02em;
        color: #ffffff;
        line-height: 1.05;
        text-align: center;
      }
      [data-composition-id="02-cost-of-hesitation"] .s2-payoff-equals {
        color: #f09025;
        font-size: 64px;
        line-height: 1;
        margin: 6px 0;
      }
      [data-composition-id="02-cost-of-hesitation"] .s2-payoff-cost {
        color: #f09025;
        text-shadow: 0 0 26px rgba(240, 144, 37, 0.6);
      }
    </style>

    <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/gsap.min.js"></script>
    <script>
      (function () {
        const tl = gsap.timeline({ paused: true });
        const sel = (s) => '[data-composition-id="02-cost-of-hesitation"] ' + s;

        /* ----- Beat A: Stereotype lockup (relative to section start, section starts at absolute 19s) ----- */
        // Local t=0 -> soft crossfade from section 01 (avoids jump cut)
        tl.from(sel(".s2-stereotype-label"), {
          y: -14,
          opacity: 0,
          duration: 0.45,
          ease: "power3.out",
        }, 0);

        // Word 1 "SCOPE" enters snappy
        tl.from(sel(".s2-stereotype-word:nth-child(1)"), {
          y: 60,
          opacity: 0,
          rotationX: -55,
          duration: 0.60,
          ease: "power4.out",
        }, 0.40);

        // Word 2 "CREEPER" enters with slight delay — "consultant" word lands at abs 23.20, local 4.20
        tl.from(sel(".s2-stereotype-word:nth-child(2)"), {
          y: 60,
          opacity: 0,
          rotationX: -55,
          duration: 0.60,
          ease: "power4.out",
        }, 0.85);

        // NOT YOU pill at local t=4.00 — absolute 23.00 (just before "consultant" at 23.20)
        tl.from(sel(".s2-not-you"), {
          scale: 0.5,
          opacity: 0,
          duration: 0.55,
          ease: "back.out(2)",
        }, 4.00);

        /* ----- Beat B: Checklist (local 6.90+ -> abs 25.90+) ----- */
        // Title above list — enters at "So you might just..." ~ local 6.5
        tl.from(sel(".s2-checklist-title"), {
          opacity: 0,
          y: -10,
          duration: 0.35,
          ease: "power2.out",
        }, 6.52);

        // Row 1 at "finish" (abs 26.10 = local 7.10)
        tl.from(sel("#s2-row-1"), {
          x: -40,
          opacity: 0,
          duration: 0.50,
          ease: "expo.out",
        }, 7.05);

        // Row 2 at "invoice" (abs 27.32 = local 8.32)
        tl.from(sel("#s2-row-2"), {
          x: -40,
          opacity: 0,
          duration: 0.50,
          ease: "expo.out",
        }, 8.27);

        // Row 3 at "move on" (abs 28.30 = local 9.30)
        tl.from(sel("#s2-row-3"), {
          x: -40,
          opacity: 0,
          duration: 0.50,
          ease: "expo.out",
        }, 9.25);

        /* ----- Beat C: cost payoff (local 10.30+ -> abs 29.30+) ----- */
        // "That hesitation costs you" at abs 29.34 = local 10.34
        tl.from(sel(".s2-payoff"), {
          scale: 0.7,
          opacity: 0,
          duration: 0.60,
          ease: "back.out(1.6)",
        }, 10.25);

        // Animate the equals + cost line slightly after the container (internal stagger for rhythm)
        tl.from(sel(".s2-payoff-line:nth-child(1)"), {
          y: -16,
          opacity: 0,
          duration: 0.35,
          ease: "power3.out",
        }, 10.45);
        tl.from(sel(".s2-payoff-equals"), {
          scale: 0,
          opacity: 0,
          duration: 0.35,
          ease: "back.out(2.5)",
        }, 10.75);
        // "costs" word lands at abs 30.10 = local 11.10
        tl.from(sel(".s2-payoff-cost"), {
          y: 20,
          opacity: 0,
          duration: 0.40,
          ease: "expo.out",
        }, 11.00);

        // Pad to section duration
        tl.set({}, {}, 11.82);

        window.__timelines = window.__timelines || {};
        window.__timelines["02-cost-of-hesitation"] = tl;
      })();
    </script>
  </div>
</template>