
The elastic button
Buttons, Hover, Text
The bottom navigation bar of a made-up notes app, on white, with a single gesture: pressing the plus in the middle. The plus’s black circle comes out from behind the bar and grows into a dark panel with three actions, New note, Scan document and Voice memo, while the plus turns into an x and the other tabs step back. A single light highlight follows the pointer between the actions; pick one and the panel folds back into the plus while the new note lands in its tab with a badge.
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>
<!--
"Tab bar with plus actions" 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 bottom tab bar with the plus that opens into actions</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>
<!-- one gesture: press the plus. The dark circle in the middle of the tab bar grows out from behind the bar into
a panel of actions, the other tabs step back, a single highlight follows the pointer between the actions, and
choosing one folds the panel back into the plus while the new item lands in its tab -->
<section class="dock" data-dock aria-label="Pagewell navigation">
<p class="dock__hint" data-hint>Tap + to create</p>
<div class="sheet" data-sheet aria-hidden="true">
<div class="sheet__inner" data-inner role="menu" aria-label="Create">
<span class="sheet__glow" data-glow aria-hidden="true"></span>
<p class="sheet__title" data-title>Create</p>
<button class="act" type="button" role="menuitem" data-act="note">
<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M6 3.5h8.5L19 8v12.5H6z"/><path d="M14 3.5V8.5h5"/><path d="M9 13h7M9 16.5h4.5"/></svg>
<span class="act__text"><span class="act__name">New note</span><span class="act__sub">Start from a blank page</span></span>
<span class="act__key">N</span>
</button>
<button class="act" type="button" role="menuitem" data-act="scan">
<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M4 8V5.5A1.5 1.5 0 0 1 5.5 4H8M16 4h2.5A1.5 1.5 0 0 1 20 5.5V8M20 16v2.5a1.5 1.5 0 0 1-1.5 1.5H16M8 20H5.5A1.5 1.5 0 0 1 4 18.5V16"/><path d="M4 12h16"/></svg>
<span class="act__text"><span class="act__name">Scan document</span><span class="act__sub">Use the camera</span></span>
<span class="act__key">S</span>
</button>
<button class="act" type="button" role="menuitem" data-act="voice">
<svg viewBox="0 0 24 24" aria-hidden="true"><rect x="9" y="3.5" width="6" height="11" rx="3"/><path d="M5.5 11.5a6.5 6.5 0 0 0 13 0M12 18v2.5"/></svg>
<span class="act__text"><span class="act__name">Voice memo</span><span class="act__sub">Up to 10 minutes</span></span>
<span class="act__key">V</span>
</button>
</div>
</div>
<nav class="bar" data-bar>
<span class="bar__pill" data-pill aria-hidden="true"></span>
<button class="tab is-on" type="button" data-tab="home" aria-current="page">
<span class="tab__ico"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M4 10.5 12 4l8 6.5V19a1 1 0 0 1-1 1h-4.5v-5.5h-5V20H5a1 1 0 0 1-1-1z"/></svg></span>
<span class="tab__name">Home</span>
</button>
<button class="tab" type="button" data-tab="notes">
<span class="tab__ico">
<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M6 3.5h8.5L19 8v12.5H6z"/><path d="M9 12h7M9 15.5h5"/></svg>
<span class="badge" data-badge><span class="badge__roll" data-roll></span></span>
</span>
<span class="tab__name">Notes</span>
</button>
<span class="tab tab--plus">
<button class="plus" type="button" data-plus aria-expanded="false" aria-label="Create">
<span class="plus__face" data-face></span>
<svg class="plus__ico" data-pico viewBox="0 0 24 24" aria-hidden="true"><path d="M12 5v14M5 12h14"/></svg>
</button>
</span>
<button class="tab" type="button" data-tab="inbox">
<span class="tab__ico"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M3.5 13.5 6 5h12l2.5 8.5V19a1 1 0 0 1-1 1h-15a1 1 0 0 1-1-1z"/><path d="M3.5 13.5H9a3 3 0 0 0 6 0h5.5"/></svg></span>
<span class="tab__name">Inbox</span>
</button>
<button class="tab" type="button" data-tab="me">
<span class="tab__ico"><svg viewBox="0 0 24 24" aria-hidden="true"><circle cx="12" cy="8.5" r="3.8"/><path d="M4.5 20a7.5 7.5 0 0 1 15 0"/></svg></span>
<span class="tab__name">Profile</span>
</button>
</nav>
</section>
<svg class="cursor" data-cursor viewBox="0 0 24 24" aria-hidden="true"><path d="M5 3.2 19 12.4l-6.3 1.2-3.4 5.9z"/></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.
31 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 “Tab bar with plus actions” from Animorio and fit it into my siteThe panel is a single element that starts with the same position, size and radius as the plus’s circle, measured on the spot, and sits behind the bar: so as it grows it seems to come out from underneath.
The width arrives with power4.out and the height with a back.out just above one: the panel widens straight away and then rises, passing the mark by a pixel before it settles.
Behind the three actions there is a single light highlight: it moves with quickTo to the action under the pointer, so it slides from one to the next instead of switching on and off.
On closing, the labels leave before the panel shrinks, then the panel returns exactly onto the circle; only at the end does the plus squash and the new note land in its tab with a badge.
| Name | File | Default | What it changes |
|---|---|---|---|
APERTURA | script.js | 0.62 | How long the plus’s circle takes to become the panel, in seconds. |
RIMBALZO | script.js | 1.15 | How far the panel overshoots before settling (1 = none). |
SFALSA | script.js | 0.045 | The delay between one action and the next as they come in. |
INDIETRO | script.js | 0.38 | How visible the other tabs stay while the panel is open. |
RAGGIO | script.js | 22 | The radius of the panel’s corners, in pixels. |
GIRO | script.js | 135 | How many degrees the plus turns as it becomes the x. |
PAUSA | script.js | 6 | After how many seconds without touches the drawn pointer starts its loop again. |
In the bottom bar of a phone app with one main action: creating a note, a post, an expense, an event. It also works in the mobile version of a SaaS site.
The same bar at the width of the screen; on a short screen the actions are a little shorter. You tap the plus with a finger, and a tap outside the panel closes it.
No growing and no bounces: the panel fades in and out already in place, the plus becomes an x without turning, the purple tile moves without sliding and the drawn pointer does not run.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 7.2 KB; the libraries: GSAP 28 KB.
Tested on 30 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.