
The elastic button
Buttons, Hover, Text
The customers table of an invented SaaS dashboard, Orbitly, in a light grey shell with the white card inside: above the table a chip for each column, and each chip shows or hides its own. The column that goes lets its cells fade one row after the other and folds away while the others widen into the room it leaves; the one that comes opens on a spring, its cells rise one after the other and a soft light runs down the column. The chip’s check draws itself, the column counter rolls, the row under the pointer lifts by a pixel with its shadow.
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>
<!--
"Customers table columns" 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 customers table with columns to choose</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>
<!-- the customers table of a SaaS dashboard: each chip shows or hides a column; the column opens on a spring and
catches a soft light, or folds away while the others make room; a row under the pointer lifts by a pixel -->
<div class="wrap" data-wrap>
<section class="shell" aria-labelledby="t-title">
<header class="shell__head">
<svg class="shell__mark" viewBox="0 0 24 24" aria-hidden="true"><circle cx="12" cy="12" r="7.2"></circle><path d="M4.6 14.6c4.4 1.6 10.4 1.4 14.8-1.6"></path></svg>
<div class="shell__text">
<p class="shell__title" id="t-title"><span data-product>Orbitly</span> <span class="shell__crumb">/ Customers</span></p>
<p class="shell__sub">1,284 accounts</p>
</div>
<p class="count" aria-live="polite"><span class="count__roll" data-count>4</span><span>of 6 columns</span></p>
</header>
<div class="card">
<div class="chips" role="group" aria-label="Columns" data-chips></div>
<div class="table" role="table" aria-label="Customers" data-table>
<span class="glow" data-glow aria-hidden="true"></span>
<div class="thead" role="row" data-head></div>
<div class="tbody" data-rows></div>
</div>
</div>
</section>
</div>
<svg class="ghost" data-ghost viewBox="0 0 24 24" aria-hidden="true"><path d="M5 3.2 19.2 11l-6.3 1.6-3.3 5.9Z"></path></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.
22 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 “Customers table columns” from Animorio and fit it into my siteThe header and every row are CSS grids with grid-template-columns: var(--cols). The script keeps each column’s width in a number and rewrites the variable on the table at every frame: header and rows move together without measuring anything, and the customer column (minmax(0, 1fr)) takes what is left.
At every choice the new widths of all the columns that are on are worked out: if they do not fit beside the minimum of the name, they all shrink in proportion. Then GSAP takes each number to its target: the new one with back.out, which goes a little past and settles, the others with power3.out, a bit sooner.
On closing, the cells fade and shrink with a stagger from the top, and only then does the width go to zero: the column never cuts a word in half in front of you. Opening is the other way round: first the width, then the cells rising. Each cell has hidden overflow and the grid has no gap, so at zero it really vanishes.
A single layer, an indigo gradient fading downwards with a one pixel line on top, is placed at every frame over the opening column (reading the header’s offsetLeft), stretches down and then fades.
A timeline with repeatRefresh takes a drawn pointer to the chips, reading their real position every time, and calls the same function as a real click; the sequence comes back to where it started and never turns on more than three chosen columns. At the first real touch it stops, and it starts again after eight quiet seconds.
| Name | File | Default | What it changes |
|---|---|---|---|
PRODUCT | script.js | Orbitly | The product name at the top of the table. |
ACCENT | script.js | #5b5bf0 | The colour of the chips that are on and of the light on a new column. |
OPEN_TIME | script.js | 0.75 | The seconds a column takes to open. |
CLOSE_TIME | script.js | 0.5 | The seconds a column takes to fold away. |
BOUNCE | script.js | 1.3 | How far the opening column goes past its width before settling. |
STAGGER | script.js | 0.035 | The seconds between one row’s cell and the one below. |
GLOW | script.js | 1 | How visible the light running down the new column is. |
PAUSE | script.js | 0.9 | The seconds the autopilot waits between one gesture and the next. |
For the tables of a dashboard or an admin panel with more columns than are always needed: a SaaS’s customers, a shop’s orders, a hotel’s bookings, an event’s attendees. The person using it picks what to look at, and the table stays readable on a phone too.
Under 480 pixels the chips sit in a single row (Last active becomes Active), the columns take narrower widths and shrink in proportion if they do not fit; the customer’s name is shortened with an ellipsis. Rows are sized on the height too (7.2vh between 30 and 42 pixels), so the table fits in the box.
No springs and no movement: the column takes its width at once and the cells fade in or out, the check draws quickly, the counter changes number without rolling, the light and the drawn pointer stay hidden.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 7.9 KB; the libraries: GSAP 28 KB.
Tested on 6 November 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.