Skip to content
animorio
IT
All components

Editor menu bar

Menus, Hover, TransitionsGSAP, CSS onlyAdvancedCompressed weight: Demo 16 KBGSAP 28 KBFreeDownload the zip

The dark glass menu bar of Lindwell, a made-up documents app: File, Edit, View and Insert. One panel is every menu: it opens from the item scaling from its corner, the rows arrive staggered, and running along the bar it slides to the next menu changing size on a spring. A glass pill follows the pointer from row to row, Move to opens the folders to the side lined up with its row, with the safe triangle faintly drawn, and Delete turns red and asks for confirmation in its own row, which widens with the panel.

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>
<!--
  "Editor menu bar" 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 document editor menu bar with the submenu that opens to the side</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">
    <!-- the menu bar of Lindwell, a made-up documents app, in dark glass. One panel serves every menu: it opens
         from the item, scaling from its top corner, and slides and changes size when the pointer runs along the bar.
         Move to opens its folders to the side, lined up with its row; Delete asks in its own row, which widens. -->
    <div class="app" data-app>
      <span class="app__glow" aria-hidden="true"><span class="app__glow-a"></span><span class="app__glow-b"></span></span>

      <nav class="bar" aria-label="Lindwell">
        <span class="bar__mark" aria-hidden="true">
          <svg viewBox="0 0 20 20"><path d="M5 3.5h6.2L15 7.3V16.5H5z"/><path class="bar__mark-fold" d="M11.2 3.5v3.8H15"/><path class="bar__mark-line" d="M7.6 11h4.8M7.6 13.4h3.2"/></svg>
        </span>
        <span class="bar__pill" data-barpill aria-hidden="true"></span>
        <div class="bar__items" role="menubar" aria-label="Lindwell menus">
          <button class="bar__item" type="button" role="menuitem" aria-haspopup="menu" aria-expanded="false" data-open="file">File</button>
          <button class="bar__item" type="button" role="menuitem" aria-haspopup="menu" aria-expanded="false" data-open="edit">Edit</button>
          <button class="bar__item" type="button" role="menuitem" aria-haspopup="menu" aria-expanded="false" data-open="view">View</button>
          <button class="bar__item" type="button" role="menuitem" aria-haspopup="menu" aria-expanded="false" data-open="insert">Insert</button>
        </div>
        <span class="bar__doc" aria-hidden="true">
          <span class="bar__doc-name" data-docname>Q4 roadmap</span>
          <svg class="bar__doc-cloud" viewBox="0 0 16 16"><path d="M4.6 12.2h6.9a2.7 2.7 0 00.3-5.4 3.8 3.8 0 00-7.3.9 2.3 2.3 0 00.1 4.5z"/><path class="bar__doc-tick" pathLength="1" d="M6.3 9.4l1.4 1.3 2.4-2.6"/></svg>
        </span>
      </nav>

      <!-- the one panel of the menus -->
      <div class="panel" data-panel hidden>
        <span class="panel__sheen" aria-hidden="true"></span>
        <span class="pill" data-pill aria-hidden="true"></span>

        <div class="page" role="menu" aria-label="File" data-page="file">
          <div class="row" role="menuitem" tabindex="-1" data-row data-toast="New document created">
            <svg class="row__icon" viewBox="0 0 16 16" aria-hidden="true"><path d="M4 2.5h5l3 3v8H4z"/><path class="ic-fold" d="M9 2.5v3h3"/><path class="ic-plus" d="M8 8.2v3.6M6.2 10h3.6"/></svg>
            <span class="row__label">New document</span><span class="row__keys" data-keys="N"></span>
          </div>
          <div class="row" role="menuitem" tabindex="-1" data-row data-toast="Duplicated as Q4 roadmap copy">
            <svg class="row__icon" viewBox="0 0 16 16" aria-hidden="true"><path class="ic-back" d="M3.5 10.5v-7h7"/><path class="ic-front" d="M5.5 5.5h7v7h-7z"/></svg>
            <span class="row__label">Duplicate</span><span class="row__keys" data-keys="D"></span>
          </div>
          <div class="row" role="menuitem" tabindex="-1" data-row data-toast="Ready to rename">
            <svg class="row__icon" viewBox="0 0 16 16" aria-hidden="true"><path class="ic-pen" d="M3 13l.6-2.6 6.9-6.9 2 2-6.9 6.9zM9.3 4.7l2 2"/></svg>
            <span class="row__label">Rename</span><span class="row__keys" data-keys="R"></span>
          </div>
          <span class="rule" aria-hidden="true"></span>
          <div class="row" role="menuitem" tabindex="-1" aria-haspopup="menu" aria-expanded="false" data-row data-sub-open>
            <svg class="row__icon" viewBox="0 0 16 16" aria-hidden="true"><path class="ic-lid" d="M2.5 6V4h4l1.5 1.5h5.5V6"/><path d="M2.5 6h11v6.5h-11z"/></svg>
            <span class="row__label">Move to</span>
            <svg class="row__chev" viewBox="0 0 16 16" aria-hidden="true"><path d="M6.5 4.5L10 8l-3.5 3.5"/></svg>
          </div>
          <div class="row" role="menuitem" tabindex="-1" data-row data-toast="Opening version history">
            <svg class="row__icon" viewBox="0 0 16 16" aria-hidden="true"><circle cx="8" cy="8" r="5.5"/><path class="ic-hand" d="M8 5v3l2 1.3"/></svg>
            <span class="row__label">Version history</span><span class="row__keys" data-keys="H" data-shift></span>
          </div>
          <span class="rule" aria-hidden="true"></span>
          <div class="row row--danger" role="menuitem" tabindex="-1" data-row data-delete>
            <svg class="row__icon" viewBox="0 0 16 16" aria-hidden="true"><path class="ic-trash-lid" d="M3 4.5h10M6.5 4.5V3h3v1.5"/><path d="M4.3 4.5l.7 8.5h6l.7-8.5M6.8 7v3.6M9.2 7v3.6"/></svg>
            <span class="row__label" data-del-label>Delete</span><span class="row__keys" data-keys="Backspace"></span>
            <span class="ask" data-ask aria-hidden="true">
              <span class="ask__q">Delete<span class="ask__long"> Q4 roadmap</span> for everyone?</span>
              <button class="ask__btn" type="button" tabindex="-1" data-cancel>Cancel</button>
              <button class="ask__btn ask__btn--red" type="button" tabindex="-1" data-confirm>Delete</button>
            </span>
          </div>
        </div>

        <div class="page" role="menu" aria-label="Edit" data-page="edit">
          <div class="row" role="menuitem" tabindex="-1" data-row data-toast="Undid typing">
            <svg class="row__icon" viewBox="0 0 16 16" aria-hidden="true"><path class="ic-turn" d="M5.5 4L3 6.5 5.5 9M3 6.5h6.5a3 3 0 010 6H7"/></svg>
            <span class="row__label">Undo</span><span class="row__keys" data-keys="Z"></span>
          </div>
          <div class="row" role="menuitem" tabindex="-1" data-row data-toast="Redid typing">
            <svg class="row__icon" viewBox="0 0 16 16" aria-hidden="true"><path class="ic-turn" d="M10.5 4L13 6.5 10.5 9M13 6.5H6.5a3 3 0 000 6H9"/></svg>
            <span class="row__label">Redo</span><span class="row__keys" data-keys="Z" data-shift></span>
          </div>
          <span class="rule" aria-hidden="true"></span>
          <div class="row" role="menuitem" tabindex="-1" data-row data-toast="Cut to the clipboard">
            <svg class="row__icon" viewBox="0 0 16 16" aria-hidden="true"><circle cx="5" cy="11.5" r="1.8"/><circle cx="11" cy="11.5" r="1.8"/><path class="ic-blade" d="M6.3 10.2L11.5 3M9.7 10.2L4.5 3"/></svg>
            <span class="row__label">Cut</span><span class="row__keys" data-keys="X"></span>
          </div>
          <div class="row" role="menuitem" tabindex="-1" data-row data-toast="Copied to the clipboard">
            <svg class="row__icon" viewBox="0 0 16 16" aria-hidden="true"><path class="ic-back" d="M3.5 10.5v-7h7"/><path class="ic-front" d="M5.5 5.5h7v7h-7z"/></svg>
            <span class="row__label">Copy</span><span class="row__keys" data-keys="C"></span>
          </div>
          <div class="row" role="menuitem" tabindex="-1" data-row data-toast="Pasted">
            <svg class="row__icon" viewBox="0 0 16 16" aria-hidden="true"><path d="M5.5 3.5h-1v10h7v-10h-1"/><path class="ic-clip" d="M6 2.5h4v2H6z"/></svg>
            <span class="row__label">Paste</span><span class="row__keys" data-keys="V"></span>
          </div>
          <span class="rule" aria-hidden="true"></span>
          <div class="row" role="menuitem" tabindex="-1" data-row data-toast="Find in Q4 roadmap">
            <svg class="row__icon" viewBox="0 0 16 16" aria-hidden="true"><circle class="ic-lens" cx="7" cy="7" r="4"/><path d="M10 10l3 3"/></svg>
            <span class="row__label">Find</span><span class="row__keys" data-keys="F"></span>
          </div>
        </div>

        <div class="page" role="menu" aria-label="View" data-page="view">
          <div class="row" role="menuitemcheckbox" aria-checked="true" tabindex="-1" data-row data-toggle>
            <svg class="row__icon row__tick" viewBox="0 0 16 16" aria-hidden="true"><path pathLength="1" d="M3.8 8.4l2.7 2.6 5.7-6"/></svg>
            <span class="row__label">Outline</span><span class="row__keys" data-keys="O" data-shift></span>
          </div>
          <div class="row" role="menuitemcheckbox" aria-checked="false" tabindex="-1" data-row data-toggle>
            <svg class="row__icon row__tick" viewBox="0 0 16 16" aria-hidden="true"><path pathLength="1" d="M3.8 8.4l2.7 2.6 5.7-6"/></svg>
            <span class="row__label">Word count</span><span class="row__keys" data-keys="C" data-shift></span>
          </div>
          <div class="row" role="menuitemcheckbox" aria-checked="false" tabindex="-1" data-row data-toggle>
            <svg class="row__icon row__tick" viewBox="0 0 16 16" aria-hidden="true"><path pathLength="1" d="M3.8 8.4l2.7 2.6 5.7-6"/></svg>
            <span class="row__label">Focus mode</span><span class="row__keys" data-keys="J"></span>
          </div>
          <span class="rule" aria-hidden="true"></span>
          <div class="row" role="menuitem" tabindex="-1" data-row data-toast="Zoom 110%">
            <svg class="row__icon" viewBox="0 0 16 16" aria-hidden="true"><circle cx="7" cy="7" r="4"/><path d="M10 10l3 3M5.4 7h3.2M7 5.4v3.2"/></svg>
            <span class="row__label">Zoom in</span><span class="row__keys" data-keys="+"></span>
          </div>
          <div class="row" role="menuitem" tabindex="-1" data-row data-toast="Zoom 90%">
            <svg class="row__icon" viewBox="0 0 16 16" aria-hidden="true"><circle cx="7" cy="7" r="4"/><path d="M10 10l3 3M5.4 7h3.2"/></svg>
            <span class="row__label">Zoom out</span><span class="row__keys" data-keys="-"></span>
          </div>
        </div>

        <div class="page" role="menu" aria-label="Insert" data-page="insert">
          <div class="row" role="menuitem" tabindex="-1" data-row data-toast="Image placeholder added">
            <svg class="row__icon" viewBox="0 0 16 16" aria-hidden="true"><path d="M2.5 3.5h11v9h-11z"/><path class="ic-hill" d="M2.5 11l3.3-3.2 2.6 2.4 1.8-1.6 3.3 2.9"/><circle cx="10.5" cy="6" r="1"/></svg>
            <span class="row__label">Image</span>
          </div>
          <div class="row" role="menuitem" tabindex="-1" data-row data-toast="Table added">
            <svg class="row__icon" viewBox="0 0 16 16" aria-hidden="true"><path d="M2.5 3.5h11v9h-11zM2.5 7h11M2.5 10h11M7 3.5v9"/></svg>
            <span class="row__label">Table</span>
          </div>
          <div class="row" role="menuitem" tabindex="-1" data-row data-toast="Comment started">
            <svg class="row__icon" viewBox="0 0 16 16" aria-hidden="true"><path d="M3 3.5h10v7H7.5L4.5 13v-2.5H3z"/></svg>
            <span class="row__label">Comment</span><span class="row__keys" data-keys="M" data-shift></span>
          </div>
          <span class="rule" aria-hidden="true"></span>
          <div class="row" role="menuitem" tabindex="-1" data-row data-toast="Divider added">
            <svg class="row__icon" viewBox="0 0 16 16" aria-hidden="true"><path d="M2.5 8h11M5 5h6M5 11h6"/></svg>
            <span class="row__label">Divider</span>
          </div>
          <div class="row" role="menuitem" tabindex="-1" data-row data-toast="Date added">
            <svg class="row__icon" viewBox="0 0 16 16" aria-hidden="true"><path d="M2.5 4h11v9h-11zM2.5 7h11M5.5 2.5v3M10.5 2.5v3"/></svg>
            <span class="row__label">Date</span>
          </div>
        </div>
      </div>

      <!-- the folders of Move to, to the side -->
      <div class="panel panel--sub" role="menu" aria-label="Move to" data-sub hidden>
        <span class="panel__sheen" aria-hidden="true"></span>
        <span class="pill" data-subpill aria-hidden="true"></span>
        <div class="page page--sub is-on">
          <div class="row" role="menuitemradio" aria-checked="false" tabindex="-1" data-row data-folder="Inbox">
            <svg class="row__icon" viewBox="0 0 16 16" aria-hidden="true"><path d="M2.5 9l1.6-5.5h7.8L13.5 9v3.5h-11zM2.5 9h3l1 1.5h3l1-1.5h3"/></svg>
            <span class="row__label">Inbox</span><svg class="row__mark" viewBox="0 0 16 16" aria-hidden="true"><path pathLength="1" d="M3.8 8.4l2.7 2.6 5.7-6"/></svg>
          </div>
          <div class="row" role="menuitemradio" aria-checked="true" tabindex="-1" data-row data-folder="Roadmaps">
            <svg class="row__icon" viewBox="0 0 16 16" aria-hidden="true"><path class="ic-lid" d="M2.5 6V4h4l1.5 1.5h5.5V6"/><path d="M2.5 6h11v6.5h-11z"/></svg>
            <span class="row__label">Roadmaps</span><svg class="row__mark" viewBox="0 0 16 16" aria-hidden="true"><path pathLength="1" d="M3.8 8.4l2.7 2.6 5.7-6"/></svg>
          </div>
          <div class="row" role="menuitemradio" aria-checked="false" tabindex="-1" data-row data-folder="Design reviews">
            <svg class="row__icon" viewBox="0 0 16 16" aria-hidden="true"><path class="ic-lid" d="M2.5 6V4h4l1.5 1.5h5.5V6"/><path d="M2.5 6h11v6.5h-11z"/></svg>
            <span class="row__label">Design reviews</span><svg class="row__mark" viewBox="0 0 16 16" aria-hidden="true"><path pathLength="1" d="M3.8 8.4l2.7 2.6 5.7-6"/></svg>
          </div>
          <div class="row" role="menuitemradio" aria-checked="false" tabindex="-1" data-row data-folder="Team wiki">
            <svg class="row__icon" viewBox="0 0 16 16" aria-hidden="true"><path class="ic-lid" d="M2.5 6V4h4l1.5 1.5h5.5V6"/><path d="M2.5 6h11v6.5h-11z"/></svg>
            <span class="row__label">Team wiki</span><svg class="row__mark" viewBox="0 0 16 16" aria-hidden="true"><path pathLength="1" d="M3.8 8.4l2.7 2.6 5.7-6"/></svg>
          </div>
          <span class="rule" aria-hidden="true"></span>
          <div class="row" role="menuitemradio" aria-checked="false" tabindex="-1" data-row data-folder="Archive">
            <svg class="row__icon" viewBox="0 0 16 16" aria-hidden="true"><path d="M2.5 3.5h11v3h-11zM3.5 6.5v6h9v-6M6.5 9h3"/></svg>
            <span class="row__label">Archive</span><svg class="row__mark" viewBox="0 0 16 16" aria-hidden="true"><path pathLength="1" d="M3.8 8.4l2.7 2.6 5.7-6"/></svg>
          </div>
        </div>
      </div>

      <!-- the safe triangle: while the pointer crosses it on the way to the folders, the rows under it wait -->
      <svg class="safe" data-safe aria-hidden="true"><polygon data-safe-poly points="0,0 0,0 0,0"/></svg>

      <div class="toast" data-toast-el role="status" aria-live="polite">
        <svg class="toast__icon" viewBox="0 0 16 16" aria-hidden="true"><path pathLength="1" data-toast-tick d="M3.8 8.4l2.7 2.6 5.7-6"/></svg>
        <span class="toast__words" data-toast-words>Moved</span>
        <button class="toast__undo" type="button" data-undo>Undo</button>
      </div>

      <svg class="hand" data-hand viewBox="0 0 24 24" aria-hidden="true"><path d="M5 2.5l13.2 12.1-5.9.4 3.4 6.4-2.6 1.3-3.3-6.5L5 20.3z"/></svg>
    </div>
  </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.

61 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 “Editor menu bar” 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 black page sits the menu bar of Lindwell, a made-up documents app: a strip of dark glass with a one pixel edge that catches the light on top and a soft many layer shadow, the violet mark with the folded sheet, the items File, Edit, View and Insert and on the right the document's name, Q4 roadmap, with the cloud of the saved copy. Under the glass a violet and blue light breathes and drifts slowly. The pilot's pointer clicks File: a glass pill lights up under the item and the menu opens from its corner, scaling with a pixel of overshoot, while the rows arrive one after the other: New document, Duplicate, Rename, Move to with its little chevron, Version history and, after a rule, Delete in red, each with its icon and its shortcut small on the right. Going down, a glass pill follows the pointer on a spring and every icon makes its own move: the plus turns, the two sheets part, the pencil writes, the clock hand goes round, the folder's lid lifts. On Move to, after a moment, the folders open to the side, Inbox, Roadmaps with the violet check, Design reviews, Team wiki and Archive, with the first row lined up with the item. The pointer goes there in a diagonal crossing Version history, but a dashed, faintly tinted triangle, from the pointer to the edge of the folders, keeps the submenu open. Design reviews chosen, the check moves, the pill blinks, the menu closes and a note rises at the bottom: Moved to Design reviews, with Undo. Then the pilot opens Edit and runs along the bar: the same panel slides to View and Insert and back to File changing width and height on a spring, the old rows leaving one way and the new ones coming in from the other; in View it turns on Word count with its check. On Delete the pill turns red; at the click the row becomes the question Delete Q4 roadmap for everyone? with Cancel and the red Delete button, and the panel widens to fit it. Confirmed, the menu closes, the document's name dims and the red note says Q4 roadmap moved to Trash; Undo puts it back.

How it works

One panel for every menu

The four menus are four pages stacked inside the same glass panel, and only one is seen. The panel never changes element: GSAP gives it the x, y, width and height of the page that is on, measured once with offsetWidth and offsetHeight (pages hidden with visibility hidden can still be measured). Going from File to View the panel moves to its new place on a spring, the old page leaves 14 pixels one way and the new one comes in 16 from the other, depending on the direction along the bar.

The spring written as an ease

The opening and the changes of size use a hand written ease: the response of a spring damped at BOUNCE (0.72), with the frequency chosen so that it is still by the end of the tween. Over a forty pixel change it passes the mark by one or two pixels and comes back. The opening starts at scale 0.9 with the transform origin under the middle of the item, so the menu is born from the item that opens it.

The pills on springs

The pill of the rows, the one of the folders and the one of the bar are layers of their own under the words. A GSAP ticker integrates three springs every frame (position, height, width) with PILL_STIFFNESS and PILL_DAMPING, in two half steps and with the step capped at 1/30 s; when they are still it writes nothing. The pill takes its width from the panel, so when the Delete row widens the pill widens too, with the same overshoot.

The safe triangle

While the pointer is on Move to the script remembers its last point. If it then crosses another row while the folders are open, it checks whether it lies inside the triangle between that point and the two corners of the submenu's near edge (the sign of three cross products): inside, the row under it waits SAFE_WAIT seconds before taking the pill, and if the pointer reaches the folders it never takes it. The triangle is drawn as a dashed, faintly tinted SVG polygon, only while it is at work.

The folders to the side, or underneath

The submenu goes to the right of the panel, with its first row at the height of Move to; if there is no room on the right it goes to the left, and on a narrow screen it drops just under its row, 28 pixels in, and the triangle aims at its top edge. The same for Delete: if the whole question does not fit, it loses Q4 roadmap and reads Delete for everyone?.

One pointer for the pilot and the hand

No row has a mouseenter: hovering and clicking are worked out from the rows' offsetTop and the panel's position, in the demo's own coordinates. So the pilot's fake pointer, the mouse, a finger and the keyboard all go through the same function. As soon as a real hand moves the pilot stops; after six still seconds the demo tidies up and the pilot starts again. From the keyboard: arrows, Enter, Esc and Tab, with the menubar, menu, menuitemcheckbox and menuitemradio roles.

Values to change

NameFileDefaultWhat it changes
BOUNCEscript.js0.72The panel's spring: lower bounces more (0.5), 1 lands without passing the mark.
MORPHscript.js0.5The seconds of the panel sliding and resizing from one menu to the next.
STAGGERscript.js0.028The seconds between one row and the next as a menu opens.
PILL_STIFFNESSscript.js520How quickly the pill reaches the row under the pointer.
PILL_DAMPINGscript.js34The pill's damping: lower passes the row and comes back.
SUB_DELAYscript.js0.14The seconds on Move to before the folders open.
SAFE_WAITscript.js0.32How long the rows under the safe triangle wait.
SHOW_SAFEscript.jstrueDraw the safe triangle faintly while it is at work.
TOAST_HOLDscript.js2.2The seconds of the note at the bottom.
PACEscript.js1The pilot's pauses: higher waits longer between moves.
LOOPscript.jstrueThe pilot plays the story again and again.

Try them in the Playground

When to use it

For a document editor, a writing app, a back office tool or a dashboard that wants the menus of a desktop program in the browser: File, Edit, View, with the folders in a submenu and a delete that asks for confirmation without opening a dialog. It also works on the landing page of a team app, as a live demonstration, and as a model for any menu with a second level where the safe triangle stops it closing halfway there.

On phones

The same animation with adapted sizes: the piece is 94% of the screen wide and at most 92% of the window high, the rows get shorter with the height, the document's name in the bar goes, the folders drop under Move to instead of opening to the side and the Delete question gets shorter. With a finger: a tap opens the menu, a tap chooses, a sliding finger moves the pill.

With reduced motion

Nothing slides or bounces: the menus fade in and out in place, the panel changes size without overshoot, the pill jumps from row to row with a fade, the folders and the Delete question appear already in place and the triangle is not drawn. The pilot's pointer does not cross the screen: it fades out and back in where it has to click.

Pitfalls

  • The folders' page has the is-on class and visibility visible, which wins over the hidden panel's visibility hidden: the submenu showed at the top before it opened. A hidden panel now also hides its page that is on, with a rule of its own.
  • Icons with transform-box fill-box in the CSS and GSAP's transformOrigin added up: the plus of New document stayed outside the sheet after the first pass. On SVG the origin is worked out by GSAP alone.
  • On a phone the panel and the folders do not fit side by side in 341 pixels: laid over the panel they covered Move to; now they drop under the row and the triangle aims at their top edge.
  • The whole Delete question was wider than the demo on a phone and got cut: it is measured first with scrollWidth and, if it does not fit, it drops the document's name.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

Compressed with gzip, the three demo files weigh 16 KB; the libraries: GSAP 28 KB.

Testing

Tested on 7 November 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