
The elastic button
Buttons, Hover, Text
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.
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>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
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 siteOver 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.
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.
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.
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.
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.
| Name | File | Default | What it changes |
|---|---|---|---|
BUILD | script.js | 2.2 | Seconds for the Build segment to fill. |
TEST | script.js | 1.4 | Seconds for the Test segment to fill. |
SHIP | script.js | 1.6 | Seconds for the Deploy segment to fill. |
HOLD | script.js | 3.6 | Seconds Live stays with its link before going back to Deploy. |
GAP | script.js | 6 | Pixels of space between the three segments when the pill splits. |
SPRING | script.js | 2.2 | How much the segments bounce as they part (0 no bounce). |
PRESS_SCALE | script.js | 0.968 | How far the pressed pill squeezes. |
ACCENT | script.js | #4fe3a6 | The accent colour: the fill, the ticks and the Live globe. |
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.
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.
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.
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.
Tested on 11 November 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.