
The AI generate button
Buttons, WebGL, SVG, Hover, Text
The autosave status badge of a document editor, on white, in the style of clean product interface pieces: «Saving…» with a turning arc, then «Saved» with a cloud and a check drawing themselves, «Saved just now» that ages into «Saved 1 min ago». When the network drops the pill turns amber, the cloud is struck through and it says «Offline — changes saved locally»; when it comes back it counts «Syncing 3 changes» down until it is Saved again. Only the words that change roll, the pill follows them on a spring, and on hover a tooltip gives the time of the last version.
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>
<!--
"Autosave status badge" 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 autosave status badge</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>
<!-- the save status of an invented document editor, in its pill: Saving with a turning arc, Saved with a cloud and
a drawn check, Saved just now that ages into 1 min ago; Offline with the cloud struck through, then Syncing the
changes made offline. Only the words that change roll, the pill follows their width on a spring, and hovering
it shows the time of the last version -->
<div class="zone" data-zone>
<button class="badge" type="button" data-badge aria-describedby="save-tip">
<span class="badge__ico" aria-hidden="true">
<svg viewBox="0 0 24 24">
<defs>
<clipPath id="cloud-inside"><path d="M7 18h10.5a4 4 0 0 0 .6-7.95A6 6 0 0 0 6.5 9.2 4.4 4.4 0 0 0 7 18Z"></path></clipPath>
</defs>
<g data-i-spin>
<circle class="i-track" cx="12" cy="12" r="7"></circle>
<circle class="i-arc" data-i-arc cx="12" cy="12" r="7" pathLength="100"></circle>
</g>
<g data-i-cloudg>
<path class="i-cloud" data-i-cloud pathLength="100" d="M7 18h10.5a4 4 0 0 0 .6-7.95A6 6 0 0 0 6.5 9.2 4.4 4.4 0 0 0 7 18Z"></path>
<g clip-path="url(#cloud-inside)"><path class="i-up" data-i-up d="M12 16.4v-5.2M9.8 13.3 12 11.1l2.2 2.2"></path></g>
<path class="i-check" data-i-check pathLength="100" d="M9.3 13.5l2 1.9 3.5-3.8"></path>
<path class="i-cut" data-i-cut pathLength="100" d="M4.6 4.6 19.4 19.4"></path>
<path class="i-slash" data-i-slash pathLength="100" d="M4.6 4.6 19.4 19.4"></path>
</g>
</svg>
</span>
<span class="badge__say" data-say></span>
<span class="badge__halo" data-halo aria-hidden="true"></span>
<span class="badge__measure" data-measure aria-hidden="true"></span>
<span class="sr" data-live aria-live="polite"></span>
</button>
<div class="tip" id="save-tip" role="tooltip">
<div class="tip__box" data-tip>
<span class="tip__arrow" aria-hidden="true"></span>
<div class="tip__in" data-tip-in>
<p class="tip__top" data-tip-top>Last version</p>
<p class="tip__main">
<svg viewBox="0 0 16 16" aria-hidden="true"><circle cx="8" cy="8" r="5.6"></circle><path d="M8 5.2V8l1.9 1.3"></path></svg>
<span data-tip-time>Today at 4:12 PM</span>
</p>
<p class="tip__sub" data-tip-sub>Saved to Inkbloom cloud</p>
</div>
</div>
</div>
</div>
<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.
21 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 “Autosave status badge” from Animorio and fit it into my siteEach word is an absolutely positioned span. The next line is measured in a hidden twin (getBoundingClientRect of each word): the same word in the same place stays and slides to its new x, the others leave upwards and the new ones come in from below with back.out, a 2-pixel blur and 45 milliseconds between one and the next. The words’ window is 20 pixels tall with hidden overflow, so they roll like an odometer.
The width of the words’ window goes to the new measure with back.out(1.5) in SPRING seconds; the pill is inline-flex and follows it. It sits in the middle of its zone, so it grows from the centre and the tooltip stays under its middle.
A single 24-unit SVG: the spinner (track and an arc whose dash breathes between 22 and 58 hundredths while it turns), the cloud drawn with stroke-dashoffset on pathLength 100, the check after it, the offline bar with a wide stroke in the pill’s colour under it that opens a gap in the cloud. The sync arrow rises in a continuous loop, clipped by the cloud’s own shape (clipPath).
A small state machine with gsap.delayedCall: saving leads to Saved, then to just now, then one more minute every AGO seconds. The window’s offline and online events do what the autopilot does; syncing counts PENDING down every SYNC_STEP seconds.
It appears after 120 milliseconds of hover, with a small hop from above. If its text changes while it is open, the old and new widths are measured and animated between, while the three lines come back in staggered.
| Name | File | Default | What it changes |
|---|---|---|---|
APP | script.js | Inkbloom | The editor’s name, written in the tooltip. |
LAST_TIME | script.js | 4:12 PM | The time of the last saved version (with AM or PM, or on the 24-hour clock). |
PENDING | script.js | 3 | The changes made offline, which syncing counts down. |
SPRING | script.js | 0.55 | The seconds of the spring that changes the pill’s width. |
SAVE_TIME | script.js | 1.2 | The seconds «Saving…» stays with its turning arc. |
AGO | script.js | 2.4 | The seconds after which «just now» becomes «1 min ago» (60 in a real app). |
SYNC_STEP | script.js | 0.6 | The seconds for each change synced when back online. |
In the top bar of a document editor, a design or notes app, a CMS, a long form that saves itself: anywhere the person writing wants to know, without thinking about it, that the work is safe even without a network.
The pill is 36 pixels tall and the longest line, the offline one, is about 255 wide: it fits the phone box with room at the sides, and below 360 pixels the text drops to 13. A tap shows the tooltip for two and a half seconds and saves, like a click.
No rolling and no springs: the words change with a fade in place, the width adapts without bounce, the spinner turns but does not breathe, the icon changes without shivering, the ring around does not open and the drawn pointer is hidden.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 8.7 KB; the libraries: GSAP 28 KB.
Tested on 27 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.