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.

5.3 KB
Raw Blame
<template id="scene7-cta-template">
  <div
    data-composition-id="scene7-cta"
    data-start="0"
    data-width="1080"
    data-height="1920"
    data-duration="3.41"
  >
    <div class="s7-panel">
      <div class="s7-scan" id="s7-scan"></div>
      <div class="s7-row">
        <svg class="s7-bubble" viewBox="0 0 160 140">
          <path
            id="s7-bubble-path"
            d="M 20 20 L 140 20 Q 150 20 150 30 L 150 90 Q 150 100 140 100 L 60 100 L 40 125 L 40 100 L 30 100 Q 20 100 20 90 Z"
            fill="none"
            stroke="#37bdf8"
            stroke-width="8"
            stroke-linejoin="round"
            pathLength="1"
            stroke-dasharray="1"
            stroke-dashoffset="1"
          />
        </svg>
        <div class="s7-label" id="s7-label">COMMENT:</div>
      </div>

      <div class="s7-chip" id="s7-chip">"skills"</div>

      <div class="s7-arrows" id="s7-arrows">
        <div class="s7-arrow">▾</div>
        <div class="s7-arrow">▾</div>
        <div class="s7-arrow">▾</div>
      </div>

      <div class="s7-sub" id="s7-sub">I'LL DM YOU THE BREAKDOWN.</div>
    </div>

    <style>
      [data-composition-id="scene7-cta"] {
        position: absolute;
        inset: 0;
      }
      [data-composition-id="scene7-cta"] .s7-panel {
        position: absolute;
        top: 0;
        left: 0;
        width: 1080px;
        height: 1060px;
        background: #07121c;
        padding: 90px 80px 40px 80px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 28px;
        box-sizing: border-box;
        overflow: hidden;
        font-family: "Montserrat", sans-serif;
      }
      [data-composition-id="scene7-cta"] .s7-row {
        display: flex;
        align-items: center;
        gap: 24px;
      }
      [data-composition-id="scene7-cta"] .s7-scan {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(
          90deg,
          transparent 0%,
          #37bdf8 40%,
          #f09025 60%,
          transparent 100%
        );
        opacity: 0.9;
        transform: translateX(-100%);
      }
      [data-composition-id="scene7-cta"] .s7-bubble {
        width: 140px;
        height: 120px;
      }
      [data-composition-id="scene7-cta"] .s7-label {
        font-family: "Roboto Mono", monospace;
        font-weight: 700;
        font-size: 56px;
        letter-spacing: 0.1em;
        color: #ffffff;
        opacity: 0;
      }
      [data-composition-id="scene7-cta"] .s7-chip {
        padding: 20px 56px;
        background: #37bdf8;
        border-radius: 999px;
        font-family: "Montserrat", sans-serif;
        font-weight: 900;
        font-size: 112px;
        color: #07121c;
        letter-spacing: -0.01em;
        opacity: 0;
        transform: scale(0.5);
      }
      [data-composition-id="scene7-cta"] .s7-arrows {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        color: #37bdf8;
        opacity: 0;
      }
      [data-composition-id="scene7-cta"] .s7-arrow {
        font-size: 72px;
        line-height: 1;
        text-shadow: 0 0 18px rgba(55, 189, 248, 0.75);
      }
      [data-composition-id="scene7-cta"] .s7-sub {
        font-family: "Montserrat", sans-serif;
        font-weight: 300;
        font-size: 38px;
        color: #96a2b6;
        letter-spacing: 0.02em;
        opacity: 0;
        transform: translateY(20px);
      }
    </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="scene7-cta"] ';

        // Scene starts at 15.43s on edited master. Audio "Comment" @ 15.96 -> local 0.53.
        // Visuals lead the audio so the top half is never a blank navy dead
        // zone after the face-mode switch from scene 6.
        tl.fromTo(
          scope + "#s7-scan",
          { x: "-100%" },
          { x: "100%", duration: 0.55, ease: "power2.inOut" },
          0.0,
        );
        tl.to(
          scope + "#s7-bubble-path",
          { strokeDashoffset: 0, duration: 0.32, ease: "power2.out" },
          0.02,
        );
        tl.to(
          scope + "#s7-label",
          { opacity: 1, duration: 0.22, ease: "power2.out" },
          0.12,
        );
        // "skills" @ 17.24 -> local 0.69, land chip slightly ahead at 0.34
        tl.to(
          scope + "#s7-chip",
          { opacity: 1, scale: 1, duration: 0.28, ease: "back.out(2.5)" },
          0.34,
        );
        // Arrows fade in then bounce
        tl.to(
          scope + "#s7-arrows",
          { opacity: 1, duration: 0.2, ease: "power2.out" },
          0.75,
        );
        tl.to(
          scope + "#s7-arrows",
          {
            y: 18,
            duration: 0.35,
            ease: "power2.inOut",
            repeat: Math.ceil(1.4 / 0.7) * 2 - 1,
            yoyo: true,
          },
          0.95,
        );
        // Subtext
        tl.to(
          scope + "#s7-sub",
          { opacity: 1, y: 0, duration: 0.32, ease: "power2.out" },
          1.6,
        );

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

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