
The elastic button
Buttons, Hover, Text
The first-reply timer of a support ticket, in a card on white: the minutes left, large, and under them the bar of the time allowed getting shorter. While there is room it is green and says “On track”; under a third it turns amber, “Due soon”, with a start; at zero it turns red and hatched, “Overdue”. “Reply to Dana” stops it all: the pill gets its tick and “Met”, and in place of the countdown you read how many minutes the reply took.
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>
<!--
"SLA timer" 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>SLA timer</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 response timer of a support ticket: the time left for the first reply draining on a bar and changing
tone as it tightens, Reply stopping it and writing how long the answer took -->
<section class="sl" data-sl aria-label="Support ticket">
<header class="sl__head">
<span class="sl__id">Ticket 4821, high priority</span>
<span class="sl__state" data-state><svg viewBox="0 0 12 12" aria-hidden="true"><path pathLength="1" d="M2.400 6.300 4.900 8.700 9.700 3.500"></path></svg><span class="sl__clip"><span data-outstate>On track</span></span></span>
</header>
<div class="sl__what"><strong>Can’t log in after the update</strong><span>Dana K., on the Team plan</span></div>
<div class="sl__clock" data-clock>
<span class="sl__label"><span class="sl__clip"><span data-outlabel>First reply due in</span></span></span>
<p class="sl__time" role="timer"><b data-outnum>12</b><i data-outunit>min</i></p>
<div class="sl__bar" aria-hidden="true"><i data-fill></i></div>
<span class="sl__ends" aria-hidden="true"><span>Opened 2:14 pm</span><span data-outdue>Due 2:44 pm</span></span>
</div>
<button type="button" class="sl__btn" data-reply><span class="sl__clip"><span data-outbtn>Reply to Dana</span></span></button>
</section>
<span class="live" aria-live="polite" data-live></span>
<svg class="ghost" data-ghost viewBox="0 0 24 24" aria-hidden="true"><path d="M5 3.200 19.200 11l-6.300 1.600-3.300 5.900Z"></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.
21 values to change
Works with Claude, Claude Code, ChatGPT, Cursor, VS Code, Windsurf, Codex, Gemini CLI
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 “SLA timer” from Animorio and fit it into my siteEverything comes from the seconds left: the written number, the length of the bar and the tone. Below zero the lateness is the same number with its sign changed.
A single colour, kept in a variable: changing the card’s class changes it for number, bar and pill together, with a fade.
The box shakes only when the tone gets worse: a little for amber, more for red.
Replying stops the count and turns the question round: no longer how long is left, but how long it took.
| Name | File | Default | What it changes |
|---|---|---|---|
ACCENT | script.js | #1f9d6b | The colour of the time when on track. |
LIMIT | script.js | 30 | How many minutes are allowed for the first reply. |
LEFT | script.js | 12 | How many minutes are left when the card opens. |
SPEED | script.js | 40 | How many ticket seconds pass in one real second: 1 is real time. |
LOOP | script.js | true | Left alone, the demo’s pointer waits for time to tighten, replies and reopens the ticket. |
In a ticket view of a support app, a shared inbox or a request tracker; the same card carries a quote’s deadline, the time of a promised delivery, the pick-up of a fault report or the answer to an offer.
The card is at most 348 pixels wide and about 300 tall. A long title is cut with an ellipsis; the button is 44 pixels tall and as wide as the card.
Time still runs, but with no kicks or starts: number, bar, colours and texts change in one step. The demo’s pointer does not start.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 5.7 KB; the libraries: GSAP 28 KB.
Tested on 1 December 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.
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.