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.

10.0 KB
Raw Blame
<!--
  Section 05 — MAGIC ❌ / TRASH ❌ → IN THE MIDDLE ✅ (the payoff)
  Local 0-11.60 · Master 23.34-34.94
  Anchors (local):
    2.98 "magic" (master 26.32) — MAGIC slams upper-left (iridescent)
    3.82 "all"   (master 27.16) — red ❌ sweeps across MAGIC
    5.90 "trash" (master 29.24) — TRASH slams lower-left (dim gray)
    6.60 "anything" (master 29.94) — red ❌ sweeps across TRASH
    7.98 "Copilot" (master 31.32) — Copilot chip flashes
    10.70 "somewhere" (master 34.04) — both ❌'d words fade to 25%
    11.06 pre-beat to match 11.26 visual with audio on 34.60 "middle"
    11.40 outro whip fires (local) → section ends at 11.60
-->

<script src="https://cdn.jsdelivr.net/npm/gsap@3/dist/gsap.min.js"></script>

<div
  id="s05-root"
  data-composition-id="s05-magic-trash-middle"
  data-start="0"
  data-duration="11.60"
  data-width="1920"
  data-height="1080"
  style="position: absolute; inset: 0;"
>
  <style>
    [data-composition-id="s05-magic-trash-middle"] .mtm-row {
      position: absolute;
      left: 60px;
      width: 680px;
      display: flex;
      align-items: center;
      gap: 26px;
    }
    [data-composition-id="s05-magic-trash-middle"] .mtm-magic {
      top: 210px;
    }
    [data-composition-id="s05-magic-trash-middle"] .mtm-trash {
      top: 650px;
    }
    [data-composition-id="s05-magic-trash-middle"] .word {
      font-family: "Montserrat", sans-serif;
      font-weight: 900;
      font-size: 168px;
      line-height: 0.9;
      letter-spacing: -0.02em;
      opacity: 0;
      filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.55));
      white-space: nowrap;
    }
    [data-composition-id="s05-magic-trash-middle"] .word.magic {
      background: linear-gradient(120deg, #9aceff 0%, #e9a8ff 22%, #ffd166 44%, #9efff0 66%, #e9a8ff 88%, #9aceff 100%);
      background-size: 200% 100%;
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      text-shadow: 0 0 40px rgba(180, 130, 255, 0.55);
    }
    [data-composition-id="s05-magic-trash-middle"] .word.trash {
      color: #6e7788;
      text-shadow: 0 0 24px rgba(60, 70, 90, 0.7);
      filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.55)) grayscale(0.3);
    }
    /* Left-side badge labels */
    [data-composition-id="s05-magic-trash-middle"] .tag {
      font-family: "Roboto Mono", monospace;
      font-weight: 500;
      font-size: 18px;
      letter-spacing: 0.22em;
      color: rgba(255, 255, 255, 0.45);
      text-transform: uppercase;
      position: absolute;
      left: 60px;
      opacity: 0;
    }
    [data-composition-id="s05-magic-trash-middle"] .tag.t-magic { top: 178px; }
    [data-composition-id="s05-magic-trash-middle"] .tag.t-trash { top: 618px; }

    /* Red X cross-out — single stroke, swept via clip-path */
    [data-composition-id="s05-magic-trash-middle"] .strike {
      position: absolute;
      left: 60px;
      width: 620px;
      height: 18px;
      background: linear-gradient(90deg, transparent 0%, #E54848 10%, #E54848 90%, transparent 100%);
      transform: skewX(-10deg);
      filter: drop-shadow(0 0 18px rgba(229, 72, 72, 0.75));
      clip-path: inset(0 100% 0 0);
      box-shadow: 0 0 30px rgba(229, 72, 72, 0.4);
    }
    [data-composition-id="s05-magic-trash-middle"] .strike.s-magic {
      top: 308px;
    }
    [data-composition-id="s05-magic-trash-middle"] .strike.s-trash {
      top: 748px;
    }

    /* Copilot chip */
    [data-composition-id="s05-magic-trash-middle"] .copilot-chip {
      position: absolute;
      left: 60px;
      top: 870px;
      padding: 10px 18px;
      background: rgba(7, 18, 28, 0.82);
      border: 1px solid rgba(255, 255, 255, 0.16);
      border-radius: 999px;
      display: flex;
      align-items: center;
      gap: 12px;
      opacity: 0;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    }
    [data-composition-id="s05-magic-trash-middle"] .copilot-chip .c-dot {
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background: linear-gradient(135deg, #a7e7ff, #7aa8ff);
      box-shadow: 0 0 10px rgba(122, 168, 255, 0.8);
    }
    [data-composition-id="s05-magic-trash-middle"] .copilot-chip .c-label {
      font-family: "Roboto Mono", monospace;
      font-weight: 500;
      font-size: 15px;
      letter-spacing: 0.18em;
      color: rgba(255, 255, 255, 0.8);
      text-transform: uppercase;
    }
    [data-composition-id="s05-magic-trash-middle"] .copilot-chip .c-arrow {
      font-family: "Roboto Mono", monospace;
      font-size: 15px;
      color: rgba(255, 255, 255, 0.5);
      margin: 0 4px;
    }
    [data-composition-id="s05-magic-trash-middle"] .copilot-chip .c-note {
      font-family: "Roboto Mono", monospace;
      font-weight: 500;
      font-size: 15px;
      letter-spacing: 0.14em;
      color: #f09025;
      text-transform: uppercase;
    }

    /* "IN THE MIDDLE" payoff bar */
    [data-composition-id="s05-magic-trash-middle"] .middle-band {
      position: absolute;
      left: 30px;
      top: 440px;
      width: 720px;
      height: 110px;
      background: linear-gradient(90deg,
        rgba(55, 189, 248, 0.0) 0%,
        rgba(55, 189, 248, 0.35) 25%,
        rgba(55, 189, 248, 0.85) 50%,
        rgba(55, 189, 248, 0.35) 75%,
        rgba(55, 189, 248, 0.0) 100%);
      filter: blur(14px);
      opacity: 0;
      transform: scaleX(0.3);
      transform-origin: center;
    }
    [data-composition-id="s05-magic-trash-middle"] .middle-text {
      position: absolute;
      left: 30px;
      top: 440px;
      width: 720px;
      height: 110px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: "Montserrat", sans-serif;
      font-weight: 900;
      font-size: 68px;
      letter-spacing: 0.04em;
      background: linear-gradient(180deg, #ffffff 0%, #c8e4f8 60%, #6fb8e0 100%);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      text-shadow:
        0 0 30px rgba(55, 189, 248, 0.85),
        0 0 70px rgba(55, 189, 248, 0.35);
      opacity: 0;
      text-transform: uppercase;
    }
  </style>

  <!-- Left-side MAGIC group -->
  <div class="tag t-magic">Myth · 01</div>
  <div class="mtm-row mtm-magic">
    <div class="word magic">MAGIC</div>
  </div>
  <div class="strike s-magic"></div>

  <!-- Left-side TRASH group -->
  <div class="tag t-trash">Myth · 02</div>
  <div class="mtm-row mtm-trash">
    <div class="word trash">TRASH</div>
  </div>
  <div class="strike s-trash"></div>

  <!-- Copilot chip -->
  <div class="copilot-chip">
    <div class="c-dot"></div>
    <div class="c-label">COPILOT</div>
    <div class="c-arrow">→</div>
    <div class="c-note">ONE TOOL · NOT THE WHOLE STACK</div>
  </div>

  <!-- Payoff — IN THE MIDDLE -->
  <div class="middle-band"></div>
  <div class="middle-text">IN THE MIDDLE</div>

  <script>
    (function () {
      window.__timelines = window.__timelines || {};
      const tl = gsap.timeline({ paused: true });

      // MAGIC tag fades in early (local 2.50) as subtle setup.
      tl.to(".tag.t-magic", { opacity: 1, duration: 0.35, ease: "power2.out" }, 2.50);

      // MAGIC word slams at local 2.88 (master 26.32 "magic"). Iridescent shimmer via
      // background-position tween over 2.5s.
      tl.fromTo(".word.magic",
        { opacity: 0, x: -80, scale: 0.9 },
        { opacity: 1, x: 0, scale: 1, duration: 0.48, ease: "back.out(1.4)" },
        2.88
      );
      tl.fromTo(".word.magic",
        { backgroundPosition: "0% 0%" },
        { backgroundPosition: "200% 0%", duration: 2.6, ease: "sine.inOut" },
        2.88
      );

      // Red ❌ sweeps at local 3.82 (master 27.16 "all").
      tl.fromTo(".strike.s-magic",
        { clipPath: "inset(0 100% 0 0)" },
        { clipPath: "inset(0 0% 0 0)", duration: 0.45, ease: "power3.in" },
        3.82
      );

      // TRASH tag fades in around local 5.50.
      tl.to(".tag.t-trash", { opacity: 1, duration: 0.35, ease: "power2.out" }, 5.50);

      // TRASH slams at local 5.88 (master 29.24 "trash").
      tl.fromTo(".word.trash",
        { opacity: 0, x: -80, scale: 0.9 },
        { opacity: 1, x: 0, scale: 1, duration: 0.48, ease: "back.out(1.4)" },
        5.88
      );

      // Red ❌ sweeps over TRASH at local 6.60 (master 29.94 "anything").
      tl.fromTo(".strike.s-trash",
        { clipPath: "inset(0 100% 0 0)" },
        { clipPath: "inset(0 0% 0 0)", duration: 0.45, ease: "power3.in" },
        6.60
      );

      // Copilot chip pops up at local 7.98 (master 31.32 "Copilot"), holds briefly.
      tl.fromTo(".copilot-chip",
        { opacity: 0, y: 14, scale: 0.94 },
        { opacity: 1, y: 0, scale: 1, duration: 0.42, ease: "back.out(1.6)" },
        7.92
      );
      tl.to(".copilot-chip", { opacity: 0, y: 10, duration: 0.5, ease: "power2.in" }, 10.10);

      // At local 10.60 (master 33.94 "somewhere") — both myth words fade to 25%,
      // strikes dim down — the viewer's eye is being prepared for the payoff.
      tl.to([".word.magic", ".word.trash", ".strike.s-magic", ".strike.s-trash",
             ".tag.t-magic", ".tag.t-trash"], {
        opacity: 0.22,
        duration: 0.5,
        ease: "power2.out",
      }, 10.60);

      // Middle band glow + text — the "IN THE MIDDLE" payoff.
      // Visual lands 0.2s ahead of audio on "middle" (local 11.26).
      tl.fromTo(".middle-band",
        { opacity: 0, scaleX: 0.2 },
        { opacity: 1, scaleX: 1, duration: 0.48, ease: "power3.out" },
        10.90
      );
      tl.fromTo(".middle-text",
        { opacity: 0, scale: 0.82, letterSpacing: "0.22em" },
        { opacity: 1, scale: 1, letterSpacing: "0.04em", duration: 0.52, ease: "back.out(1.3)" },
        11.02
      );

      // Soft exit right before the outro whip at local 11.40.
      tl.to([".middle-band", ".middle-text", ".word.magic", ".word.trash",
             ".strike.s-magic", ".strike.s-trash", ".tag.t-magic", ".tag.t-trash"], {
        opacity: 0, duration: 0.18, ease: "power2.in",
      }, 11.40);

      tl.to({}, { duration: 11.60 }, 0);
      window.__timelines["s05-magic-trash-middle"] = tl;
    })();
  </script>
</div>