
The elastic button
Buttons, Hover, Text
A new version notice, in the clean style of product interface pieces: a small toast at the bottom, «Version 2.4 is here», with the number rolling from 2.3 to 2.4, that opens with a spring into the card of what’s new, three rows coming in one after another; «Update now» fills a thin bar and writes «Updated», «Later» folds everything back into the toast, which slides away.
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>
<!--
"What’s new notice" 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 update notice that opens into what’s new</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>
<!-- invisible frame as big as the open card: the preview poster and video are framed on it -->
<div class="frame" data-inquadra aria-hidden="true"></div>
<!-- an app's update notice: a small toast at the bottom that opens, FLIP style, into the card of what's new,
with an update that fills a thin bar and a "Later" that folds everything back and slides it away -->
<section class="box" data-box role="status" aria-live="polite" aria-label="Fernly update">
<div class="compact" data-compact>
<span class="tile" aria-hidden="true">
<svg viewBox="0 0 24 24"><path d="M12 16.5V7.5"></path><path d="m8 11.2 4-4 4 4"></path><rect x="3.5" y="3.5" width="17" height="17" rx="5.5"></rect></svg>
</span>
<span class="compact__text">
<span class="compact__title" data-title-idle>Version <span class="ver" data-ver>2.<span class="digit"><span class="digit__col" data-vcol><span>3</span><span>4</span></span></span></span><span class="pill__long"> is here</span></span>
<span class="compact__title compact__title--done" data-title-done><svg class="mini-check" viewBox="0 0 24 24" aria-hidden="true"><path d="m5.5 12.5 4.2 4.2 8.8-9.4"></path></svg>You’re on 2.4</span>
<span class="compact__sub" data-sub>3 new things in Fernly</span>
</span>
<button class="pill pill--soft" type="button" data-open aria-expanded="false">
<span class="pill__label"><span class="pill__long">See what’s new</span><span class="pill__short">What’s new</span></span>
<svg class="pill__arrow" viewBox="0 0 16 16" aria-hidden="true"><path d="M3.5 8h8.5M8.5 4.5 12 8l-3.5 3.5"></path></svg>
</button>
</div>
<div class="full" data-full aria-hidden="true">
<header class="full__head">
<span class="tile tile--big" aria-hidden="true">
<svg viewBox="0 0 24 24"><path d="M12 16.5V7.5"></path><path d="m8 11.2 4-4 4 4"></path><rect x="3.5" y="3.5" width="17" height="17" rx="5.5"></rect></svg>
</span>
<div>
<p class="full__title">What’s new in 2.4</p>
<p class="full__sub">Fernly · Released Oct 26</p>
</div>
<button class="close" type="button" data-close aria-label="Close">
<svg viewBox="0 0 16 16" aria-hidden="true"><path d="m4.5 4.5 7 7M11.5 4.5l-7 7"></path></svg>
</button>
</header>
<ul class="items">
<li class="item" data-item>
<span class="item__icon" aria-hidden="true">
<svg viewBox="0 0 24 24"><path d="M7.5 17.5h9.2a3.8 3.8 0 0 0 .6-7.6 5.3 5.3 0 0 0-10.2-1.2A4.5 4.5 0 0 0 7.5 17.5Z"></path><path d="m4 4 16 16"></path></svg>
</span>
<span class="item__text">
<span class="item__title">Offline drafts</span>
<span class="item__line">Keep writing on the train, it syncs when you’re back.</span>
</span>
</li>
<li class="item" data-item>
<span class="item__icon" aria-hidden="true">
<svg viewBox="0 0 24 24"><path d="m12 4 8 4-8 4-8-4Z"></path><path d="m4 12 8 4 8-4"></path><path d="m4 16 8 4 8-4"></path></svg>
</span>
<span class="item__text">
<span class="item__title">Shared views <span class="tag" data-tag>New</span></span>
<span class="item__line">Save a filter and send it to your team in one link.</span>
</span>
</li>
<li class="item" data-item>
<span class="item__icon" aria-hidden="true">
<svg viewBox="0 0 24 24"><circle cx="10.5" cy="10.5" r="5.5"></circle><path d="m15 15 4.5 4.5"></path><path d="M3 20h4"></path></svg>
</span>
<span class="item__text">
<span class="item__title">Faster search</span>
<span class="item__line">Results show up as you type, even in long docs.</span>
</span>
</li>
</ul>
<footer class="foot" data-foot>
<div class="foot__actions" data-actions>
<button class="pill pill--ghost" type="button" data-later>Later</button>
<button class="pill pill--ink" type="button" data-update>Update now</button>
</div>
<div class="foot__progress" data-progress aria-hidden="true">
<span class="foot__row">
<span class="foot__word" data-pword>Downloading 2.4</span>
<span class="foot__pct"><span data-pct>0</span>%</span>
</span>
<span class="bar"><span class="bar__fill" data-bar></span></span>
</div>
<div class="foot__done" data-donerow aria-hidden="true">
<svg class="big-check" 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>Updated to 2.4</span>
<span class="foot__hint">Ready when you are</span>
</div>
</footer>
</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.
38 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 “What’s new notice” from Animorio and fit it into my siteThere is only one frame, centred with left: 50% and GSAP’s xPercent and pinned to the bottom: GSAP changes its width, height, radius and shadow, and as it grows taller it grows upwards. Inside are the two faces, the notice and the card, each with its own width in pixels and centred: while the frame changes, the text never wraps, it gets revealed.
The notice’s width is measured with width: max-content, the card’s is CARD_WIDTH narrowed to the screen, and its height is read after document.fonts.ready; everything is measured again on resize, even halfway through opening.
The card lights up in a quarter of a second, then the header rises by 8 pixels and the three rows by 10, STAGGER seconds apart, with power3.out; the New label swells from half size with back.out(3) as its row arrives.
The update is an object from 0 to 1 in five stretches with different curves (quick start, almost still, install, slowdown, last bit): every frame writes the bar with scaleX and the percentage, and past 72% «Downloading» turns into «Installing».
On closing, the frame goes back to the notice’s size with back.out(1.15); after an update the notice changes its text and loses its button, so it is measured again before shrinking, and then it drops by 28 pixels as it disappears.
| Name | File | Default | What it changes |
|---|---|---|---|
OPEN_TIME | script.js | 0.62 | How long the spring takes to open the notice into the card of what’s new, in seconds. |
STAGGER | script.js | 0.07 | How many seconds between one item and the next as they come in. |
UPDATE_TIME | script.js | 2.6 | How many seconds the update takes, from the empty bar to the full one. |
HOLD | script.js | 1.6 | How many seconds «Updated» stays before the card folds back. |
READ_TIME | script.js | 2.4 | How many seconds the drawn pointer leaves to read the news before choosing. |
ACCENT | script.js | #4f46e5 | The accent colour: the icon, the New label, the bar and the check. |
CARD_WIDTH | script.js | 392 | How wide the open card is, in pixels (on a phone it narrows by itself). |
To tell the people using an app or a piece of software that there is a new version without interrupting them: the notice stays small at the bottom, and whoever wants to opens the news and updates right there, without leaving the page. It also works for a SaaS changelog or a browser extension.
The notice and the card take the screen width minus 16 pixels per side, the «3 new things» line disappears below 380 pixels so the notice stays on one line, and the open card fits inside the box; a tap does what a click does.
Nothing rises, drops or bounces: the notice appears and disappears with a fade, the card takes its size at once with the rows already in place, the version digit changes without rolling, the bar fills but the check appears already drawn, 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.7 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.