Skip to content
animorio
IT
All components

Orders table loader

Loading, TransitionsGSAP, CSS onlyMediumCompressed weight: Demo 7.3 KBGSAP 28 KBFreeDownload the zip

The loader of the orders table in a made-up online shop's admin panel, on black: the rows are skeletons crossed all together by a single diagonal light, then the data arrives row by row from the top, every bar narrows and dissolves into the real text, the amounts roll, the status pills take their colour and Loading orders becomes 128 orders.

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>
<!--
  "Orders table loader" 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 shop orders table loader with the rows that fill on a wave of light</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 orders table of a made-up online shop's admin panel: it opens as skeleton bars crossed by one diagonal wave
         of light, then the orders arrive row by row and every bar narrows and dissolves into its real value -->
    <section class="card" data-card aria-labelledby="orders-title" aria-busy="true">
      <span class="card__glow" aria-hidden="true"></span>
      <span class="card__grain" aria-hidden="true"></span>

      <header class="head">
        <div class="head__text">
          <p class="crumb"><span data-brand>Mollow</span><svg viewBox="0 0 8 12" aria-hidden="true"><path d="M2 1.5 6 6l-4 4.5"></path></svg><span>Store</span></p>
          <h2 class="title" id="orders-title">Orders</h2>
        </div>
        <div class="head__side">
          <p class="count" aria-live="polite">
            <span class="count__in" data-loading>Loading orders<span class="ell"><i>.</i><i>.</i><i>.</i></span></span>
            <span class="count__in count__done" data-counted><span class="num" data-countnum></span><span class="count__word">orders</span></span>
          </p>
          <button class="reload" type="button" data-reload data-autoclic aria-label="Reload orders">
            <svg class="reload__ic" data-reloadic viewBox="0 0 24 24" aria-hidden="true"><path d="M19.2 12a7.2 7.2 0 1 1-2.1-5.1"></path><path d="M19.4 4.6v3.6h-3.6"></path></svg>
            <span class="reload__word">Reload</span>
          </button>
        </div>
      </header>

      <div class="table" role="table" aria-label="Recent orders">
        <div class="row row--head" role="row">
          <span class="c c--id" role="columnheader">Order</span>
          <span class="c c--who" role="columnheader">Customer</span>
          <span class="c c--amt" role="columnheader">Amount</span>
          <span class="c c--st" role="columnheader">Status</span>
        </div>
        <div class="body" data-body role="rowgroup"></div>
      </div>
    </section>
  </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.

31 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 “Orders table loader” 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 background there is just the orders panel of Mollow, a made-up online shop: a graphite slab with a thread of light on its top edge, a very fine grain and a cool halo in one corner. At the top the path Mollow, Store, the title Orders, on the right Loading orders with three breathing dots and a small Reload button. Below, the Order, Customer, Amount and Status columns and five rows made of skeletons: rounded grey bars, a circle for the avatar and a pill for the status. A single thin slanted light crosses all of them together like a wave, because every bar shows its own piece of one gradient as big as the table. Then the data arrives from the top, one row after the other and left to right: each bar narrows toward its side, blurs and fades while the real text rises out of the blur, passes its place by one pixel and springs back. The order number, the avatar with the initials and the customer's name, the amount with its digits rolling to their value, and the status pill that uncovers itself from the left and takes its colour: Paid in green, Shipped in blue, Refunded in orange, with a little jolt. The hairline under each order redraws from the left. At the end Loading orders leaves upwards and 128 orders arrives with rolling digits. After a few seconds Reload presses itself, the arrow turns once, the data melts back into skeletons from the bottom and everything starts again.

How it works

One light for every row

Every skeleton bar has the same slanted gradient, as big as the table body (background-size with --bw and --bh), shifted by how far the bar sits from the body's corner (--bx and --by, measured with getBoundingClientRect and divided by the page scale). So each bar shows its own piece and the light looks like a single one passing behind them all.

The wave

GSAP runs a number from -30 to 130 with sine.inOut and writes it into the body's --wave variable: the gradient's bright band sits at --wave percent and crosses the table diagonally, with a short pause between passes.

The bar that becomes text

In every cell the bar and the real value sit on top of each other. The timeline narrows the bar with scaleX toward its side (to the right for the amounts), blurs and fades it, while the value rises from 3 pixels and from the blur to one pixel above its place and springs back with elastic.out. Rows start ROW_GAP seconds apart, cells 0.06 apart.

The rolling digits

Each digit is a one line window holding a strip from 0 to 9 repeated twice; the real digit, invisible, gives the width. The strip slides with expo.out to the digit's second copy, each column a little longer than the one before, both in the amounts and in 128 orders.

The pill that takes its colour

The status pill already has its colour; on top a skeleton as big as the pill withdraws with scaleX to the right and uncovers it, then the pill jolts in scale on a spring. Reload plays the loop backwards, from the bottom, and then loads again.

Values to change

NameFileDefaultWhat it changes
BRANDscript.jsMollowThe made-up shop's name, at the top of the panel.
TOTALscript.js128How many orders the count says once the table is loaded.
WAITscript.js1.6How many seconds the skeletons stay before the data arrives.
WAVEscript.js1.5How many seconds the wave of light takes to cross the table.
ROW_GAPscript.js0.2How many seconds between one row arriving and the next.
ROLLscript.js0.9How long the rolling digits of the amounts last, in seconds.
HOLDscript.js3.6How many seconds it stays loaded before reloading on its own.

Try them in the Playground

When to use it

In an online shop's admin panel, in an e-commerce back office, in the dashboard of an app with orders, payments or bookings: wherever a table waits for data from the server and the wait should feel like part of the product.

On phones

The panel narrows to the screen width minus twenty-four pixels, the columns move closer, Reload keeps only its arrow and the row height follows the screen height, so the five rows fit in the box. A finger presses Reload like the mouse.

With reduced motion

No wave of light, rolling digits or springs: the skeletons stay still, then fade out to all the data at once and Loading orders becomes 128 orders.

Pitfalls

  • With one shimmer per bar every bar had its own light and the rows flickered at random: with one gradient as big as the body, shifted by each bar's place, the light is a single one and crosses the table diagonally.
  • Bar positions measured with getBoundingClientRect are already scaled when the viewer shrinks the demo: they are divided by the ratio between the seen width and offsetWidth, and measured again on resize and when the typeface arrives.
  • The fromTo tweens placed later in the timeline applied their start values at once and the texts vanished early: every one has immediateRender: false.
  • The status pill's skeleton is not a separate bar but a layer inside the pill: so it has the same outline and width, and as it withdraws it uncovers the pill already in its colour.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

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

Testing

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