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.9 KB
Raw Blame
<!doctype html>
<!--
  VOX EXPLAINER · tier1 · overview · FANNED CARD DECK
  4 overlapping cards fanned across the canvas (each rotated a few degrees, offset),
  like a hand of cards dealt face-up. Each card carries a topic. The front card is
  upright and yellow-accented. Cards deal in one at a time (slide + rotate, staggered).
  Marker title at top.
  Slots: title, intro, card1, card2, card3, card4, source.
-->
<html>
  <head>
    <meta charset="utf-8" />
    <link rel="stylesheet" href="../../tokens.css" />
    <style>
      html, body { margin: 0; }
      #t1-ov-deck {
        position: absolute; inset: 0; width: 1920px; height: 1080px;
        background: var(--paper); color: var(--ink);
        font-family: var(--font-display); overflow: hidden;
      }
      #t1-ov-deck .grid {
        position: absolute; inset: -2px;
        background-image:
          repeating-linear-gradient(0deg,  var(--grid-line) 0 1px, transparent 1px var(--grid-size)),
          repeating-linear-gradient(90deg, var(--grid-line) 0 1px, transparent 1px var(--grid-size));
      }
      #t1-ov-deck .grain {
        position: absolute; inset: -40px; background: var(--tex-grain);
        background-size: 180px 180px; mix-blend-mode: multiply; opacity: 0.4;
        pointer-events: none; z-index: 9;
      }
      #t1-ov-deck .vignette {
        position: absolute; inset: 0; pointer-events: none; z-index: 8;
        background: radial-gradient(130% 120% at 50% 40%, transparent 56%, rgba(23,19,14,0.18) 100%);
      }
      /* marker title */
      #t1-ov-deck .title {
        position: absolute; top: 62px; left: 50%;
        transform: translateX(-50%) skewX(var(--marker-skew));
        background: var(--yellow); padding: 8px 28px; z-index: 10;
        font-weight: var(--wt-black); font-size: var(--size-title);
        letter-spacing: var(--track-tight); text-transform: uppercase; white-space: nowrap;
      }
      #t1-ov-deck .intro {
        position: absolute; top: 218px; left: 50%; transform: translateX(-50%);
        width: 900px; text-align: center; z-index: 10;
        font-family: var(--font-label); font-weight: var(--wt-reg);
        font-size: var(--size-body); line-height: 1.4; color: var(--muted);
      }
      /* the fanned card stack — centered */
      #t1-ov-deck .fan {
        position: absolute; left: 50%; top: 50%;
        transform: translate(-50%, -42%);
        width: 500px; height: 580px;
        z-index: 2;
      }
      /* each playing card */
      #t1-ov-deck .card {
        position: absolute; width: 420px; height: 540px;
        background: var(--paper-2);
        box-shadow: 0 8px 32px rgba(23,19,14,0.22), inset 0 0 0 3px var(--ink);
        display: flex; flex-direction: column; justify-content: flex-end;
        padding: 36px 40px; box-sizing: border-box;
        transform-origin: 50% 90%;
      }
      /* individual card positions/rotations — deterministic, no Math.random */
      #t1-ov-deck .card-4 {
        left: -120px; top: 20px;
        transform: rotate(-11deg);
        background: var(--paper-2);
      }
      #t1-ov-deck .card-3 {
        left: -40px; top: 10px;
        transform: rotate(-5.5deg);
        background: var(--paper-2);
      }
      #t1-ov-deck .card-2 {
        left: 30px; top: 4px;
        transform: rotate(2.5deg);
        background: var(--paper-2);
      }
      /* front card — upright, yellow accent */
      #t1-ov-deck .card-1 {
        left: 90px; top: 0px;
        transform: rotate(0deg);
        background: var(--paper);
        box-shadow: 0 16px 56px rgba(23,19,14,0.30), inset 0 0 0 4px var(--ink);
        z-index: 5;
      }
      /* yellow top bar on front card */
      #t1-ov-deck .card-1::before {
        content: ""; position: absolute; left: 0; right: 0; top: 0; height: 14px;
        background: var(--yellow);
      }
      /* card number */
      #t1-ov-deck .card-num {
        position: absolute; top: 26px; left: 30px;
        font-family: var(--font-label); font-weight: var(--wt-bold);
        font-size: var(--size-label); letter-spacing: var(--track-wide);
        text-transform: uppercase; color: var(--muted);
      }
      #t1-ov-deck .card-1 .card-num { color: var(--ink); }
      #t1-ov-deck .card-topic {
        font-weight: var(--wt-black); font-size: 52px;
        line-height: 1.1; letter-spacing: var(--track-tight); color: var(--ink);
      }
      #t1-ov-deck .card-1 .card-topic { font-size: 58px; }
      /* ruled lines on the card bodies */
      #t1-ov-deck .card-lines {
        position: absolute; left: 30px; right: 30px; top: 80px; bottom: 120px;
        background-image: repeating-linear-gradient(
          180deg, transparent 0, transparent 36px, rgba(23,19,14,0.10) 36px, rgba(23,19,14,0.10) 37px
        );
      }
      /* source */
      #t1-ov-deck .source {
        position: absolute; left: 130px; bottom: 60px; z-index: 10;
        font-family: var(--font-label); font-weight: var(--wt-bold);
        font-size: var(--size-tiny); letter-spacing: var(--track-wide);
        text-transform: uppercase; color: var(--muted);
      }
    </style>
  </head>
  <body>
    <div id="t1-ov-deck" data-composition-id="t1-ov-deck" data-start="0" data-width="1920" data-height="1080">
      <div class="grid"></div>

      <div class="title" data-slot="title">FOUR KEY POINTS</div>
      <div class="intro" data-slot="intro">Here's what you need to understand before we go further.</div>

      <!-- fan z-order: 4 is deepest (dealt first), 1 is front (dealt last) -->
      <div class="fan">
        <div class="card card-4">
          <div class="card-num">04</div>
          <div class="card-lines"></div>
          <div class="card-topic" data-slot="card4">The Turning Point</div>
        </div>
        <div class="card card-3">
          <div class="card-num">03</div>
          <div class="card-lines"></div>
          <div class="card-topic" data-slot="card3">The Consequence</div>
        </div>
        <div class="card card-2">
          <div class="card-num">02</div>
          <div class="card-lines"></div>
          <div class="card-topic" data-slot="card2">The Evidence</div>
        </div>
        <div class="card card-1">
          <div class="card-num">01</div>
          <div class="card-lines"></div>
          <div class="card-topic" data-slot="card1">The Problem</div>
        </div>
      </div>

      <div class="source" data-slot="source">SOURCE · 2026</div>
      <div class="vignette"></div>
      <div class="grain"></div>
    </div>

    <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/gsap.min.js"></script>
    <script>
      window.__timelines = window.__timelines || {};
      const tl = gsap.timeline({ paused: true });

      // grain flicker — finite
      tl.fromTo("#t1-ov-deck .grain", { backgroundPosition: "0px 0px" },
        { backgroundPosition: "160px 100px", duration: 0.5, ease: "steps(4)", repeat: 13, yoyo: true }, 0);

      // title snaps in
      tl.from("#t1-ov-deck .title",
        { autoAlpha: 0, scaleX: 0, transformOrigin: "center center", duration: 0.4, ease: "power3.out" }, 0.1);
      tl.from("#t1-ov-deck .intro",
        { autoAlpha: 0, y: 14, duration: 0.35 }, 0.4);

      // cards deal in back-to-front: card-4, card-3, card-2, card-1
      // each slides in from below-right + rotates into place
      tl.from("#t1-ov-deck .card-4",
        { autoAlpha: 0, x: 200, y: 120, rotation: 18, duration: 0.45, ease: "back.out(1.4)" }, 0.55);
      tl.from("#t1-ov-deck .card-3",
        { autoAlpha: 0, x: 160, y: 100, rotation: 12, duration: 0.45, ease: "back.out(1.4)" }, 0.75);
      tl.from("#t1-ov-deck .card-2",
        { autoAlpha: 0, x: 100, y: 80, rotation: 6, duration: 0.45, ease: "back.out(1.4)" }, 0.95);
      tl.from("#t1-ov-deck .card-1",
        { autoAlpha: 0, x: 60, y: 60, rotation: 3, duration: 0.5, ease: "back.out(1.8)" }, 1.18);

      tl.from("#t1-ov-deck .source", { autoAlpha: 0, duration: 0.3 }, 1.5);

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

      window.__timelines["t1-ov-deck"] = tl;
    </script>
  </body>
</html>