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.

11.5 KB
Raw Blame
<!doctype html>
<!--
  KALLAWAY · tier1 · stat · TICKERSTAT
  Stock-ticker-style value display. A big number counts up centre-screen, flanked
  by an up/down glow arrow and a percent-change chip. Neon green for positive
  delta, alert-red for negative. Glass panel behind the value block; scan-line
  rule above it for the "terminal" vibe.
  Slots: kicker (~28 chars uppercase), stat (main value e.g. "$4,200"),
         label (~60 chars), source (~40 chars).
-->
<html>
  <head>
    <meta charset="utf-8" />
    <link rel="stylesheet" href="../../tokens.css" />
    <style>
      html, body { margin: 0; }

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

      #t1-stat-ticker .bloom {
        position: absolute; inset: 0; background: var(--bloom-bottom); z-index: 1;
      }
      #t1-stat-ticker .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% 100% at 50% 60%, #000 35%, transparent 80%);
                mask-image: radial-gradient(120% 100% at 50% 60%, #000 35%, transparent 80%);
      }

      /* Horizontal scan rule */
      #t1-stat-ticker .scan-rule {
        position: absolute; left: var(--pad); right: var(--pad);
        top: 318px; height: 1.5px;
        background: linear-gradient(90deg,
          transparent 0%,
          rgba(var(--accent-rgb), 0.55) 18%,
          rgba(var(--accent-rgb), 0.90) 50%,
          rgba(var(--accent-rgb), 0.55) 82%,
          transparent 100%);
        box-shadow: 0 0 12px 2px rgba(var(--accent-rgb), 0.45);
        z-index: 3;
      }

      /* Glass panel behind value block */
      #t1-stat-ticker .glass-panel {
        position: absolute;
        left: 50%; top: 300px;
        transform: translateX(-50%);
        width: 1100px; height: 430px;
        background: var(--glass-bg);
        backdrop-filter: var(--glass-blur);
        border: 1.5px solid var(--glass-border);
        border-top: 1.5px solid var(--glass-hi);
        border-radius: var(--radius);
        box-shadow: var(--glass-shadow);
        z-index: 2;
      }

      /* Stage — centred above the glass */
      #t1-stat-ticker .stage {
        position: absolute; left: 0; right: 0; top: 0; bottom: 0;
        display: flex; flex-direction: column;
        align-items: center; justify-content: center;
        z-index: 4; gap: 0;
      }

      #t1-stat-ticker .kicker {
        font-family: var(--font-mono);
        font-size: var(--size-label);
        font-weight: var(--wt-bold);
        letter-spacing: var(--track-wide);
        text-transform: uppercase;
        color: var(--accent);
        text-shadow: var(--textglow-accent);
        margin-bottom: 36px;
      }

      /* Value row: arrow · stat · change chip */
      #t1-stat-ticker .value-row {
        display: flex; align-items: center; gap: 40px;
        margin-bottom: 30px;
      }

      /* Up arrow SVG glow */
      #t1-stat-ticker .arrow-wrap {
        display: flex; align-items: center; justify-content: center;
        width: 80px; height: 80px;
      }
      #t1-stat-ticker .arrow-svg {
        width: 72px; height: 72px;
        filter: drop-shadow(0 0 14px rgba(55, 230, 140, 0.85)) drop-shadow(0 0 36px rgba(55, 230, 140, 0.45));
      }

      /* Big stat number */
      #t1-stat-ticker .stat {
        font-family: var(--font-display);
        font-weight: var(--wt-black);
        font-size: 160px;
        line-height: 1;
        letter-spacing: var(--track-tight);
        background: linear-gradient(155deg, #ffffff 20%, rgba(var(--accent-rgb), 0.85) 80%);
        -webkit-background-clip: text; background-clip: text;
        -webkit-text-fill-color: transparent;
        filter: drop-shadow(0 0 22px rgba(var(--accent-rgb), 0.55));
      }

      /* Percent change chip */
      #t1-stat-ticker .change-chip {
        display: flex; flex-direction: column; align-items: center; gap: 4px;
      }
      #t1-stat-ticker .change-pct {
        font-family: var(--font-mono);
        font-size: 48px;
        font-weight: var(--wt-bold);
        color: #37E68C;   /* neon green — positive delta */
        text-shadow: 0 0 16px rgba(55, 230, 140, 0.70), 0 0 40px rgba(55, 230, 140, 0.35);
        letter-spacing: 0.04em;
      }
      #t1-stat-ticker .change-label {
        font-family: var(--font-mono);
        font-size: var(--size-tiny);
        letter-spacing: 0.16em;
        text-transform: uppercase;
        color: rgba(55, 230, 140, 0.60);
      }

      #t1-stat-ticker .label {
        font-family: var(--font-body);
        font-size: var(--size-body);
        font-weight: var(--wt-med);
        color: var(--text-dim);
        text-align: center;
        max-width: 900px;
        line-height: 1.45;
        margin-top: 10px;
      }
      #t1-stat-ticker .label em {
        font-style: normal; color: var(--text); text-shadow: var(--textglow);
      }

      /* Ticker tape — scrolling fine text below stat */
      #t1-stat-ticker .ticker-tape {
        position: absolute; left: 0; right: 0; bottom: 136px;
        height: 40px; overflow: hidden;
        border-top: 1px solid rgba(var(--accent-rgb), 0.18);
        border-bottom: 1px solid rgba(var(--accent-rgb), 0.18);
        z-index: 5;
      }
      #t1-stat-ticker .ticker-inner {
        display: flex; align-items: center;
        height: 100%;
        white-space: nowrap;
        font-family: var(--font-mono);
        font-size: 17px;
        letter-spacing: 0.14em;
        color: rgba(var(--accent-rgb), 0.50);
        /* Static — scroll is a finite GSAP tween, not CSS animation */
        transform: translateX(0);
      }

      #t1-stat-ticker .source {
        position: absolute; left: var(--pad); bottom: 44px;
        font-family: var(--font-mono); font-size: var(--size-tiny);
        font-weight: var(--wt-reg); letter-spacing: 0.12em;
        text-transform: uppercase; color: var(--text-faint); z-index: 5;
      }

      #t1-stat-ticker .vignette {
        position: absolute; inset: 0; pointer-events: none; z-index: 6;
        background: var(--vignette);
      }
      #t1-stat-ticker .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-stat-ticker" data-composition-id="t1-stat-ticker"
         data-start="0" data-width="1920" data-height="1080">
      <div class="bloom"></div>
      <div class="grid"></div>

      <div class="glass-panel"></div>
      <div class="scan-rule"></div>

      <div class="stage">
        <div class="kicker" data-slot="kicker">AVG. REVENUE PER COURSE · Q2 2026</div>

        <div class="value-row">
          <!-- Up arrow -->
          <div class="arrow-wrap" id="t1-stat-ticker-arrow">
            <svg class="arrow-svg" viewBox="0 0 72 72" fill="none" xmlns="http://www.w3.org/2000/svg">
              <path d="M36 10 L60 46 H44 V62 H28 V46 H12 Z"
                fill="#37E68C" fill-opacity="0.92"/>
            </svg>
          </div>

          <div class="stat" id="t1-stat-ticker-num" data-slot="stat">$4,200</div>

          <div class="change-chip" id="t1-stat-ticker-chip">
            <div class="change-pct">+38%</div>
            <div class="change-label">YOY</div>
          </div>
        </div>

        <div class="label" data-slot="label">average revenue generated per enrolled learner — <em>up 38% year-over-year</em></div>
      </div>

      <!-- Scrolling ticker tape -->
      <div class="ticker-tape">
        <div class="ticker-inner" id="t1-stat-ticker-tape">
          &nbsp;&nbsp;&nbsp;COMPLETION RATE +12%&nbsp;&nbsp;·&nbsp;&nbsp;NEW ENROLMENTS +24%&nbsp;&nbsp;·&nbsp;&nbsp;CERT PASS RATE 91%&nbsp;&nbsp;·&nbsp;&nbsp;NPS SCORE 74&nbsp;&nbsp;·&nbsp;&nbsp;LTV $9,400&nbsp;&nbsp;·&nbsp;&nbsp;CHURN 2.1%&nbsp;&nbsp;·&nbsp;&nbsp;COMPLETION RATE +12%&nbsp;&nbsp;·&nbsp;&nbsp;NEW ENROLMENTS +24%&nbsp;&nbsp;·&nbsp;&nbsp;CERT PASS RATE 91%&nbsp;&nbsp;·&nbsp;&nbsp;NPS SCORE 74&nbsp;&nbsp;·&nbsp;&nbsp;LTV $9,400&nbsp;&nbsp;·&nbsp;&nbsp;CHURN 2.1%&nbsp;&nbsp;&nbsp;
        </div>
      </div>

      <div class="source" data-slot="source">SOURCE · PLATFORM ANALYTICS 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 });

      const numEl  = document.getElementById("t1-stat-ticker-num");
      const tape   = document.getElementById("t1-stat-ticker-tape");

      /* Target value — parse digits from placeholder */
      const targetVal = 4200;

      /* ambient grain flicker */
      tl.fromTo("#t1-stat-ticker .grain",
        { backgroundPosition: "0px 0px" },
        { backgroundPosition: "95px 70px", duration: 0.6, ease: "none", repeat: 11, yoyo: true }, 0);

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

        /* glass panel slides up */
        .from("#t1-stat-ticker .glass-panel",
          { autoAlpha: 0, y: 40, duration: 0.9, ease: "power4.out" }, 0.35)

        /* scan rule draws in */
        .from("#t1-stat-ticker .scan-rule",
          { scaleX: 0, transformOrigin: "50% 50%", duration: 0.7, ease: "power3.out" }, 0.50)

        /* kicker */
        .from("#t1-stat-ticker .kicker",
          { autoAlpha: 0, y: 16, filter: "blur(8px)", duration: 0.7, ease: "power3.out" }, 0.55)

        /* arrow slams in with spring */
        .from("#t1-stat-ticker-arrow",
          { autoAlpha: 0, y: 30, scale: 0.6, transformOrigin: "50% 50%",
            duration: 0.65, ease: "back.out(1.6)" }, 0.85)

        /* count-up: $0 → $4,200 */
        .to({ val: 0 }, {
          val: targetVal,
          duration: 1.6, ease: "power2.out",
          onUpdate: function () {
            const v = Math.round(this.targets()[0].val);
            numEl.textContent = "$" + v.toLocaleString();
          }
        }, 0.90)

        /* stat reveal (autoAlpha so gradient text appears) */
        .from("#t1-stat-ticker-num",
          { autoAlpha: 0, scale: 0.85, transformOrigin: "50% 50%", duration: 0.8, ease: "power3.out" }, 0.88)

        /* change chip drops in */
        .from("#t1-stat-ticker-chip",
          { autoAlpha: 0, x: -24, duration: 0.6, ease: "power3.out" }, 1.20)

        /* label */
        .from("#t1-stat-ticker .label",
          { autoAlpha: 0, y: 20, filter: "blur(6px)", duration: 0.8, ease: "power3.out" }, 1.80)

        /* ticker tape scrolls left (finite — covers ~6s hold) */
        .from("#t1-stat-ticker .ticker-tape",
          { autoAlpha: 0, duration: 0.5, ease: "power2.out" }, 2.20)
        .to("#t1-stat-ticker-tape",
          { x: -920, duration: 5.5, ease: "none" }, 2.25)

        /* source */
        .from("#t1-stat-ticker .source",
          { autoAlpha: 0, duration: 0.6, ease: "power2.out" }, 2.40)

        /* neon pulse on arrow */
        .to("#t1-stat-ticker-arrow",
          { filter: "drop-shadow(0 0 22px rgba(55,230,140,0.9))",
            duration: 1.2, ease: "sine.inOut", repeat: 2, yoyo: true }, 2.60)

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

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