Skip to content

A Claude Code skill that reverse-engineers any animation frame by frame, then proves the copy moves the same.

12.9 KB
Raw Blame
<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>turborepo.com hero gauge and counter, rebuilt with reanimate</title>
  <meta name="robots" content="noindex">
  <!--
    The hero of turborepo.com: a speedometer whose needle revs toward the red end while the pointer is on it
    and drops back when it leaves, and below it the stats row, whose "compute hours saved" number rolls up
    from the server-rendered figure to the live one once the page has loaded, then ticks up every 10 s.
    The gauge is turborepo.com's own SVG; src/hero.js ports the page's spring (stiffness 520, damping 22)
    and its 1.2 s easeOutCubic counter tween, frame for frame. The live figure is replaced by the one read
    from turborepo.com on 30 Oct 2026 and grows at the rate measured then. Plain HTML + ES modules.
    ?embed: the gauge and the counter alone, for an iframe (the reanimate site shows it this way).
  -->
  <script>if (new URLSearchParams(location.search).has("embed")) document.documentElement.dataset.embed = "";</script>
  <link rel="preload" href="./assets/fonts/Geist-Variable.woff2" as="font" type="font/woff2" crossorigin>
  <link rel="preload" href="./assets/fonts/GeistMono-Variable.woff2" as="font" type="font/woff2" crossorigin>
  <link rel="stylesheet" href="./src/hero.css">
  <script type="module" src="./src/hero.js"></script>
</head>
<body>
  <main class="tr-page">
    <div class="tr-container">
      <section class="tr-hero">
        <div class="tr-hero__copy">
          <h1 class="tr-title">Your codebase, faster</h1>
          <p class="tr-lede">Turborepo is the build system for coding agents. Developers, CI, and agents never do the same work twice.</p>
          <div class="tr-install">
            <div class="tr-toggle">
              <button aria-pressed="true" class="tr-toggle__button" data-active="" data-command="npm i turbo" type="button">For humans</button>
              <div aria-hidden="true" class="tr-toggle__divider"></div>
              <button aria-pressed="false" class="tr-toggle__button" data-command="npx skills add vercel/turborepo" type="button">For agents</button>
            </div>
            <div class="group material-small tr-command">
              <span class="tr-command__prompt">$</span>
              <span class="tr-command__text"><span aria-hidden="true" class="tr-command__sizer">npm i turbo</span><span class="tr-command__value">npm i turbo</span></span>
              <button aria-label="Copy command" class="tr-command__copy" type="button"><span class="tr-command__icon"><svg data-slot="geist-icon" height="16" style="color:currentColor" viewBox="0 0 16 16" width="16" class="block"><path clip-rule="evenodd" d="M8.25 2c.14 0 .25.11.25.25V3H10v-.75C10 1.28 9.22.5 8.25.5h-5.5C1.78.5 1 1.28 1 2.25v7.5c0 .97.78 1.75 1.75 1.75H4.5V10H2.75a.25.25 0 0 1-.25-.25v-7.5c0-.14.11-.25.25-.25zm5 4c.14 0 .25.11.25.25v7.5q-.02.23-.25.25h-5.5a.25.25 0 0 1-.25-.25v-7.5c0-.14.11-.25.25-.25zm0 9.5c.97 0 1.75-.78 1.75-1.75v-7.5c0-.97-.78-1.75-1.75-1.75h-5.5C6.78 4.5 6 5.28 6 6.25v7.5c0 .97.78 1.75 1.75 1.75z" fill="currentColor" fill-rule="evenodd"></path></svg></span></button>
            </div>
          </div>
        </div>
        <div class="tr-hero__visual">
          <!-- turborepo.com's wrapper classes are kept so the same selectors find the gauge on both pages -->
          <div class="relative w-full max-w-[500px] aspect-[24/17] tr-gauge"><svg aria-hidden="true" class="absolute inset-0 size-full overflow-visible" viewBox="0 0 480 340"><defs><linearGradient id="remote-cache-gauge-gradient" gradientUnits="userSpaceOnUse" x1="46.4" x2="433.6" y1="310.5" y2="310.5"><stop offset="0" stop-color="#0196FF"></stop><stop offset="1" stop-color="#FF1E56"></stop></linearGradient><linearGradient id="remote-cache-gauge-inner-gradient" gradientUnits="userSpaceOnUse" x1="46.4" x2="433.6" y1="310.5" y2="310.5"><stop offset="0" stop-color="var(--remote-cache-inner-start)"></stop><stop offset="1" stop-color="var(--remote-cache-inner-end)"></stop></linearGradient><linearGradient id="remote-cache-gauge-pointer-gradient" gradientUnits="userSpaceOnUse" x1="236.58" x2="243.42" y1="230.6" y2="249.4"><stop offset="0" stop-color="var(--ds-gray-700)"></stop><stop offset="0.42" stop-color="var(--ds-gray-1000)"></stop><stop offset="1" stop-color="var(--ds-gray-800)"></stop></linearGradient><radialGradient id="remote-cache-gauge-dot-gradient" gradientUnits="userSpaceOnUse" cx="234" cy="233" fx="234" fy="233" r="27"><stop offset="0" stop-color="var(--ds-gray-700)"></stop><stop offset="0.48" stop-color="var(--ds-gray-1000)"></stop><stop offset="1" stop-color="var(--ds-gray-700)"></stop></radialGradient><radialGradient id="remote-cache-gauge-pin-gradient" cx="35%" cy="30%"><stop offset="0" stop-color="var(--ds-gray-100)"></stop><stop offset="1" stop-color="var(--ds-gray-400)"></stop></radialGradient><radialGradient id="remote-cache-gauge-fade" cx="240" cy="240" gradientUnits="userSpaceOnUse" r="197"><stop offset="75%" stop-color="white" stop-opacity="0"></stop><stop offset="81%" stop-color="white" stop-opacity="0.03"></stop><stop offset="87%" stop-color="white" stop-opacity="0.12"></stop><stop offset="92%" stop-color="white" stop-opacity="0.32"></stop><stop offset="95%" stop-color="white" stop-opacity="0.64"></stop><stop offset="100%" stop-color="white" stop-opacity="1"></stop></radialGradient><mask id="remote-cache-gauge-fade-mask" mask-type="alpha"><rect fill="url(#remote-cache-gauge-fade)" height="340" width="480"></rect></mask><mask id="remote-cache-gauge-segment-mask" mask-type="luminance"><path d="M46.4 310.5a206 206 0 1 1 387.2 0" fill="none" stroke="white" stroke-linecap="butt" stroke-width="120"></path><g stroke="black" stroke-width="2.77"><line x1="102.78" x2="-24.65" y1="212.26" y2="186.5"></line><line x1="137.37" x2="42.08" y1="144.78" y2="56.35"></line><line x1="202.08" x2="166.87" y1="105.23" y2="-19.91"></line><line x1="277.92" x2="313.13" y1="105.23" y2="-19.91"></line><line x1="342.63" x2="437.92" y1="144.78" y2="56.35"></line><line x1="377.22" x2="504.65" y1="212.26" y2="186.5"></line></g></mask><mask id="remote-cache-gauge-inner-indicator-mask" mask-type="alpha"><path d="M54.9 307.4a197 197 0 1 1 370.2 0" fill="none" pathLength="100" stroke="white" stroke-dasharray="80.95 19.05" stroke-linecap="butt" stroke-width="394"></path></mask><mask id="remote-cache-gauge-inner-remainder-mask" mask-type="alpha"><path d="M54.9 307.4a197 197 0 1 1 370.2 0" fill="none" pathLength="100" stroke="white" stroke-dasharray="0 80.95 19.05 0" stroke-linecap="butt" stroke-width="394"></path></mask><linearGradient id="remote-cache-gauge-end-fade" gradientUnits="userSpaceOnUse" x1="0" x2="0" y1="310.5" y2="270"><stop offset="0" stop-color="white" stop-opacity="0"></stop><stop offset="100%" stop-color="white"></stop></linearGradient><mask id="remote-cache-gauge-end-fade-mask" mask-type="alpha"><rect fill="url(#remote-cache-gauge-end-fade)" height="340" width="480"></rect></mask><filter id="remote-cache-gauge-glow" height="160%" width="160%" x="-30%" y="-30%"><feGaussianBlur stdDeviation="2.5"></feGaussianBlur></filter><filter id="remote-cache-gauge-pointer-shadow-blur" height="140%" width="140%" x="-20%" y="-20%"><feGaussianBlur stdDeviation="1.2"></feGaussianBlur></filter></defs><g mask="url(#remote-cache-gauge-end-fade-mask)"><path class="opacity-25 dark:mix-blend-screen dark:opacity-40" d="M46.4 310.5a206 206 0 1 1 387.2 0" fill="none" filter="url(#remote-cache-gauge-glow)" pathLength="100" stroke="url(#remote-cache-gauge-gradient)" stroke-dasharray="80.95 19.05" stroke-linecap="butt" stroke-width="21"></path></g><g mask="url(#remote-cache-gauge-segment-mask)"><g mask="url(#remote-cache-gauge-end-fade-mask)"><path d="M46.4 310.5a206 206 0 1 1 387.2 0" fill="none" stroke="var(--ds-gray-alpha-300)" stroke-linecap="butt" stroke-width="18"></path><g mask="url(#remote-cache-gauge-inner-indicator-mask)"><path class="opacity-30 dark:opacity-25" d="M54.9 307.4a197 197 0 1 1 370.2 0L240 240Z" fill="url(#remote-cache-gauge-inner-gradient)" mask="url(#remote-cache-gauge-fade-mask)"></path></g><g mask="url(#remote-cache-gauge-inner-remainder-mask)"><path class="opacity-30 dark:opacity-20" d="M54.9 307.4a197 197 0 1 1 370.2 0L240 240Z" fill="var(--ds-gray-alpha-500)" mask="url(#remote-cache-gauge-fade-mask)"></path></g><path d="M46.4 310.5a206 206 0 1 1 387.2 0" fill="none" pathLength="100" stroke="url(#remote-cache-gauge-gradient)" stroke-dasharray="80.95 19.05" stroke-linecap="butt" stroke-width="18"></path></g></g><g class="mix-blend-multiply dark:mix-blend-normal" stroke="var(--remote-cache-tick-color)" stroke-width="1"><line x1="58.85" x2="51.14" y1="290.27" y2="292.41"></line><line x1="55.47" x2="47.61" y1="275.94" y2="277.47"></line><line x1="53.22" x2="45.27" y1="261.38" y2="262.29"></line><line x1="52.12" x2="44.12" y1="246.69" y2="246.98"></line><line x1="52.17" x2="44.18" y1="231.97" y2="231.62"></line><line x1="53.38" x2="45.44" y1="217.29" y2="216.32"></line><line x1="59.21" x2="51.52" y1="188.44" y2="186.24"></line><line x1="63.8" x2="56.3" y1="174.44" y2="171.65"></line><line x1="69.47" x2="62.22" y1="160.85" y2="157.48"></line><line x1="76.19" x2="69.22" y1="147.75" y2="143.82"></line><line x1="83.92" x2="77.27" y1="135.21" y2="130.75"></line><line x1="92.6" x2="86.33" y1="123.31" y2="118.34"></line><line x1="112.62" x2="107.2" y1="101.73" y2="95.85"></line><line x1="123.83" x2="118.89" y1="92.18" y2="85.89"></line><line x1="135.76" x2="131.33" y1="83.54" y2="76.89"></line><line x1="148.33" x2="144.43" y1="75.86" y2="68.88"></line><line x1="161.46" x2="158.12" y1="69.19" y2="61.92"></line><line x1="175.07" x2="172.31" y1="63.57" y2="56.06"></line><line x1="203.41" x2="201.85" y1="55.6" y2="47.75"></line><line x1="217.95" x2="217.01" y1="53.3" y2="45.35"></line><line x1="232.64" x2="232.32" y1="52.14" y2="44.15"></line><line x1="247.36" x2="247.68" y1="52.14" y2="44.15"></line><line x1="262.05" x2="262.99" y1="53.3" y2="45.35"></line><line x1="276.59" x2="278.15" y1="55.6" y2="47.75"></line><line x1="304.93" x2="307.69" y1="63.57" y2="56.06"></line><line x1="318.54" x2="321.88" y1="69.19" y2="61.92"></line><line x1="331.67" x2="335.57" y1="75.86" y2="68.88"></line><line x1="344.24" x2="348.67" y1="83.54" y2="76.89"></line><line x1="356.17" x2="361.11" y1="92.18" y2="85.89"></line><line x1="367.38" x2="372.8" y1="101.73" y2="95.85"></line><line x1="387.4" x2="393.67" y1="123.31" y2="118.34"></line><line x1="396.08" x2="402.73" y1="135.21" y2="130.75"></line><line x1="403.81" x2="410.78" y1="147.75" y2="143.82"></line><line x1="410.53" x2="417.78" y1="160.85" y2="157.48"></line><line x1="416.2" x2="423.7" y1="174.44" y2="171.65"></line><line x1="420.79" x2="428.48" y1="188.44" y2="186.24"></line><line x1="426.62" x2="434.56" y1="217.29" y2="216.32"></line><line x1="427.83" x2="435.82" y1="231.97" y2="231.62"></line><line x1="427.88" x2="435.88" y1="246.69" y2="246.98"></line><line x1="426.78" x2="434.73" y1="261.38" y2="262.29"></line><line x1="424.53" x2="432.39" y1="275.94" y2="277.47"></line><line x1="421.15" x2="428.86" y1="290.27" y2="292.41"></line><line x1="416.66" x2="424.18" y1="304.3" y2="307.04"></line></g><g transform="translate(1 2)"><g transform="rotate(178.09 240 240)"><path d="M236.58 230.6 103.74 289.59 243.42 249.4Z" fill="black" fill-opacity="0.22" filter="url(#remote-cache-gauge-pointer-shadow-blur)"></path></g></g><g transform="rotate(178.09 240 240)"><path d="M236.58 230.6 103.74 289.59 243.42 249.4Z" fill="url(#remote-cache-gauge-pointer-gradient)"></path><path d="M236.58 230.6 103.74 289.59" fill="none" stroke="white" stroke-opacity="0.16" stroke-width="0.75"></path></g><g><circle cx="240" cy="240" fill="var(--ds-gray-alpha-500)" r="20"></circle><circle cx="240" cy="240" fill="url(#remote-cache-gauge-dot-gradient)" r="18"></circle><ellipse cx="235" cy="233.5" fill="white" fill-opacity="0.16" rx="7" ry="3" transform="rotate(-25 235 233.5)"></ellipse><circle cx="240" cy="240" fill="url(#remote-cache-gauge-pin-gradient)" r="7" stroke="var(--ds-gray-alpha-500)" stroke-width="1"></circle></g></svg></div>
        </div>
      </section>
      <dl class="tr-stats">
        <div class="min-w-0 tr-stat">
          <dt class="tr-stat__value tr-stat__value--gradient"><span class="inline-block tabular-nums min-w-0 text-[inherit] leading-[inherit] font-[inherit] tracking-[inherit]">12,434,353</span></dt>
          <dd class="tr-stat__label">Compute hours saved<span class="tr-wide-only"> with Remote Caching</span></dd>
        </div>
        <div class="min-w-0 tr-stat tr-stat--end">
          <dt class="tr-stat__value">42.5M</dt>
          <dd class="tr-stat__label">Weekly downloads</dd>
        </div>
        <div class="min-w-0 tr-stat tr-stat--end">
          <dt class="tr-stat__value">31.3K</dt>
          <dd class="tr-stat__label">GitHub stars</dd>
        </div>
        <div class="min-w-0 tr-stat tr-stat--end">
          <dt class="tr-stat__value">2</dt>
          <dd class="tr-stat__label">Open issues</dd>
        </div>
      </dl>
    </div>
  </main>
</body>
</html>