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.

13.1 KB
Raw Blame
<template id="scene3-three-wins-template">
  <div
    data-composition-id="scene3-three-wins"
    data-start="0"
    data-width="1080"
    data-height="1920"
    data-duration="3.52"
  >
    <!-- HIDDEN face mode — full 1080x1920 canvas available. Three cards
         cascade in vertically as each phrase lands. -->

    <div class="s3-whip-wrap">
    <div class="s3-heading">
      <span class="s3-heading-dot"></span>
      <span class="s3-heading-text">WHY IT WINS</span>
    </div>

    <div class="s3-stack">
      <!-- Card 1: Better outputs -->
      <div class="s3-card" id="s3-c1">
        <div class="s3-num">01</div>
        <div class="s3-body">
          <svg class="s3-icon" viewBox="0 0 80 80">
            <polyline
              points="12,58 30,40 44,48 68,20"
              fill="none" stroke="#37bdf8" stroke-width="5"
              stroke-linecap="round" stroke-linejoin="round"
            />
            <circle cx="68" cy="20" r="6" fill="#37bdf8" />
            <polyline
              points="58,18 68,8 74,20"
              fill="none" stroke="#37bdf8" stroke-width="5"
              stroke-linecap="round" stroke-linejoin="round"
            />
          </svg>
          <div class="s3-label">BETTER<br/>OUTPUTS</div>
        </div>
        <div class="s3-check" id="s3-chk1">
          <svg viewBox="0 0 48 48">
            <circle cx="24" cy="24" r="20" fill="#37bdf8" />
            <path d="M14 25 L21 32 L34 17"
              fill="none" stroke="#07121c" stroke-width="6"
              stroke-linecap="round" stroke-linejoin="round" />
          </svg>
        </div>
        <div class="s3-underline" id="s3-ul1"></div>
      </div>

      <!-- Card 2: More reliable -->
      <div class="s3-card" id="s3-c2">
        <div class="s3-num">02</div>
        <div class="s3-body">
          <svg class="s3-icon" viewBox="0 0 80 80">
            <path
              d="M40 10 L64 22 L64 40 Q64 62 40 72 Q16 62 16 40 L16 22 Z"
              fill="none" stroke="#37bdf8" stroke-width="5"
              stroke-linejoin="round"
            />
            <path
              d="M28 40 L36 48 L52 30"
              fill="none" stroke="#37bdf8" stroke-width="5"
              stroke-linecap="round" stroke-linejoin="round"
            />
          </svg>
          <div class="s3-label">MORE<br/>RELIABLE</div>
        </div>
        <div class="s3-check" id="s3-chk2">
          <svg viewBox="0 0 48 48">
            <circle cx="24" cy="24" r="20" fill="#37bdf8" />
            <path d="M14 25 L21 32 L34 17"
              fill="none" stroke="#07121c" stroke-width="6"
              stroke-linecap="round" stroke-linejoin="round" />
          </svg>
        </div>
        <div class="s3-underline" id="s3-ul2"></div>
      </div>

      <!-- Card 3: Less babysitting (punchline — accent orange) -->
      <div class="s3-card s3-card-hero" id="s3-c3">
        <div class="s3-num s3-num-hero">03</div>
        <div class="s3-body">
          <svg class="s3-icon" viewBox="0 0 80 80">
            <circle cx="40" cy="40" r="24" fill="none" stroke="#f09025" stroke-width="5" />
            <path
              d="M30 32 Q30 28 34 28 M46 32 Q46 28 50 28"
              fill="none" stroke="#f09025" stroke-width="5" stroke-linecap="round"
            />
            <path
              d="M30 50 Q40 44 50 50"
              fill="none" stroke="#f09025" stroke-width="5" stroke-linecap="round"
            />
            <text x="58" y="20" font-size="14" fill="#f09025" font-weight="900">Z</text>
            <text x="64" y="12" font-size="11" fill="#f09025" font-weight="900" opacity="0.7">Z</text>
          </svg>
          <div class="s3-label s3-label-hero">LESS<br/>BABYSITTING</div>
        </div>
        <div class="s3-check s3-check-hero" id="s3-chk3">
          <svg viewBox="0 0 48 48">
            <circle cx="24" cy="24" r="20" fill="#f09025" />
            <path d="M14 25 L21 32 L34 17"
              fill="none" stroke="#07121c" stroke-width="6"
              stroke-linecap="round" stroke-linejoin="round" />
          </svg>
        </div>
        <div class="s3-underline s3-underline-hero" id="s3-ul3"></div>
      </div>
    </div>

    <!-- Cyan sweep bar — flies across between cards for cadence -->
    <div class="s3-sweep" id="s3-sweep"></div>
    </div>

    <style>
      [data-composition-id="scene3-three-wins"] {
        position: absolute;
        inset: 0;
        overflow: hidden;
      }
      [data-composition-id="scene3-three-wins"] .s3-whip-wrap {
        position: absolute;
        inset: 0;
        will-change: transform, filter;
      }
      [data-composition-id="scene3-three-wins"] .s3-heading {
        position: absolute;
        top: 60px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 14px 28px;
        border: 2px solid rgba(55, 189, 248, 0.6);
        background: rgba(13, 32, 49, 0.7);
        border-radius: 10px;
        font-family: "Roboto Mono", monospace;
        font-weight: 500;
        font-size: 30px;
        letter-spacing: 0.18em;
        color: #96a2b6;
        opacity: 0;
      }
      [data-composition-id="scene3-three-wins"] .s3-heading-dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: #37bdf8;
        box-shadow: 0 0 12px rgba(55, 189, 248, 0.85);
      }
      [data-composition-id="scene3-three-wins"] .s3-stack {
        position: absolute;
        top: 170px;
        left: 60px;
        right: 60px;
        display: flex;
        flex-direction: column;
        gap: 38px;
      }
      [data-composition-id="scene3-three-wins"] .s3-card {
        position: relative;
        width: 960px;
        height: 420px;
        background: #0d2031;
        border: 3px solid #37bdf8;
        border-radius: 32px;
        padding: 44px 48px;
        display: flex;
        align-items: center;
        gap: 28px;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
        overflow: hidden;
        opacity: 0;
        transform: translateX(-120px) scale(0.96);
      }
      [data-composition-id="scene3-three-wins"] .s3-card-hero {
        border-color: #f09025;
        box-shadow:
          0 0 50px rgba(240, 144, 37, 0.3),
          0 14px 44px rgba(0, 0, 0, 0.6);
      }
      [data-composition-id="scene3-three-wins"] .s3-num {
        font-family: "Roboto Mono", monospace;
        font-weight: 700;
        font-size: 72px;
        color: #37bdf8;
        letter-spacing: 0.04em;
        line-height: 1;
        min-width: 120px;
        flex-shrink: 0;
      }
      [data-composition-id="scene3-three-wins"] .s3-num-hero {
        color: #f09025;
      }
      [data-composition-id="scene3-three-wins"] .s3-body {
        display: flex;
        align-items: center;
        gap: 32px;
        flex: 1;
      }
      [data-composition-id="scene3-three-wins"] .s3-icon {
        width: 180px;
        height: 180px;
        flex-shrink: 0;
      }
      [data-composition-id="scene3-three-wins"] .s3-label {
        font-family: "Montserrat", sans-serif;
        font-weight: 900;
        font-size: 88px;
        line-height: 0.92;
        letter-spacing: -0.02em;
        color: #ffffff;
        text-shadow: 0 4px 0 #07121c;
      }
      [data-composition-id="scene3-three-wins"] .s3-label-hero {
        font-size: 64px;
        color: #f09025;
      }
      [data-composition-id="scene3-three-wins"] .s3-check {
        position: absolute;
        top: 28px;
        right: 28px;
        width: 64px;
        height: 64px;
        opacity: 0;
        transform: scale(0) rotate(-120deg);
      }
      [data-composition-id="scene3-three-wins"] .s3-check-hero svg circle {
        filter: drop-shadow(0 0 14px rgba(240, 144, 37, 0.75));
      }
      [data-composition-id="scene3-three-wins"] .s3-check svg {
        width: 100%;
        height: 100%;
        filter: drop-shadow(0 0 12px rgba(55, 189, 248, 0.7));
      }
      [data-composition-id="scene3-three-wins"] .s3-underline {
        position: absolute;
        left: 44px;
        bottom: 20px;
        height: 4px;
        width: calc(100% - 88px);
        background: linear-gradient(
          90deg,
          rgba(55, 189, 248, 0.9) 0%,
          rgba(55, 189, 248, 0.2) 100%
        );
        box-shadow: 0 0 14px rgba(55, 189, 248, 0.55);
        transform: scaleX(0);
        transform-origin: left center;
      }
      [data-composition-id="scene3-three-wins"] .s3-underline-hero {
        background: linear-gradient(
          90deg,
          rgba(240, 144, 37, 0.9) 0%,
          rgba(240, 144, 37, 0.2) 100%
        );
        box-shadow: 0 0 14px rgba(240, 144, 37, 0.6);
      }
      [data-composition-id="scene3-three-wins"] .s3-sweep {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        width: 18px;
        background: linear-gradient(
          180deg,
          transparent 0%,
          rgba(55, 189, 248, 0.8) 50%,
          transparent 100%
        );
        box-shadow: 0 0 40px rgba(55, 189, 248, 0.7);
        opacity: 0;
      }
    </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="scene3-three-wins"] ';
        const DUR = 3.52;

        // ENTRY WHIP — wrapper rises from below with blur de-ramp.
        gsap.set(scope + ".s3-whip-wrap", {
          y: 120, filter: "blur(24px)", opacity: 0.35,
        });
        tl.to(
          scope + ".s3-whip-wrap",
          { y: 0, filter: "blur(0px)", opacity: 1, duration: 0.6, ease: "power3.out" },
          0,
        );

        // Heading chip sets context.
        tl.to(
          scope + ".s3-heading",
          { opacity: 1, duration: 0.24, ease: "power2.out" },
          0.04,
        );

        // Vertical sweep bar flies across as cards land.
        tl.fromTo(
          scope + "#s3-sweep",
          { x: -40, opacity: 0 },
          { x: 1080, opacity: 0.9, duration: 0.8, ease: "power2.inOut" },
          0.12,
        );
        tl.to(
          scope + "#s3-sweep",
          { opacity: 0, duration: 0.2, ease: "power1.in" },
          0.92,
        );

        // "Better" @ local 0.00 — card 1 slams in.
        tl.to(
          scope + "#s3-c1",
          {
            opacity: 1,
            x: 0,
            scale: 1,
            duration: 0.42,
            ease: "back.out(1.5)",
          },
          0.02,
        );
        // Underline @ end of "outputs" (0.46 local)
        tl.to(
          scope + "#s3-ul1",
          { scaleX: 1, duration: 0.32, ease: "power3.out" },
          0.44,
        );
        // Check stamp pops
        tl.to(
          scope + "#s3-chk1",
          {
            opacity: 1,
            scale: 1,
            rotation: 0,
            duration: 0.3,
            ease: "back.out(2.6)",
          },
          0.62,
        );

        // "more" @ local 0.96 — card 2 slams in.
        tl.to(
          scope + "#s3-c2",
          {
            opacity: 1,
            x: 0,
            scale: 1,
            duration: 0.42,
            ease: "back.out(1.5)",
          },
          0.92,
        );
        tl.to(
          scope + "#s3-ul2",
          { scaleX: 1, duration: 0.32, ease: "power3.out" },
          1.32,
        );
        tl.to(
          scope + "#s3-chk2",
          {
            opacity: 1,
            scale: 1,
            rotation: 0,
            duration: 0.3,
            ease: "back.out(2.6)",
          },
          1.52,
        );

        // "less" @ local 2.04 — card 3 (hero, orange) slams in with extra drama.
        tl.to(
          scope + "#s3-c3",
          {
            opacity: 1,
            x: 0,
            scale: 1,
            duration: 0.48,
            ease: "back.out(1.8)",
          },
          2.00,
        );
        // Tremor on hero card landing
        tl.to(
          scope + "#s3-c3",
          {
            x: 6,
            duration: 0.05,
            yoyo: true,
            repeat: 3,
            ease: "power1.inOut",
          },
          2.48,
        );
        tl.to(
          scope + "#s3-ul3",
          { scaleX: 1, duration: 0.34, ease: "power3.out" },
          2.46,
        );
        tl.to(
          scope + "#s3-chk3",
          {
            opacity: 1,
            scale: 1,
            rotation: 0,
            duration: 0.34,
            ease: "back.out(2.8)",
          },
          2.66,
        );

        // Hero card glow pulse through remaining time.
        tl.to(
          scope + "#s3-c3",
          {
            boxShadow:
              "0 0 80px rgba(240, 144, 37, 0.55), 0 14px 44px rgba(0, 0, 0, 0.6)",
            duration: 0.4,
            yoyo: true,
            repeat: 1,
            ease: "sine.inOut",
          },
          2.85,
        );

        // EXIT WHIP — wrapper slides up with blur.
        tl.to(
          scope + ".s3-whip-wrap",
          { y: -120, filter: "blur(24px)", opacity: 0, duration: 0.3, ease: "power2.in" },
          DUR - 0.3,
        );

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

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