Skip to content
animorio
IT
All components

Deploy button

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

The Deploy button of a developer dashboard, in the clean style of product interface pieces: the black pill widens into the build bar and goes through Queued, Building and Checking with their icons, a running timer and a thin bar that moves in jumps, then lands on Live with a self-drawing green check, the address sliding in and a Visit button.

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 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 follows the build</title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/mona-sans@5.3.0/wdth.css">
  <link rel="stylesheet" href="style.css">
</head>
<body>
  <main class="stage" data-stage>
    <!-- a project row in a developer dashboard: the black Deploy pill stretches into the build bar, walks through
         Queued, Building, Checking with a running timer, then lands on Live with the address and a Visit link -->
    <section class="card" aria-label="shop-x7, production">
      <header class="card__head">
        <span class="card__logo" aria-hidden="true">
          <svg viewBox="0 0 24 24"><path d="M5 7.5 12 4l7 3.5v9L12 20l-7-3.5z"></path><path d="M5 7.5 12 11l7-3.5M12 11v9"></path></svg>
        </span>
        <div class="card__name">
          <p class="card__title">shop-x7</p>
          <p class="card__sub">Production</p>
        </div>
        <span class="card__env" data-env>Last deploy 3h ago</span>
      </header>

      <div class="commit" data-commit tabindex="0">
        <span class="branch">
          <svg viewBox="0 0 24 24" aria-hidden="true"><circle cx="7" cy="5.5" r="2"></circle><circle cx="7" cy="18.5" r="2"></circle><circle cx="17" cy="7.5" r="2"></circle><path d="M7 7.5v9M17 9.5c0 4.5-10 2.5-10 7"></path></svg>
          main
        </span>
        <div class="commit__body">
          <p class="commit__msg"><span class="commit__hash" data-hash>a3f9c21</span> <span data-msg>Fix checkout total</span></p>
          <p class="commit__who"><span class="who">MO</span>Mara Okoye · 2 min ago</p>
        </div>
      </div>

      <div class="act" data-act>
        <button class="deploy" type="button" data-deploy data-autoclic aria-label="Deploy main to production">
          <span class="deploy__face deploy__face--idle" data-idle>
            <svg class="ico" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 15.5V5M7.5 9.5 12 5l4.5 4.5M5 19h14"></path></svg>
            <span>Deploy</span>
          </span>

          <span class="deploy__face deploy__face--busy" data-busy>
            <span class="stepicon" data-stepicon aria-hidden="true">
              <svg class="ico" data-icon="queued" viewBox="0 0 24 24"><circle cx="12" cy="12" r="7.5"></circle><path data-hand d="M12 12V8"></path><path d="M12 12l2.6 1.6"></path></svg>
              <svg class="ico" data-icon="building" viewBox="0 0 24 24"><path d="M4.5 8 12 4.3 19.5 8 12 11.7z"></path><path data-lid d="M4.5 8v8L12 19.7 19.5 16V8"></path><path d="M12 11.7v8"></path></svg>
              <svg class="ico" data-icon="checking" viewBox="0 0 24 24"><path d="M12 3.6 18.6 6v5.4c0 4-2.8 7.1-6.6 8.8-3.8-1.7-6.6-4.8-6.6-8.8V6z"></path><path data-tick d="m9.2 12 2 2 3.8-4"></path></svg>
            </span>
            <span class="word" data-word aria-live="polite"><span class="word__in">Queued</span></span>
            <span class="timer" data-timer>00:00</span>
            <span class="rail" aria-hidden="true"><span class="rail__fill" data-fill></span></span>
          </span>

          <span class="deploy__face deploy__face--live" data-live>
            <svg class="ico ico--ok" viewBox="0 0 24 24" aria-hidden="true"><path data-check d="m5.5 12.5 4.2 4.2 8.8-9.4"></path></svg>
            <span class="live__word">Live</span>
            <span class="url"><span class="url__in" data-url>shop-x7.example.app</span></span>
            <span class="visit" data-visit>Visit<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M7.5 16.5 16.5 7.5M9.5 7.5h7v7"></path></svg></span>
          </span>
        </button>
      </div>
      <p class="foot" data-foot>Builds from <span class="mono">main</span> go straight to production</p>
    </section>
    <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.

29 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 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 a barely grey white sits the card of an invented project, shop-x7, in production: the black mark, the name, «Last deploy 3h ago» in grey, and below the row of the last commit, the main branch pill, the a3f9c21 hash in a mono face, the «Fix checkout total» message and who wrote it, with the initials in a grey circle. On hover the commit row takes a light grey background with round corners. At the bottom the black «Deploy» pill with a drawn arrow. Pressing it squeezes it slightly and shortens its shadow; on release the label rises and disappears and the pill widens into a black bar as wide as the card, with less rounded corners. Inside appear the clock icon with its hand going round, the word «Queued», the time in tabular figures, 00:00, and a thin rail below. Then the word rolls up and «Building» arrives with the box icon, whose lid lifts by a pixel at each jump of the bar: the bar moves on in three leaps, and the time runs. Then «Checking» with the shield, inside which the tick draws itself, and the bar reaches the end slowing down. Then the bar makes way for Live: the green check draws itself, «Live» rises into place, the shop-x7.example.app address slides in from the right and fades at the edge, and the «Visit» button arrives with its arrow; the pill drops by one pixel and comes back, and at the top it reads «Deployed just now». After a couple of seconds the bar closes back into the Deploy pill. A drawn pointer presses by itself, then comes back and rests on Visit; it also really works, with mouse, finger and keyboard.

How it works

One pill, two shapes

There is only one button and GSAP changes its width, height and corners: from a pill measured on its label to a bar as wide as the card, measured in pixels and again on resize. The three faces, Deploy, the build and Live, sit on top of each other and light up in turn.

A fake build, in stages

A single timeline does everything: Queued for 14% of the time, Building for 56%, Checking for 30%. The timer is an object going from 0 to the number of seconds to show, writing mm:ss on every frame; the bar does not glide but jumps, with short power3.out tweens at fixed times, like the phases of a real build.

Words that roll, icons that turn

Each new stage creates its word under the old one: the new one rises from 100% with back.out, the old one leaves to -100% and is removed. The icons are three stacked SVGs: the incoming one turns by 30 degrees and grows from 0.6, and each has its own small gesture, the hand, the lid, the tick in the shield.

Live

At the end the build face fades and Live arrives: the green check draws itself with strokeDashoffset, the address slides in from the right with expo.out inside a box that fades it at the edge with a mask, and the Visit button comes in last. The pill drops by one pixel and comes back: the settle that says it is done.

Values to change

NameFileDefaultWhat it changes
BUILD_TIMEscript.js5.6How many real seconds the demo build takes, from Queued to Live.
SHOWN_SECONDSscript.js41How many seconds the timer shows when the build reaches Live.
SPRINGscript.js0.6How long the spring takes to widen the pill into the bar and close it again.
HOLDscript.js2.8How many seconds Live stays before going back to the button.
LIVE_COLORscript.js#22c55eThe colour of the Live check.
INKscript.js#0a0a0aThe colour of the button and of the build bar.
URLscript.jsshop-x7.example.appThe address that slides into the pill once the build is done.

Try them in the Playground

When to use it

For the publish button of a developer tool, a site builder, a CMS or any panel where a long action goes through phases: the person pressing sees where it is, how long it takes and where to look once it is done.

On phones

The card takes the width of the box minus the margins and the bar follows it, measured in pixels; the last deploy label at the top hides, the bar tightens its margins and the address fades before the Visit button. The button stays 44 pixels tall and a tap does what a click does.

With reduced motion

The pill neither widens nor bounces: it switches to the bar and back at once, words and icons change with a fade, the clock hand stays still, the ticks appear already drawn, the address does not slide and the drawn pointer stays hidden.

Pitfalls

  • The pill is centred with left: 50% and GSAP’s xPercent: a translate in the CSS would be wiped by GSAP’s inline transform.
  • On big screens the card is scaled up: the label width measured with getBoundingClientRect must be divided by that scale, or the pill comes out too wide.
  • The Visit button sits inside the Deploy button: it cannot be a link (an interactive element inside another is not valid), so it is a span; on a real site the Live pill becomes a separate link.
  • Hidden faces also get visibility: hidden, not only opacity 0, so screen readers skip them and they cannot be pressed.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

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

Testing

Tested on 26 October 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