
The elastic button
Buttons, Hover, Text
The uptime row of a status page, in the simple style of product interface pieces: sixty thin bars, one per day, black when the service ran fine and orange on the three days with an incident. Sliding a finger or the mouse across the bars, the day under the pointer rises on a spring and its neighbours follow a little, the percentage rolls to that day’s value and the line below says what happened.
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>
<!--
"Uptime bar chart" 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 uptime bar chart with days to scrub</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">
<!-- the uptime row of a status page: sixty thin bars, one per day. Slide across them and the day under the
pointer rises, the percentage rolls to that day and the line below says what happened -->
<section class="uptime" data-uptime aria-label="Payments API uptime">
<header class="head">
<div class="head__name">
<h1 class="name" data-name>Payments API</h1>
<p class="sub swap" data-sub><span>Orrin status</span></p>
</div>
<div class="head__read">
<p class="pct" data-pct aria-live="polite"></p>
<p class="when swap" data-when><span>Last 60 days</span></p>
</div>
</header>
<div class="bars" data-bars tabindex="0" role="slider" aria-label="Uptime by day" aria-valuemin="1" aria-valuemax="60" aria-valuenow="60">
<div class="bars__row" data-row></div>
<div class="bars__base" aria-hidden="true"><i class="tick" data-tick></i></div>
</div>
<div class="foot">
<p class="note swap" data-note><span></span></p>
<p class="axis" aria-hidden="true"><span>60 days ago</span><span>Today</span></p>
</div>
</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.
19 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 “Uptime bar chart” from Animorio and fit it into my siteThe days are counted back from today with Date: each one has its date and, if there was an incident, the minutes lost. A day’s percentage is 100 minus the minutes over 1440, the one at the top the minutes of all incidents over sixty days: 36 minutes make 99.96%.
Every day is a span as tall as the row, which takes the pointer, with inside the element GSAP scales from the bottom: the column under the pointer is found from the x alone, so even between two bars a day is always picked.
When the day changes every bar goes to 1 plus LIFT times a gaussian of its distance from the chosen day (SPREAD is its width), with back.out: the chosen one rises most, its neighbours less, and all bounce by a pixel. The room above the row is computed from the bars’ real height, so the raised bar never touches the title.
The percentage is made of columns from 0 to 9 sliding with yPercent, decimals first. The first digit is always there but zero wide: for 100.00 its width goes to the column’s width and the number opens up without jumping.
The date and the incident line sit in the same grid cell: the old one rises and fades, the new one comes up from below with font-stretch from 84 to 100 on back.out; scrubbing fast, the old ones remove themselves at the end of their exit.
| Name | File | Default | What it changes |
|---|---|---|---|
SERVICE | script.js | Payments API | The service name at the top. |
ACCENT | script.js | #f2610c | The colour of the days with an incident (lighter for slowdowns). |
LIFT | script.js | 0.22 | How much the bar under the finger rises, as a share of its height. |
SPREAD | script.js | 1.3 | How many neighbouring bars rise with it: 0.5 only that one, 3 a wide wave. |
BOUNCE | script.js | 1.8 | How much the bars bounce when they rise and settle. |
SPEED | script.js | 1 | The speed of everything: 2 twice as fast, 0.5 half. |
HOLD | script.js | 1.4 | The seconds the fake pointer stops on a day with an incident. |
AUTO | script.js | true | The fake pointer scrubs the days by itself until someone touches them. |
For the status page of an app or an API, for a service-health panel in a dashboard, or to show customers how reliable a product is: the total reads at once, each day’s detail one swipe away.
On the phone a finger drags across the bars (touch-action pan-y: the page still scrolls vertically); letting go, everything settles. Sizes come from the screen with clamp and the row is at most 90% of the window wide.
The bars do not rise: the chosen day stays solid and the others fade; digits and lines change with a fade. Instead of the scrubbing pointer, the selection steps from one incident to the next with fades.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 6.7 KB; the libraries: GSAP 28 KB.
Tested on 31 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.