
The elastic button
Buttons, Hover, Text
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.
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>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
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 siteThere 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 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.
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.
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.
| Name | File | Default | What it changes |
|---|---|---|---|
BUILD_TIME | script.js | 5.6 | How many real seconds the demo build takes, from Queued to Live. |
SHOWN_SECONDS | script.js | 41 | How many seconds the timer shows when the build reaches Live. |
SPRING | script.js | 0.6 | How long the spring takes to widen the pill into the bar and close it again. |
HOLD | script.js | 2.8 | How many seconds Live stays before going back to the button. |
LIVE_COLOR | script.js | #22c55e | The colour of the Live check. |
INK | script.js | #0a0a0a | The colour of the button and of the build bar. |
URL | script.js | shop-x7.example.app | The address that slides into the pill once the build is done. |
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.
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.
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.
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.
Tested on 26 October 2026
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.
Support Animorio
Animorio stays free thanks to the people who support it. If you like, buy us a coffee: it helps us make the next animations.
You asked for
We made it for you: it’s in the library, with the preview, the Playground and the code to copy.
An animation you can’t find, or a site to take apart in the journal: tell us which. We pick the next ones from here.
With your account’s email and password.
or with your email
You’re signed in as .
With your account, you can download the zip of every animation and every pack, for free.