Skip to content
animorio
IT
All components

Customers table columns

Tables, HoverGSAP, CSS onlyMediumCompressed weight: Demo 7.9 KBGSAP 28 KBFreeDownload the zip

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.

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>
<!--
  "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>

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.

22 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 “Customers table columns” 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 sits a very light grey shell with the white customers card of Orbitly, an invented SaaS, inside: at the top the dark mark, «Orbitly / Customers», «1,284 accounts» and on the right the counter «4 of 6 columns». Below, a row of chips: Plan, MRR, Seats, Last active, Health, each with its little box. Then the table: Customer always, with the initials on a small coloured square and the name, and the chosen columns; the plan is a written label (Enterprise, Pro, Starter), the health a green or orange bar with its number. Tapping a chip that is on, the chip squashes and comes back on an elastic, its check erases, the cells of its column shrink and fade one row after the other from the top, then the column folds to zero and the others widen into the room with a small settle. Tapping a chip that is off draws its check, the other columns make room and the new one opens on a spring that goes a little past and settles; the cells rise one after the other and an indigo light runs down from a thin line on the header and fades. The counter’s number rolls up or down. Passing over a row lifts it by a pixel with a soft shadow, and the hairlines beside it disappear. A drawn pointer plays with the chips by itself, now and then resting on a row, and never keeps more than three chosen columns on, so the table fits on a phone too; it really works with mouse, touch and keyboard.

How it works

One variable for every column

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

The right widths for each choice

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.

First the cells, then the column

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.

The light on the new column

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.

The autopilot

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.

Values to change

NameFileDefaultWhat it changes
PRODUCTscript.jsOrbitlyThe product name at the top of the table.
ACCENTscript.js#5b5bf0The colour of the chips that are on and of the light on a new column.
OPEN_TIMEscript.js0.75The seconds a column takes to open.
CLOSE_TIMEscript.js0.5The seconds a column takes to fold away.
BOUNCEscript.js1.3How far the opening column goes past its width before settling.
STAGGERscript.js0.035The seconds between one row’s cell and the one below.
GLOWscript.js1How visible the light running down the new column is.
PAUSEscript.js0.9The seconds the autopilot waits between one gesture and the next.

Try them in the Playground

When to use it

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.

On phones

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.

With reduced motion

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.

Pitfalls

  • With the grid gap, a column at zero still left its empty space: no gap, the space is the right padding inside each cell.
  • With five columns on, on a phone the plan labels and percentages were cut: the autopilot never turns on more than three chosen columns and under 480 pixels the widths are narrower.
  • The light of the new column, on the last column, spilled past the card’s edge: its width stops at the table’s edge.

Libraries

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.

Testing

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