Skip to content
animorio
IT
Back to the library

Deploy on scroll

Scroll, TextGSAP, CSS onlyMediumCompressed weight: Demo 10 KBGSAP + ScrollTrigger 45 KBLenis 5.3 KBFreeDownload the zip

Scroll inside the preview

The deploy section of the landing of a made-up hosting platform, Kestrel, in the premium style of the interface pieces: the stage stays still and, as you scroll, a push to main goes through its four stages on the dark deploy card. Build, Tests, Preview, Production: the active stage spins its violet ring and glows, then fills and draws its tick with a small pop, and the line to the next stage fills with a running light. The log writes its lines and scrolls them up, the duration, the cache hits and the response time count, the eighteen regions light up one after another. The second title line and the status at the top roll to new words at every stage; at the end the status turns Ready in mint green, a light runs round the edge and the Visit button rises.

The code

A folder that runs on its own: index.html, style.css, script.js and the libraries from a CDN. The React and Vue tabs hold the same demo as a ready component, which switches its animations off when it leaves the page.

<!doctype html>
<!--
  "Deploy on scroll" from Animorio · https://animorio.com
  License: free on your own sites and your clients’ sites, paid work included.
  Not for resale, redistribution, templates or code collections · https://animorio.com/en/license/
-->
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Kestrel, a deploy going live</title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/mona-sans@5.3.0/wdth.css">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/jetbrains-mono@5.3.0/index.css">
  <link rel="stylesheet" href="style.css">
</head>
<body>
  <!-- the deploy section of a landing for a made-up hosting platform, Kestrel. A sticky stage: as you scroll, one push to
       main goes through its four stages on the deploy card: build, tests, preview, production. The active stage spins,
       then fills and ticks; the line to the next one fills with a running light; the log writes its lines and scrolls; the
       duration, the cache hits and the response time count; the regions light up one by one. At the end the status turns
       Ready, a light runs once round the card and the Visit pill rises. Scrolling back undoes the deploy -->
  <section class="corsa" data-corsa>
    <div class="palco">
      <div class="alone" data-alone aria-hidden="true"><span class="alone__viola"></span><span class="alone__menta" data-menta></span></div>

      <p class="occhiello">
        <svg viewBox="0 0 16 16" aria-hidden="true"><path d="M2.5 11.5 8 3.5l5.5 8"/><path d="M5.2 11.5 8 7.4l2.8 4.1"/></svg>
        Kestrel <span class="occhiello__sep">/</span> Deployments
      </p>
      <h2 class="titolo">Push to main.<br><span class="titolo__due"><span class="titolo__in" data-riga>Watch it ship.</span></span></h2>

      <figure class="deploy" data-deploy>
        <span class="deploy__luce" aria-hidden="true"></span>
        <span class="deploy__giro" data-giro aria-hidden="true"></span>

        <div class="testa">
          <span class="repo">
            <svg class="repo__segno" viewBox="0 0 16 16" aria-hidden="true"><circle cx="4.5" cy="3.6" r="1.6"/><circle cx="4.5" cy="12.4" r="1.6"/><circle cx="11.5" cy="6" r="1.6"/><path d="M4.5 5.2v5.6M11.5 7.6c0 2.2-2.2 2.6-7 3.2"/></svg>
            <span class="repo__nome">storefront</span>
            <span class="ramo">main</span>
            <span class="hash">a3f9c21</span>
          </span>
          <span class="stato" data-stato>
            <svg class="stato__giro" viewBox="0 0 16 16" aria-hidden="true" data-stato-giro><circle cx="8" cy="8" r="5.5" class="stato__traccia"/><circle cx="8" cy="8" r="5.5" class="stato__arco"/></svg>
            <svg class="stato__spunta" viewBox="0 0 16 16" aria-hidden="true"><path d="M4.4 8.3 6.9 10.7 11.7 5.6" data-stato-spunta/></svg>
            <span class="stato__finestra"><span class="stato__in" data-stato-testo>Queued</span></span>
          </span>
        </div>
        <p class="commit">Add saved carts to checkout <span class="commit__chi">pushed 12s ago</span></p>

        <ol class="tappe">
          <li class="tappa" data-tappa>
            <span class="nodo" data-nodo>
              <svg class="nodo__giro" viewBox="0 0 40 40" aria-hidden="true" data-giro-nodo><circle cx="20" cy="20" r="18.5"/></svg>
              <svg class="nodo__icona" viewBox="0 0 20 20" aria-hidden="true" data-icona><path d="M10 2.8 16.2 6.4v7.2L10 17.2 3.8 13.6V6.4z"/><path d="M3.8 6.4 10 10l6.2-3.6M10 10v7.2"/></svg>
              <svg class="nodo__spunta" viewBox="0 0 20 20" aria-hidden="true"><path d="M5.6 10.3 8.6 13.2 14.6 7.1" data-spunta/></svg>
            </span>
            <span class="tappa__nome" data-nome>Build</span>
            <span class="tappa__dato" data-dato>Waiting</span>
          </li>
          <li class="tappa" data-tappa>
            <span class="nodo" data-nodo>
              <svg class="nodo__giro" viewBox="0 0 40 40" aria-hidden="true" data-giro-nodo><circle cx="20" cy="20" r="18.5"/></svg>
              <svg class="nodo__icona" viewBox="0 0 20 20" aria-hidden="true" data-icona><path d="M7.6 3.2h4.8M8.4 3.2v4.6L4.2 15.1c-.5.9.1 1.9 1.1 1.9h9.4c1 0 1.6-1 1.1-1.9L11.6 7.8V3.2"/><path d="M6 12h8"/></svg>
              <svg class="nodo__spunta" viewBox="0 0 20 20" aria-hidden="true"><path d="M5.6 10.3 8.6 13.2 14.6 7.1" data-spunta/></svg>
            </span>
            <span class="tappa__nome" data-nome>Tests</span>
            <span class="tappa__dato" data-dato>Waiting</span>
          </li>
          <li class="tappa" data-tappa>
            <span class="nodo" data-nodo>
              <svg class="nodo__giro" viewBox="0 0 40 40" aria-hidden="true" data-giro-nodo><circle cx="20" cy="20" r="18.5"/></svg>
              <svg class="nodo__icona" viewBox="0 0 20 20" aria-hidden="true" data-icona><path d="M1.8 10S4.8 4.6 10 4.6 18.2 10 18.2 10 15.2 15.4 10 15.4 1.8 10 1.8 10z"/><circle cx="10" cy="10" r="2.6"/></svg>
              <svg class="nodo__spunta" viewBox="0 0 20 20" aria-hidden="true"><path d="M5.6 10.3 8.6 13.2 14.6 7.1" data-spunta/></svg>
            </span>
            <span class="tappa__nome" data-nome>Preview</span>
            <span class="tappa__dato" data-dato>Waiting</span>
          </li>
          <li class="tappa" data-tappa>
            <span class="nodo" data-nodo>
              <svg class="nodo__giro" viewBox="0 0 40 40" aria-hidden="true" data-giro-nodo><circle cx="20" cy="20" r="18.5"/></svg>
              <svg class="nodo__icona" viewBox="0 0 20 20" aria-hidden="true" data-icona><circle cx="10" cy="10" r="7.2"/><path d="M2.8 10h14.4M10 2.8c2 2 3 4.4 3 7.2s-1 5.2-3 7.2c-2-2-3-4.4-3-7.2s1-5.2 3-7.2z"/></svg>
              <svg class="nodo__spunta" viewBox="0 0 20 20" aria-hidden="true"><path d="M5.6 10.3 8.6 13.2 14.6 7.1" data-spunta/></svg>
            </span>
            <span class="tappa__nome" data-nome>Production</span>
            <span class="tappa__dato" data-dato>Waiting</span>
          </li>
        </ol>

        <div class="log" data-log>
          <div class="log__in" data-log-in>
            <p class="riga" data-riga-log data-fase="0"><span class="riga__ora">0:01</span>Cloning storefront at a3f9c21</p>
            <p class="riga" data-riga-log data-fase="0"><span class="riga__ora">0:04</span>Restored build cache, 412 MB</p>
            <p class="riga" data-riga-log data-fase="0"><span class="riga__ora">0:38</span>Compiled 312 modules in 31.8s</p>
            <p class="riga" data-riga-log data-fase="1"><span class="riga__ora">0:39</span>Running 214 tests on 6 workers</p>
            <p class="riga" data-riga-log data-fase="1"><span class="riga__ora">0:58</span>214 passed, 0 failed</p>
            <p class="riga" data-riga-log data-fase="2"><span class="riga__ora">1:01</span>Preview at storefront-a3f9.kestrel.app</p>
            <p class="riga" data-riga-log data-fase="2"><span class="riga__ora">1:04</span>Checks passed, promoting</p>
            <p class="riga" data-riga-log data-fase="3"><span class="riga__ora">1:06</span>Rolling out to 18 regions</p>
            <p class="riga" data-riga-log data-fase="3"><span class="riga__ora">1:10</span>Warmed 2,406 routes</p>
            <p class="riga riga--fine" data-riga-log data-fase="3"><span class="riga__ora">1:12</span>Live on storefront.shop</p>
          </div>
        </div>

        <div class="regioni">
          <span class="regioni__nome">Regions</span>
          <span class="regioni__barre" data-barre></span>
          <span class="regioni__conto" data-conto>0 of 18</span>
        </div>

        <dl class="numeri">
          <div class="numero"><dt>Duration</dt><dd data-durata>0:00</dd></div>
          <div class="numero"><dt>Cache hits</dt><dd data-cache>0%</dd></div>
          <div class="numero"><dt>p95 response</dt><dd class="numero__riga"><span data-p95>0 ms</span><svg class="curva" viewBox="0 0 60 20" preserveAspectRatio="none" aria-hidden="true"><path d="M1 4 C9 5 12 9 18 10 S28 13 33 15 S45 16 50 17 S56 17 59 17" pathLength="100" data-curva/></svg></dd></div>
        </dl>

        <div class="piede" data-piede>
          <span class="url" data-url>
            <svg viewBox="0 0 16 16" aria-hidden="true"><path d="M6.6 9.4 9.4 6.6"/><path d="M7.4 4.6 8.6 3.4a2.6 2.6 0 0 1 3.7 3.7L11.1 8.3"/><path d="M8.6 11.4 7.4 12.6a2.6 2.6 0 0 1-3.7-3.7L4.9 7.7"/></svg>
            storefront.shop
          </span>
          <a class="visita" href="#" data-visita><span class="visita__fondo" aria-hidden="true"></span>
            <span class="visita__testo">Visit</span>
            <svg viewBox="0 0 16 16" aria-hidden="true"><path d="M5 11 11 5M6.4 5H11v4.6"/></svg></a>
        </div>
      </figure>
    </div>
  </section>
  <footer class="piede-pagina">Kestrel is a made-up hosting platform.</footer>

  <script src="https://cdn.jsdelivr.net/npm/gsap@3.15.0/dist/gsap.min.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/gsap@3.15.0/dist/ScrollTrigger.min.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/lenis@1.3.26/dist/lenis.min.js"></script>
  <script src="script.js"></script>
</body>
</html>

Playground

Change values, colours and text with the controls and watch the animation respond live. Or write in the code yourself. Then download the folder with your changes.

67 values to change

Or ask your AI assistant for it

With the Animorio connector, Claude Code, ChatGPT, Cursor or VS Code take it from here, guide included, and fit it into your project. Paste this request:

Take “Deploy on scroll” from Animorio and fit it into my site
Platform licenseFree on your sites and your clients’ sites. Want it inside a website builder, a template platform or a client dashboard? There’s a license for agencies and platforms.

What it does

On an almost black ground with a light grain and a violet glow behind sits the deploy section of Kestrel, a made-up hosting platform: at the top a pill with the Kestrel mark, Kestrel and Deployments, then the two-line title, Push to main. in white and Watch it ship. in grey, and below it the dark deploy card. In the card header there is the drawn branch, storefront, the violet main pill, the commit a3f9c21 and on the right the Queued status with a small ring; below, the commit message, Add saved carts to checkout. Then four stages in a row, each with its round node and its drawn icon (the build cube, the test tube, the preview eye, the production globe), the name and a figure below, all grey and waiting. Further down the log in terminal type, the bar of the eighteen regions in thin notches, three figures (Duration, Cache hits, p95 response) and at the bottom the address storefront.shop. As you scroll, the active stage gets its spinning violet ring, a soft halo and its name in white; its figure counts (the build seconds, the tests passed), the log lines come in from the left and scroll up, the duration runs from 0:00 to 1:12 and the cache climbs to 94%. When the stage is done the ring stops, the node fills with violet with a small pop, the icon gives way to a tick that draws itself and the line to the next stage fills while a white light runs ahead of it. At every stage the second title line rolls (Built in 38 seconds., Tested on every push., A link for every branch., Live in 18 regions.) and so does the status (Building, Testing, Preview, Promoting). In production the region notches light up violet one after another with a small jump, the count climbs to 18 of 18, the response time drops from 186 to 42 ms and its curve draws itself beside it. At the end the last node turns mint green, the notches go green in a wave, the status becomes Ready with a tick, a green light runs once round the card edge, the glow behind shifts from violet to green, the address lights up and the green Visit button rises; under the pointer it swells with a bounce and widens its label. A faint light follows the pointer over the card. Scrolling back undoes the deploy.

How it works

One timeline, and the figures read from its time

The whole deploy is a paused GSAP timeline, with one stretch for each stage, and ScrollTrigger drives it back and forth with scrub while the stage stays still with position: sticky. The figures (duration, cache, regions, response time, the values under the stages) are not tweens: a function works them out from the timeline’s time on every update, so scrolling back counts them back without mistakes.

The log scrolled by a variable

The log lines sit in a window three lines tall; the list inside moves with translateY(calc(var(--su) * -1 * var(--riga))) and GSAP only animates the number --su. That way the shift stays right even when the window changes size, with no pixels to recompute.

The light running round the edge

Over the card sits a layer with an almost fully transparent conic-gradient and a green tail, cut with mask-composite so only the one-pixel edge is left: GSAP animates the gradient’s start angle (--a) from 0 to 360 degrees, and the light runs once round.

Values to change

NameFileDefaultWhat it changes
RIDEscript.js1How much scroll the whole deploy takes: 2 is twice as long.
SCRUBscript.js0.6How far the card lags behind the scroll, in seconds.
POPscript.js1.1How much each node swells when it ticks (1 for none).
GLOWscript.js1How strong the halo under the active stage is (0 none).
SPINscript.js1.1The seconds for one turn of the spinning rings.
REGIONSscript.js18How many regions the deploy rolls out to (the notches of the bar).
BEAMscript.js11: a light runs round the card when it goes live; 0: no light.
--violastyle.css#8f7cffThe violet of the stages, the rings and the lines.
--mentastyle.css#5fe0aaThe mint green of production, of Ready and of the button.
--fondostyle.css#0b0c0fThe almost black of the ground.

Try them in the Playground

When to use it

For the landing of a developer platform, a hosting service or a software product that wants to show how fast it is to go live: whoever scrolls watches a real deploy go from build to production, with the figures to prove it, and finds the button at the end.

On phones

The same animation with adapted measures: title and card are sized on the height too and all fit in the stage; below 520 pixels wide the commit hash and the push time hide, below 470 pixels tall the commit message hides.

With reduced motion

No motion: the deploy is already live, with the ticks, the log, the regions lit, the final figures and the button, and it appears with a fade.

Pitfalls

  • GSAP does not read CSS variables inside colours it animates: the :root colours are read once with getComputedStyle and passed already resolved.
  • With Mona Sans no tabular-nums on the figures: the tabular zero has a slash; the counting figures are worked out from the timeline’s time and do not jump in width because they sit in fixed columns.

Libraries

GSAP 3.15.0, ScrollTrigger 3.15.0, Lenis 1.3.26, Mona Sans (font variabile) 5.3.0, JetBrains Mono (font variabile) 5.3.0.

Compressed with gzip, the three demo files weigh 10 KB; the libraries: GSAP + ScrollTrigger 45 KB, Lenis 5.3 KB.

Testing

Tested on 15 November 2026

  • Desktop: Done
  • Phone: Done
  • Reduced motion: Done
  • Safari on iPhone: To do

License

Use it in your own projects and in your clients’ projects. Do not resell it or redistribute it as is. GSAP stays under its own Standard license. Full license.

All animations