Skip to content
animorio
IT
All components

Deploy steps button

Buttons, HoverGSAP, CSS onlyMediumCompressed weight: Demo 9.5 KBGSAP 28 KBFreeDownload the zip

The Deploy button of an invented developer platform, Kestrel, on black: a graphite pill that, once pressed, stretches and splits with a spring into three segments, Build, Test and Deploy. The segments fill with mint one after the other, in jumps, with a spinning ring and a self-drawing tick, while a log line under it changes and the clock runs. Then the seams close and the pill becomes Live, with a drawn globe, the deploy’s short link and a key to copy it.

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 steps button" 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>The Deploy button that splits into a Build, Test and Deploy progress bar</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>
  <main class="stage" data-stage>
    <!-- the Deploy button of a developer platform: the pill splits into three segments,
         Build, Test and Deploy fill one after the other, then they fuse back into Live -->
    <div class="deploy" data-deploy>
      <button class="btn" type="button" data-btn data-autoclic aria-describedby="deploy-log">
        <span class="btn__body" data-body aria-hidden="true"><span class="btn__light"></span></span>

        <span class="segs" data-segs aria-hidden="true">
          <span class="seg" data-seg>
            <span class="seg__fill" data-fill><span class="seg__edge"></span><span class="seg__sheen" data-sheen></span></span>
            <span class="seg__in">
              <svg class="seg__icon" viewBox="0 0 16 16"><circle class="seg__ring" cx="8" cy="8" r="5.6"/><path class="seg__spin" data-spin d="M8 2.4a5.6 5.6 0 0 1 5.6 5.6"/><path class="seg__tick" data-tick d="M5.2 8.3 7.1 10.1 10.9 6"/></svg>
              <span class="seg__name">Build</span>
              <span class="seg__time" data-time>0.0s</span>
            </span>
          </span>
          <span class="seg" data-seg>
            <span class="seg__fill" data-fill><span class="seg__edge"></span><span class="seg__sheen" data-sheen></span></span>
            <span class="seg__in">
              <svg class="seg__icon" viewBox="0 0 16 16"><circle class="seg__ring" cx="8" cy="8" r="5.6"/><path class="seg__spin" data-spin d="M8 2.4a5.6 5.6 0 0 1 5.6 5.6"/><path class="seg__tick" data-tick d="M5.2 8.3 7.1 10.1 10.9 6"/></svg>
              <span class="seg__name">Test</span>
              <span class="seg__time" data-time>0.0s</span>
            </span>
          </span>
          <span class="seg" data-seg>
            <span class="seg__fill" data-fill><span class="seg__edge"></span><span class="seg__sheen" data-sheen></span></span>
            <span class="seg__in">
              <svg class="seg__icon" viewBox="0 0 16 16"><circle class="seg__ring" cx="8" cy="8" r="5.6"/><path class="seg__spin" data-spin d="M8 2.4a5.6 5.6 0 0 1 5.6 5.6"/><path class="seg__tick" data-tick d="M5.2 8.3 7.1 10.1 10.9 6"/></svg>
              <span class="seg__name">Deploy</span>
              <span class="seg__time" data-time>0.0s</span>
            </span>
          </span>
        </span>

        <span class="face face--idle" data-idle>
          <span class="face__label" data-label>Deploy</span>
          <span class="arrow" aria-hidden="true">
            <svg class="arrow__a" data-arrow viewBox="0 0 16 16"><path d="M3 8h9.4M8.6 4.2 12.4 8l-3.8 3.8"/></svg>
            <svg class="arrow__b" data-arrow2 viewBox="0 0 16 16"><path d="M3 8h9.4M8.6 4.2 12.4 8l-3.8 3.8"/></svg>
          </span>
        </span>

        <span class="face face--live" data-live-face aria-hidden="true">
          <svg class="globe" data-globe viewBox="0 0 20 20" aria-hidden="true">
            <circle class="globe__halo" cx="10" cy="10" r="8.4"/>
            <circle class="globe__line" data-gl cx="10" cy="10" r="7"/>
            <path class="globe__line" data-gl d="M3 10h14"/>
            <path class="globe__line" data-gl d="M10 3c-2.3 2-3.4 4.4-3.4 7s1.1 5 3.4 7"/>
            <path class="globe__line" data-gl d="M10 3c2.3 2 3.4 4.4 3.4 7s-1.1 5-3.4 7"/>
          </svg>
          <span class="face__live" data-live-word>Live</span>
          <span class="face__rule" data-rule></span>
          <span class="face__url" data-url><span data-url-in>kstrl.app/d/a3f9c</span></span>
        </span>
      </button>

      <button class="copy" type="button" data-copy aria-label="Copy deploy link" tabindex="-1">
        <svg class="copy__icon" data-copy-icon viewBox="0 0 16 16" aria-hidden="true"><rect x="5.2" y="5.2" width="7.6" height="7.6" rx="2"/><path d="M10.6 3.4H5.4a2 2 0 0 0-2 2v5.2"/></svg>
        <svg class="copy__tick" data-copy-tick viewBox="0 0 16 16" aria-hidden="true"><path d="M4.2 8.4 6.9 11 11.8 5.4"/></svg>
      </button>

      <p class="log" id="deploy-log" data-log aria-hidden="true">
        <span class="log__track" data-track><span class="log__line">main · 8e41c2f · Fix checkout total</span></span>
        <span class="log__clock" data-clock>00:00.0</span>
      </p>
    </div>
    <p class="sr" data-say aria-live="polite"></p>

    <svg class="ghost" data-ghost viewBox="0 0 24 24" aria-hidden="true"><path d="M5 3.2 19.2 11l-6.3 1.6-3.3 5.9Z"></path></svg>
  </main>

  <script src="https://cdn.jsdelivr.net/npm/gsap@3.15.0/dist/gsap.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.

25 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 steps button” 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 black, on its own, a 60 pixel graphite pill with a thread of light on its top edge: «Deploy» and a drawn arrow. Under the pointer the pill swells by one pixel per side with a bounce, the label widens on the wdth axis, a soft light follows the pointer inside the graphite and the arrow steps forward: it leaves to the right and a new one comes in from the left with a little snap. Pressed, it squeezes slightly. On release the label rises and disappears, the pill stretches to 384 pixels and there, with a spring, it splits into three segments six pixels apart, each with its own round corners: Build, Test and Deploy, each with a grey ring in front. Under it a log line appears in a mono face, with the clock on the right. Build lights up: a mint arc spins in the ring, the mint fill moves on in three jumps with its edge of light in front and a passing sheen, the segment time climbs to 38.4s and the log says «Cloning main at 8e41c2f», then «Installing 214 packages», then «Compiling 38 routes», each line rolling over the one before. Once done, the arc gives way to a self-drawing tick and the segment rises by a pixel and comes back. Then Test, with «Running 126 tests» and «126 passed, 0 failed», and Deploy, with «Uploading to 3 regions». Then the seams close, the three pieces are one pill again and it narrows to 344 pixels with a mint glow under it: the globe draws itself line by line while turning a little, «Live» rises into place, a thin rule stands up, the kstrl.app/d/a3f9c link slides in from the right fading at the edge and the round copy key bounces in. The pill drops by one pixel and comes back. The key really copies the link: the two squares give way to a tick and the log says «Copied». A few seconds later, unless the pointer is over it, the pill goes back to «Deploy». A drawn pointer does it all by itself; it works with mouse, finger and keyboard.

How it works

One pill made of three pieces

Over the graphite body sit three flex segments of the same material. Two CSS variables, --gap and --ri, decide everything: at zero the three pieces are a single pill with two barely visible seams; at 6 and 30 pixels they are three separate capsules. GSAP takes them from one value to the other with back.out, and that is the spring of the split.

The fill in jumps

Each segment has its own --p variable, from 0 to 1, cutting the mint fill with clip-path: inset(). It does not glide: it jumps to fixed stops (34%, 71%, 100% for Build), with power3.out tweens ending before the next stop, like the phases of a real build. The same --p carries the edge of light in front of the fill.

Fake but credible time

A single timeline holds it all. The clock below and each segment’s time are objects GSAP takes from 0 to 57.2 seconds while 5.2 real ones go by: they read like the times of a real build, and every change of log line falls on a jump of the fill.

A one line log

Each new line is born under the old one in an 18 pixel rail with hidden overflow: the new one rises from 100% with back.out, the old one leaves to -100% and is removed. The important bits, the branch, the passed tests, the commit, take the accent colour.

Live and the link to copy

The seams close (--gap and --ri go back to zero), the body comes back on top, the segments fade and the pill narrows. The globe draws itself with stroke-dashoffset, one line after the other. The copy key is a real button next to the first one, with navigator.clipboard; going back to Deploy is put off while the pointer is over it.

Values to change

NameFileDefaultWhat it changes
BUILDscript.js2.2Seconds for the Build segment to fill.
TESTscript.js1.4Seconds for the Test segment to fill.
SHIPscript.js1.6Seconds for the Deploy segment to fill.
HOLDscript.js3.6Seconds Live stays with its link before going back to Deploy.
GAPscript.js6Pixels of space between the three segments when the pill splits.
SPRINGscript.js2.2How much the segments bounce as they part (0 no bounce).
PRESS_SCALEscript.js0.968How far the pressed pill squeezes.
ACCENTscript.js#4fe3a6The accent colour: the fill, the ticks and the Live globe.

Try them in the Playground

When to use it

In the dashboard of a hosting platform, a developer service or an internal tool: the button that ships a version and shows the steps without opening another page. With three other names it suits any three step action, like export, check, send.

On phones

The same animation: the steps bar is at most the screen width minus 32 pixels, and when a segment is narrower than 118 pixels its time hides and the ring and name stay. A tap is hover and click together.

With reduced motion

Nothing moves or bounces: the pill changes width in one step, the segments part with no spring, the fill goes from stop to stop without gliding, labels and log swap with a fade, the arc does not spin; the pilot’s pointer is hidden.

Pitfalls

  • A scaleX fill squashed the round corners of the first and last segments: with clip-path inside a segment with hidden overflow the corners stay the segment’s own.
  • A button inside a button is not valid and a click on the copy key started the deploy again: the copy key is a sibling of the button, laid over its right side, and its pointerdown does not reach the button.
  • On a phone a segment is about a hundred pixels wide and the time overlapped the name: it hides under 118 pixels, measured again on resize.

Libraries

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

Compressed with gzip, the three demo files weigh 9.5 KB; the libraries: GSAP 28 KB.

Testing

Tested on 11 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 components