Skip to content
animorio
IT
All components

Tab bar with plus actions

Navigation, HoverGSAP, CSS onlyMediumCompressed weight: Demo 7.2 KBGSAP 28 KBFreeDownload the zip

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.

The code

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>

Playground

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

Or ask your AI assistant for it

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 site
Platform licenseFree on your sites and your clients’ sites. Want it inside a website builder, a template platform or a client dashboard? There’s a license for agencies and platforms.

What it does

On a white background, alone in the middle, the bottom navigation bar of Pagewell, a made-up notes app: a white pill with a wide shadow and five places, Home, Notes, the plus, Inbox and Profile, each with its line icon and its name underneath. The active tab is purple on a very light purple tile, and above the bar a grey line says Tap + to create. The plus is a black circle with a white cross. Press it and the grey line leaves, the plus turns into an x, and the black circle comes out from behind the bar and grows upwards and sideways into a dark panel as wide as the bar, with a small bounce as it arrives; meanwhile the other tabs drop a pixel and a half and step back. In the panel there is the title Create and three actions that rise one after another, slightly blurred at first: New note, Scan document and Voice memo, each with its icon, a small line underneath and its keyboard letter. Moving over the actions, a single light highlight slides from one to the next and the icon under the pointer brightens. Choosing an action makes the row give a touch, the labels disappear, the panel folds back into the plus, the plus becomes a plus again, squashes and bounces, and a small purple badge appears on the Notes tab while its icon hops. Tapping Notes slides the purple tile over to it on a spring and the badge goes away. A drawn pointer runs the whole loop by itself and stops as soon as you touch it.

How it works

The panel is born from the plus

The 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.

Width and height on two curves

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.

One highlight for the actions

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.

The return and the badge

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.

Values to change

NameFileDefaultWhat it changes
APERTURAscript.js0.62How long the plus’s circle takes to become the panel, in seconds.
RIMBALZOscript.js1.15How far the panel overshoots before settling (1 = none).
SFALSAscript.js0.045The delay between one action and the next as they come in.
INDIETROscript.js0.38How visible the other tabs stay while the panel is open.
RAGGIOscript.js22The radius of the panel’s corners, in pixels.
GIROscript.js135How many degrees the plus turns as it becomes the x.
PAUSAscript.js6After how many seconds without touches the drawn pointer starts its loop again.

Try them in the Playground

When to use it

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.

On phones

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.

With reduced motion

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.

Pitfalls

  • The panel must be measured on the plus again at every opening and closing and on resize: the bar changes width with the screen and a circle measured earlier would end up in the wrong place.
  • The purple tile lives inside the bar: its position must be worked out from the bar’s edge (border included), not the container’s, or it slides a pixel off.
  • The labels must leave before the panel shrinks: with both at once the text gets squeezed against the edge and reads half cut.
  • The drawn pointer sends no real events: the highlight on the actions must be lit by a per-frame check on its position, the same the mouse uses.

Libraries

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.

Testing

Tested on 30 October 2026

  • Desktop: Done
  • Phone: Done
  • Reduced motion: Done
  • Safari on iPhone: To do

License

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.

All components