
The elastic button
Buttons, Hover, Text
The notification centre of a work app with artificial intelligence, in dark glass on black: four notifications arrive, the newest on top pushing the others down. Pressing Summarize a violet and aqua light runs along the panel's edge while a band of light reads the notifications one by one; then they pile into the first, which opens into the summary card, and the words come into focus one after another with the important bits coloured. Show all lays them out again on a spring, Clear slides them 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>
<!--
"AI notification summary" 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 notifications the AI sums up in one</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 notification centre of a work app with AI. Four notifications arrive in dark glass, the newest pushing the
others down; Summarize sends a light around the panel while each one is read, then they pile into the first
and open into one summary card whose words come into focus. Show all lays them out again -->
<section class="inbox" data-inbox aria-label="Notifications">
<span class="inbox__aura" aria-hidden="true"><span class="inbox__blob inbox__blob--a" data-blob></span><span class="inbox__blob inbox__blob--b" data-blob></span></span>
<span class="inbox__grain" aria-hidden="true"></span>
<span class="inbox__beam" data-beam aria-hidden="true"></span>
<span class="inbox__glint" aria-hidden="true"></span>
<header class="inbox__bar">
<h2 class="inbox__title">Notifications</h2>
<span class="inbox__count" aria-hidden="true"><span class="inbox__count-roll" data-roll><span>0</span><span>1</span><span>2</span><span>3</span><span>4</span></span></span>
<button class="inbox__clear" type="button" data-clear>Clear</button>
<button class="sum" type="button" data-sum aria-pressed="false">
<span class="sum__face" data-sum-face>
<svg class="sum__spark" data-spark viewBox="0 0 20 20" aria-hidden="true">
<defs>
<linearGradient id="sparkInk" x1="0" y1="0" x2="1" y2="1">
<stop offset="0" stop-color="var(--violet)"/>
<stop offset="1" stop-color="var(--aqua)"/>
</linearGradient>
</defs>
<path d="M10 2.2c.5 3.9 1.9 5.3 5.8 5.8-3.9.5-5.3 1.9-5.8 5.8-.5-3.9-1.9-5.3-5.8-5.8 3.9-.5 5.3-1.9 5.8-5.8z" fill="url(#sparkInk)"/>
<path d="M15.6 12.6c.2 1.5.7 2 2.2 2.2-1.5.2-2 .7-2.2 2.2-.2-1.5-.7-2-2.2-2.2 1.5-.2 2-.7 2.2-2.2z" fill="url(#sparkInk)" opacity=".8"/>
</svg>
<span class="sum__words" data-words>
<span class="sum__word is-on" data-word="idle">Summarize</span>
<span class="sum__word sum__word--shine" data-word="read">Reading</span>
<span class="sum__word" data-word="done">Show all</span>
</span>
</span>
</button>
</header>
<div class="inbox__list" data-list>
<div class="slot" data-slot>
<article class="note" data-note>
<span class="note__scan" data-scan aria-hidden="true"></span>
<span class="app app--aqua" aria-hidden="true"><svg viewBox="0 0 20 20"><path d="M4.5 6.5h11v8a1.5 1.5 0 0 1-1.5 1.5H6a1.5 1.5 0 0 1-1.5-1.5z"/><path d="M4.5 6.5l1.6-2.5h7.8l1.6 2.5M8 9.5h4"/></svg></span>
<span class="note__body"><span class="note__top"><b class="note__app">Relay</b><time class="note__time">now</time></span><span class="note__title">Theo replied in launch-plan</span><span class="note__text">Copy is final, can you approve it?</span></span>
</article>
</div>
<div class="slot" data-slot>
<article class="note" data-note>
<span class="note__scan" data-scan aria-hidden="true"></span>
<span class="app app--violet" aria-hidden="true"><svg viewBox="0 0 20 20"><rect x="3.5" y="5.5" width="13" height="9.5" rx="2"/><path d="M3.5 8.8h13M6.5 12.2h3"/></svg></span>
<span class="note__body"><span class="note__top"><b class="note__app">Ledger</b><time class="note__time">9m</time></span><span class="note__title">Invoice paid</span><span class="note__text">Northwind paid $1,240.00</span></span>
</article>
</div>
<div class="slot" data-slot>
<article class="note" data-note>
<span class="note__scan" data-scan aria-hidden="true"></span>
<span class="app app--aqua" aria-hidden="true"><svg viewBox="0 0 20 20"><rect x="3.5" y="4.5" width="13" height="12" rx="2"/><path d="M3.5 8h13M7 3v3M13 3v3M10 10.5v2.2l1.4.9"/></svg></span>
<span class="note__body"><span class="note__top"><b class="note__app">Cadence</b><time class="note__time">5m</time></span><span class="note__title">Design review moved</span><span class="note__text">Maya: can we do 3:30 pm instead?</span></span>
</article>
</div>
<div class="slot" data-slot>
<article class="note" data-note>
<span class="note__scan" data-scan aria-hidden="true"></span>
<span class="app app--violet" aria-hidden="true"><svg viewBox="0 0 20 20"><path d="M10 3.5l6.5 12h-13z"/><path d="M8 12.2l1.4 1.3 2.6-2.8"/></svg></span>
<span class="note__body"><span class="note__top"><b class="note__app">Pylon</b><time class="note__time">12m</time></span><span class="note__title">Deploy passed</span><span class="note__text">web-app is live on production</span></span>
</article>
</div>
<article class="digest" data-digest aria-hidden="true">
<span class="digest__edge" aria-hidden="true"></span>
<header class="digest__head">
<svg class="digest__spark" viewBox="0 0 20 20" aria-hidden="true"><path d="M10 2.2c.5 3.9 1.9 5.3 5.8 5.8-3.9.5-5.3 1.9-5.8 5.8-.5-3.9-1.9-5.3-5.8-5.8 3.9-.5 5.3-1.9 5.8-5.8z" fill="url(#sparkInk)"/></svg>
<b class="digest__name">Summary</b>
<span class="digest__meta">4 notifications</span>
<span class="digest__apps" aria-hidden="true"><span class="mini mini--aqua"><svg viewBox="0 0 20 20"><path d="M4.5 6.5h11v8a1.5 1.5 0 0 1-1.5 1.5H6a1.5 1.5 0 0 1-1.5-1.5z"/><path d="M4.5 6.5l1.6-2.5h7.8l1.6 2.5M8 9.5h4"/></svg></span><span class="mini mini--violet"><svg viewBox="0 0 20 20"><rect x="3.5" y="5.5" width="13" height="9.5" rx="2"/><path d="M3.5 8.8h13M6.5 12.2h3"/></svg></span><span class="mini mini--aqua"><svg viewBox="0 0 20 20"><rect x="3.5" y="4.5" width="13" height="12" rx="2"/><path d="M3.5 8h13M7 3v3M13 3v3M10 10.5v2.2l1.4.9"/></svg></span><span class="mini mini--violet"><svg viewBox="0 0 20 20"><path d="M10 3.5l6.5 12h-13z"/><path d="M8 12.2l1.4 1.3 2.6-2.8"/></svg></span></span>
</header>
<p class="digest__text" data-text>Your deploy <em>passed</em> and web-app is live. Maya moved the design review to <em>3:30 pm</em>, Northwind paid <em>$1,240</em>, and Theo is waiting for your approval on the launch copy.</p>
<footer class="digest__foot" data-foot>
<span class="digest__from">From 4 apps · just now</span>
<button class="digest__reply" type="button" data-reply tabindex="-1">Reply to Theo<svg viewBox="0 0 16 16" aria-hidden="true"><path d="M3 8h9M8.5 4.4L12.1 8 8.5 11.6"/></svg></button>
</footer>
</article>
</div>
</section>
<p class="sr" aria-live="polite" data-live></p>
</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.
54 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 “AI notification summary” from Animorio and fit it into my siteFrosted glass (backdrop-filter with blur and saturation) needs something to blur: inside the panel, under the notifications, two radial violet and aqua patches blurred by 38 px drift slowly with GSAP, and on top there is an SVG grain made with feTurbulence in a data URI, in overlay at 6%.
Two layers as big as the panel with 1 px of padding and a mask that leaves only the border (content-box excluded). In the first a radial gradient at --mx --my, which GSAP brings to the pointer or slides along the top side. In the second a violet, white and aqua conic-gradient whose angle --a GSAP spins while the AI reads.
Each notification sits in a holder whose height goes from 0 to auto: as it grows it pushes the others down with no maths. Inside, the notification comes down 16 px, from 0.93 to 1 and from blurred to sharp with a back.out that passes the mark. The counter is a column of digits moved in steps of yPercent.
When summing up, the notifications' positions (offsetTop) are read: each moves up by its distance, 5 px apart and a little smaller, and the panel shortens to the height of one. The summary card is born on top with a clip-path inset as tall as a notification and opens to its real height while the panel follows it.
The sentence is split into words on load, keeping the em of the important ones (coloured with a gradient clipped to the text). They come in with opacity, a 7 px rise and a blur from 7 to 0, 35 ms apart. Every size is read again at each change, because the box changes height while you watch it.
| Name | File | Default | What it changes |
|---|---|---|---|
READ_TIME | script.js | 1.5 | How many seconds the AI reads, with the light running along the edge. |
WORD_STAGGER | script.js | 0.035 | The seconds between one word of the summary and the next as they come into focus. |
ARRIVE_GAP | script.js | 0.42 | The seconds between one notification arriving and the next. |
OVERSHOOT | script.js | 1.6 | How far the notifications pass their place before settling: 1 barely, 3 a bounce. |
BEAM_TURNS | script.js | 2 | How many laps the light runs along the edge while the AI reads. |
HOLD | script.js | 3.2 | How many seconds the summary stays before the loop lays everything out again. |
LOOP | script.js | true | Runs the whole loop again on its own. |
For a work or productivity app with artificial intelligence, a dashboard, a mail or messaging client: the notification centre that, when they pile up, gathers them into a single sentence.
The same animation with adapted sizes: the panel is as wide as the box, the notifications and margins get shorter with the screen height, long texts end in an ellipsis and the edge light travels on its own; the buttons work with a finger.
Nothing moves: the notifications fade in already in place, the edge light fades on and off without travelling, the summary takes the notifications' place with a fade and its words already in place.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 10 KB; the libraries: GSAP 28 KB.
Tested on 1 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.