
The elastic button
Buttons, Hover, Text
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.
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">⌘</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>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
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 siteThe 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.
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 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 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.
| Name | File | Default | What it changes |
|---|---|---|---|
ACCENT | script.js | #e5484d | The colour of the destructive action, Delete. |
SPRING | script.js | 1 | How springy the panel and the highlight are: 0.4 calm, 2 very bouncy. |
SPEED | script.js | 1 | The speed of everything: 2 twice as fast, 0.5 half. |
STAGGER | script.js | 0.035 | The seconds between one action and the next as the menu opens. |
HOLD | script.js | 1.6 | How many seconds the closed row rests before playing the gesture again by itself. |
AUTO | script.js | true | The row plays the gesture by itself until someone touches 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 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.
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.
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.
Tested on 31 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.