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.5 KB
Raw Blame
<!doctype html>
<!--
  KALLAWAY · tier1 · overview · FUNNEL
  Four stacked glass trapezoid/bar stages narrowing top→bottom. Each stage has
  a label (+ optional %). Stages slide in top-to-bottom with stagger.
  Slots: title, f1_label, f1_pct, f2_label, f2_pct, f3_label, f3_pct, f4_label, f4_pct.
-->
<html>
  <head>
    <meta charset="utf-8" />
    <link rel="stylesheet" href="../../tokens.css" />
    <style>
      html, body { margin: 0; }

      #t1-ov-funnel {
        position: absolute; inset: 0; width: 1920px; height: 1080px;
        background: var(--canvas); color: var(--text);
        font-family: var(--font-display); overflow: hidden;
      }

      #t1-ov-funnel .bloom {
        position: absolute; inset: 0; background: var(--bloom-bottom); z-index: 1;
      }
      #t1-ov-funnel .grid {
        position: absolute; inset: 0; z-index: 1;
        background-image: var(--dot); background-size: var(--dot-size); opacity: 0.45;
        -webkit-mask-image: radial-gradient(120% 110% at 50% 60%, #000 30%, transparent 78%);
                mask-image: radial-gradient(120% 110% at 50% 60%, #000 30%, transparent 78%);
      }

      /* Title */
      #t1-ov-funnel .title-row {
        position: absolute; left: 0; right: 0; top: 72px; text-align: center; z-index: 4;
      }
      #t1-ov-funnel .title {
        font-family: var(--font-display); font-weight: var(--wt-bold);
        font-size: var(--size-title); letter-spacing: var(--track-snug); line-height: 1.06;
        color: var(--white); text-shadow: var(--textglow);
        max-width: 1500px; margin: 0 auto;
      }
      #t1-ov-funnel .title em {
        font-style: normal; color: var(--accent); text-shadow: var(--textglow-accent);
      }

      /* Funnel stack — centered, vertical */
      #t1-ov-funnel .funnel-stack {
        position: absolute;
        left: 50%; top: 220px;
        transform: translateX(-50%);
        display: flex; flex-direction: column; align-items: center;
        gap: 0; z-index: 4;
      }

      /* Each funnel stage — a trapezoid bar that narrows */
      .funnel-stage {
        position: relative; display: flex;
        align-items: center; justify-content: space-between;
        overflow: hidden;
        /* Background glass with a clip-path to create trapezoid illusion */
      }

      /* Stage widths: 900 → 750 → 600 → 440 (narrows ~17% each step) */
      #fs1 { width: 900px; }
      #fs2 { width: 750px; }
      #fs3 { width: 600px; }
      #fs4 { width: 440px; }

      .funnel-stage .stage-glass {
        width: 100%;
        background: var(--glass-bg-dark);
        border: var(--stroke) solid var(--glass-border);
        border-radius: var(--radius-sm);
        padding: 22px 36px;
        backdrop-filter: var(--glass-blur);
        -webkit-backdrop-filter: var(--glass-blur);
        box-shadow: var(--glass-shadow),
                    0 0 40px rgba(var(--accent-rgb), 0.08),
                    inset 0 1px 0 var(--glass-hi);
        display: flex; align-items: center; justify-content: space-between;
        position: relative; overflow: hidden;
      }
      .funnel-stage .stage-glass::before {
        content: ""; position: absolute; top: 0; left: 14px; right: 14px; height: 1px;
        background: linear-gradient(90deg, transparent, var(--glass-hi) 30%, var(--glass-hi) 70%, transparent);
      }

      /* Accent glow bar at left edge */
      .funnel-stage .stage-glass::after {
        content: ""; position: absolute; top: 20%; left: 0; width: 3px; bottom: 20%;
        border-radius: 2px;
        background: linear-gradient(to bottom, transparent, rgba(var(--accent-rgb), 0.70), transparent);
        box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.55);
      }

      .funnel-stage .stage-label {
        font-family: var(--font-display); font-weight: var(--wt-semi);
        font-size: 32px; color: var(--white); letter-spacing: var(--track-snug);
        line-height: 1.2; padding-left: 18px;
      }
      .funnel-stage .stage-pct {
        font-family: var(--font-mono); font-weight: 700;
        font-size: 34px; color: var(--accent);
        letter-spacing: 0.04em; text-shadow: var(--textglow-accent);
        flex-shrink: 0; margin-left: 20px;
      }

      /* Connector arrow between stages */
      .funnel-conn {
        width: 2px; height: 18px;
        background: linear-gradient(to bottom, rgba(var(--accent-rgb), 0.60), rgba(var(--accent-rgb), 0.30));
        box-shadow: 0 0 6px rgba(var(--accent-rgb), 0.40);
        transform-origin: top center;
        position: relative;
      }
      /* small chevron at the bottom of each connector */
      .funnel-conn::after {
        content: "";
        position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%);
        width: 0; height: 0;
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-top: 6px solid rgba(var(--accent-rgb), 0.70);
        filter: drop-shadow(0 0 4px rgba(var(--accent-rgb), 0.65));
      }

      #t1-ov-funnel .vignette {
        position: absolute; inset: 0; pointer-events: none; z-index: 6;
        background: var(--vignette);
      }
      #t1-ov-funnel .grain {
        position: absolute; inset: -40px; background: var(--tex-grain);
        background-size: 200px 200px; mix-blend-mode: overlay; opacity: 0.10;
        pointer-events: none; z-index: 7;
      }
    </style>
  </head>
  <body>
    <div id="t1-ov-funnel" data-composition-id="t1-ov-funnel" data-start="0" data-width="1920" data-height="1080">
      <div class="bloom"></div>
      <div class="grid"></div>

      <div class="title-row">
        <div class="title" data-slot="title">The <em>Conversion Funnel</em></div>
      </div>

      <div class="funnel-stack">
        <!-- Stage 1 — widest -->
        <div class="funnel-stage" id="fs1">
          <div class="stage-glass">
            <div class="stage-label" data-slot="f1_label">Awareness</div>
            <div class="stage-pct" data-slot="f1_pct">100%</div>
          </div>
        </div>

        <div class="funnel-conn" id="fconn1"></div>

        <!-- Stage 2 -->
        <div class="funnel-stage" id="fs2">
          <div class="stage-glass">
            <div class="stage-label" data-slot="f2_label">Interest</div>
            <div class="stage-pct" data-slot="f2_pct">62%</div>
          </div>
        </div>

        <div class="funnel-conn" id="fconn2"></div>

        <!-- Stage 3 -->
        <div class="funnel-stage" id="fs3">
          <div class="stage-glass">
            <div class="stage-label" data-slot="f3_label">Decision</div>
            <div class="stage-pct" data-slot="f3_pct">31%</div>
          </div>
        </div>

        <div class="funnel-conn" id="fconn3"></div>

        <!-- Stage 4 — narrowest -->
        <div class="funnel-stage" id="fs4">
          <div class="stage-glass">
            <div class="stage-label" data-slot="f4_label">Action</div>
            <div class="stage-pct" data-slot="f4_pct">12%</div>
          </div>
        </div>
      </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 */
      tl.fromTo("#t1-ov-funnel .grain",
        { backgroundPosition: "0px 0px" },
        { backgroundPosition: "95px 75px", duration: 0.6, ease: "none", repeat: 11, yoyo: true }, 0);

      /* environment */
      tl.from("#t1-ov-funnel .bloom", { autoAlpha: 0, scale: 0.88, transformOrigin: "50% 120%", duration: 1.4, ease: "expo.out" }, 0)
        .from("#t1-ov-funnel .grid",  { autoAlpha: 0, duration: 1.1, ease: "power2.out" }, 0.2)

        /* title */
        .from("#t1-ov-funnel .title", { autoAlpha: 0, y: 28, filter: "blur(14px)", duration: 0.9, ease: "power4.out" }, 0.5)

        /* stage 1 drops in */
        .from("#fs1", { autoAlpha: 0, y: -24, scale: 0.96, filter: "blur(10px)",
          transformOrigin: "50% 50%", duration: 0.80, ease: "back.out(1.4)" }, 1.1)

        /* connector 1 draws */
        .from("#fconn1", { scaleY: 0, transformOrigin: "50% 0%", duration: 0.25, ease: "power2.out" }, 1.80)

        /* stage 2 */
        .from("#fs2", { autoAlpha: 0, y: -20, scale: 0.96, filter: "blur(10px)",
          transformOrigin: "50% 50%", duration: 0.75, ease: "back.out(1.4)" }, 1.95)

        /* connector 2 */
        .from("#fconn2", { scaleY: 0, transformOrigin: "50% 0%", duration: 0.25, ease: "power2.out" }, 2.60)

        /* stage 3 */
        .from("#fs3", { autoAlpha: 0, y: -20, scale: 0.96, filter: "blur(10px)",
          transformOrigin: "50% 50%", duration: 0.75, ease: "back.out(1.4)" }, 2.75)

        /* connector 3 */
        .from("#fconn3", { scaleY: 0, transformOrigin: "50% 0%", duration: 0.25, ease: "power2.out" }, 3.40)

        /* stage 4 — last, accent emphasis */
        .from("#fs4", { autoAlpha: 0, y: -20, scale: 0.96, filter: "blur(10px)",
          transformOrigin: "50% 50%", duration: 0.75, ease: "back.out(1.4)" }, 3.55)

        /* breathing glow on last stage pct — "the result" moment */
        .to("#fs4 .stage-pct", {
          textShadow: "0 0 28px rgba(55,189,248,0.90), 0 0 70px rgba(55,189,248,0.50)",
          duration: 1.2, ease: "sine.inOut", repeat: 2, yoyo: true
        }, 4.5)

        /* hold drift — funnel sinks slightly for cinematic feel */
        .to("#t1-ov-funnel .funnel-stack", { y: -10, duration: 4.5, ease: "sine.inOut" }, 2.5)

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

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