Skip to content
animorio
IT
All components

Row actions menu

Menus, HoverGSAP, CSS onlyMediumCompressed weight: Demo 6.1 KBGSAP 28 KBFreeDownload the zip

One row of a files table and a single gesture: pressing the three dots, the round grey behind them stretches downwards and becomes the actions menu, on a short spring that goes a pixel too far and settles. The dots stand upright while the menu is open, a soft grey slides under the action pointed at and its shortcut wakes up on the right; once an action is chosen, the panel folds back into the disc.

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>
<!--
  "Row actions menu" 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 row actions menu that grows out of the three dots</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">
    <!-- one row, one gesture: the round grey behind the three dots stretches down and becomes the actions menu -->
    <div class="group" data-group>
    <div class="row" data-row>
      <span class="row__tint" data-tint aria-hidden="true"></span>
      <span class="row__type" aria-hidden="true">PDF</span>
      <span class="row__text">
        <span class="row__name">Q3 revenue report</span>
        <span class="row__meta">Edited 2h ago<span class="row__sep" aria-hidden="true"></span>2.4 MB</span>
      </span>
      <button class="kebab" type="button" data-kebab aria-haspopup="menu" aria-expanded="false" aria-controls="actions" aria-label="Row actions">
        <span class="kebab__disc" data-disc aria-hidden="true"></span>
        <svg class="kebab__dots" viewBox="0 0 20 20" aria-hidden="true">
          <circle data-dot cx="4.5" cy="10" r="1.55"/>
          <circle data-dot cx="10" cy="10" r="1.55"/>
          <circle data-dot cx="15.5" cy="10" r="1.55"/>
        </svg>
      </button>

      <div class="menu" id="actions" data-menu role="menu" aria-label="Row actions" hidden>
        <div class="menu__inner" data-inner>
          <span class="menu__glide" data-glide aria-hidden="true"></span>
          <button class="item" type="button" role="menuitem" data-item>
            <svg class="item__icon" viewBox="0 0 20 20" aria-hidden="true"><path d="M4 16h3.2L15.6 7.6a1.6 1.6 0 0 0 0-2.3l-.9-.9a1.6 1.6 0 0 0-2.3 0L4 12.8Z"/><path d="M11.4 5.4l3.2 3.2"/></svg>
            <span class="item__label">Rename</span><span class="item__key">R</span>
          </button>
          <button class="item" type="button" role="menuitem" data-item>
            <svg class="item__icon" viewBox="0 0 20 20" aria-hidden="true"><rect x="7" y="7" width="9" height="9" rx="2"/><path d="M13 4.5H6.5a2 2 0 0 0-2 2V13"/></svg>
            <span class="item__label">Duplicate</span><span class="item__key"><span class="item__cmd">&#8984;</span>D</span>
          </button>
          <button class="item" type="button" role="menuitem" data-item>
            <svg class="item__icon" viewBox="0 0 20 20" aria-hidden="true"><path d="M3.5 6.5a2 2 0 0 1 2-2h3l1.6 1.8h4.4a2 2 0 0 1 2 2v6.2a2 2 0 0 1-2 2h-9a2 2 0 0 1-2-2Z"/><path d="M8.5 11h4.5M11 9l2 2-2 2"/></svg>
            <span class="item__label">Move to</span><span class="item__key">M</span>
          </button>
          <span class="menu__rule" aria-hidden="true"></span>
          <button class="item item--danger" type="button" role="menuitem" data-item data-danger>
            <svg class="item__icon" viewBox="0 0 20 20" aria-hidden="true"><path d="M4.5 6h11M8 6V4.6c0-.5.4-.9.9-.9h2.2c.5 0 .9.4.9.9V6M6 6l.7 9.2c.1 1 .9 1.8 1.9 1.8h2.8c1 0 1.8-.8 1.9-1.8L14 6"/></svg>
            <span class="item__label">Delete</span><span class="item__key">Del</span>
          </button>
        </div>
      </div>
    </div>
    </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.

27 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 “Row actions menu” 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 white, alone in the middle, there is one row of a files table: a small box reading PDF, the name Q3 revenue report, below it Edited 2h ago and 2.4 MB split by a thin vertical line, and on the right the three dots. Hovering lights up a very pale grey disc behind the dots. Pressed, the dots give a little and come back on a spring, the disc fills in and the row takes on the faintest grey, as if selected. Then the disc stretches downwards and to the left and becomes the menu panel: it goes a pixel too far on a short spring and settles, its corners go from round to 14 pixels, the grey turns white and the shadow underneath lengthens. Meanwhile the three dots turn a quarter and stay upright while the menu is open. The actions come in one after the other from above: Rename with R, Duplicate with Cmd and D, Move to with M, a thin rule drawing from the right, and Delete in red with Del. A soft grey slides under the action pointed at, with the pointer or the arrow keys, bouncing by a pixel; under Delete it turns pale pink. The action pointed at gains a little weight and its shortcut moves two pixels towards the word. Once an action is chosen it is pressed, the others vanish quickly, the panel folds back into the disc, the dots lie down again and give a small nod. Esc or a click outside closes it. Until someone touches it, the row plays the round by itself: it opens, runs down the actions, rests on Delete, picks Duplicate and closes.

How it works

Two measured shapes

The panel has two shapes: the disc behind the dots (its position, 34 by 34, half the radius) and the open menu, its right edge lined up with the dots and six pixels below. Both are measured from the row on every opening and on resize, and GSAP goes from one to the other.

The spring that goes a pixel too far

Width and position arrive with back.out, the height with a softer back.out three hundredths later: the panel opens sideways first and then down, and the one-pixel overshoot comes from the ease. Colour and shadow go from the disc’s grey to white with the long shadow at the same time.

The content standing still inside

The actions sit in a container of the final width, pinned to the top right and clipped by the panel: while the panel grows the words never wrap, they are uncovered from the corner of the dots.

The sliding highlight

The grey background is a single element that moves to the y of the action pointed at with back.out; for Delete it changes colour as it moves. The pointer, focus and the arrow keys move it, and Enter chooses.

Values to change

NameFileDefaultWhat it changes
ACCENTscript.js#e5484dThe colour of the destructive action, Delete.
SPRINGscript.js1How springy the panel and the highlight are: 0.4 calm, 2 very bouncy.
SPEEDscript.js1The speed of everything: 2 twice as fast, 0.5 half.
STAGGERscript.js0.035The seconds between one action and the next as the menu opens.
HOLDscript.js1.6How many seconds the closed row rests before playing the gesture again by itself.
AUTOscript.jstrueThe row plays the gesture by itself until someone touches it.

Try them in the Playground

When to use it

For the actions on a row of a table of files, projects or orders, in a dashboard or a back office: the menu grows out of the very button that opens it, so it is clear where it comes from and where it goes back.

On phones

On the phone the row takes the screen width minus the margins and the menu stays attached to the dots, always inside; there is no hover, everything else is the same.

With reduced motion

The menu fades in and out already in its final shape, with no springs or movement; the highlight jumps to its place and fades in.

Pitfalls

  • The actions go in a container of the final width pinned to the right: inside a growing panel with a free width, the words would wrap on every frame.
  • Both shapes are measured on every opening and on resize, not just once: the demo window changes size while you look at it, and the starting disc would no longer sit over the dots.
  • The shadow only animates if both shadows have the same number of layers and the same units: the switched-off one is the same shadow with everything at zero and transparent.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

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

Testing

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