Skip to content
animorio
IT
All components

Table ready notification

Notifications, Transitions, HoverGSAP, CSS onlyAdvancedCompressed weight: Demo 11 KBGSAP 28 KBFreeDownload the zip

The waitlist toast of Lume, an invented trattoria, on pure white, like a Dribbble shot. It says You’re 4th in line, about 15 min, with a small line of four marks where yours is lit; then the line moves: the mark at the front leaves through a thin door, the others step forward on a real spring, your place rolls from 4th to 3rd, 2nd and next and the minutes get shorter. When the table is ready a band of light crosses the card, which opens on Table 12 · by the window, the Hold for 5:00 countdown on a ring that runs out and two buttons: I’m coming confirms with a check and folds it away, Need 5 more min fills the ring again.

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>
<!--
  "Table ready notification" 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 table ready notification of a restaurant waitlist</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 waitlist notification of Lume, a trattoria: your place in line rolls down from 4th to next while the
         marks of the line slide forward and the ones ahead leave through the door. Then the table is ready: the
         card opens on a spring with the table, a hold countdown on a ring that runs out, and two buttons -->
    <div class="slot" data-slot>
      <section class="toast" data-card aria-label="Lume waitlist">
        <span class="toast__light" aria-hidden="true"></span>
        <span class="toast__sheen" data-sheen aria-hidden="true"></span>

        <button class="toast__head" type="button" data-head aria-expanded="false" aria-controls="more" aria-disabled="true">
          <span class="tile" data-tile aria-hidden="true">
            <span class="tile__face">
              <span class="roll tile__num" data-num><span class="r">4</span></span>
              <svg class="tile__table" data-ttable viewBox="0 0 24 24"><rect x="6.5" y="8" width="11" height="8" rx="2.2"/><path d="M9 5.2h6M9 18.8h6"/></svg>
              <svg class="tile__check" data-tcheck viewBox="0 0 24 24"><path pathLength="1" d="M6.6 12.4l3.5 3.5 7.3-7.6"/></svg>
            </span>
          </span>
          <span class="head__text">
            <span class="head__row">
              <span class="head__title"><span class="roll" data-title><span class="r">You're 4th in line</span></span></span>
              <span class="head__when"><span class="roll" data-when><span class="r">now</span></span></span>
            </span>
            <span class="head__sub">
              <span class="line" data-line aria-hidden="true"><span class="line__door"></span></span>
              <span class="roll" data-sub><span class="r">about 15 min</span></span>
            </span>
          </span>
          <svg class="chev" data-chev viewBox="0 0 16 16" aria-hidden="true"><path d="M4.5 6.5L8 10l3.5-3.5"/></svg>
        </button>

        <div class="toast__more" id="more" data-more>
          <span class="rule" aria-hidden="true"></span>

          <div class="hold" data-part>
            <span class="ring" aria-hidden="true">
              <svg viewBox="0 0 44 44">
                <circle class="ring__track" cx="22" cy="22" r="17"/>
                <path class="ring__arc" data-arc pathLength="1" d="M22 5a17 17 0 1 1 0 34a17 17 0 1 1 0-34"/>
              </svg>
              <svg class="ring__ico" data-rico viewBox="0 0 20 20"><path d="M10 6.2V10l2.6 1.7"/></svg>
            </span>
            <span class="hold__text">
              <span class="hold__label">Hold for</span>
              <span class="clock" data-clock aria-hidden="true"></span>
            </span>
            <span class="hold__party">
              <span class="hold__label">Party of 2</span>
              <span class="hold__place">Lume · Via Tortona</span>
            </span>
          </div>

          <div class="acts" data-part>
            <button class="act act--ghost" type="button" data-more5><span class="act__face"><span class="roll" data-more5w><span class="r">Need 5 more min</span></span></span></button>
            <button class="act act--solid" type="button" data-coming>
              <span class="act__face">
                <svg class="act__check" data-acheck viewBox="0 0 20 20" aria-hidden="true"><path pathLength="1" d="M5.2 10.4l3 3 6.6-6.8"/></svg>
                <span class="roll" data-comingw><span class="r">I'm coming</span></span>
              </span>
            </button>
          </div>
        </div>

        <span class="progress" aria-hidden="true"><i data-progress></i></span>
      </section>
    </div>
    <p class="sr" aria-live="polite" data-say></p>
  </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.

28 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 “Table ready notification” 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

In the middle, on a pure white page, a warm white card 70 pixels tall comes down from the top, with a one pixel edge, a very fine grain and soft shadows in three layers. It is the waitlist notification of Lume: in the vermilion tile there is your place, 4, and next to it You’re 4th in line; under it a thin door and four marks that drop in one after the other, yours lit and last, then about 15 min. At the bottom a thin line starts to fill. Every little while the line moves: the mark at the front squashes and leaves through the door, the others step forward one after the other on a spring with a hair of bounce, and yours stretches as it steps and settles back; with it the number in the tile, the word of your place and the minutes roll down, 3rd and 11, 2nd and 6, next and 2, and the line at the bottom grows. When the table is ready the tile gives a small shake and the number gives way to the table, your mark goes in too and the line folds away, a band of light crosses the card and the title rolls to Your table is ready, Table 12 · by the window. Then the card stretches on a spring and two parts rise one after the other: the ring that draws itself whole and starts to run out next to Hold for 5:00, with the seconds rolling one by one, and Party of 2 · Lume; and the two buttons, Need 5 more min and I’m coming, settling in. I’m coming sinks under the finger, the check comes in and draws itself, the label becomes On my way, the tile shows a check and the title says See you in a few minutes; then the card folds and rises away fading, and it all starts again. Need 5 more min adds five minutes with the digits rolling up and the ring filling again. The title opens and folds with a tap once the table is ready, Esc folds it. Until someone touches it, it presses I’m coming by itself.

How it works

A real spring as an ease

At start a small function solves a damped spring in steps of 1/240 of a second (force STIFFNESS, damping DAMPING) until it stops: the curve becomes a GSAP ease and the settling time its duration. Three come out of it: the one for opening and for the line, a softer one for widths and a springier one for the words and the buttons.

The line of marks

The marks are made by the script, all in the same place and moved by GSAP with x in steps of 10 pixels. When the line moves the first one goes to x -10 and fades past the door while its inner bar squashes; the others go to i × 10 on the spring, 45 thousandths apart, and the bar of yours stretches and comes back on the springy ease.

Words inside words

Every label that changes is a grid with a single cell: the new one comes in on the spring losing a blur, the old one leaves and is removed, and the width goes from the old to the new. The title You’re 4th in line holds a second grid only for 4th, and so do the minutes: only the changing word rolls, and when Your table is ready arrives the whole title rolls.

The ring and the seconds

The ring is a path that starts at the top, with pathLength 1: it draws itself whole on power3.out, then every second a delayedCall takes a second off, rolls only the digit that changed and brings stroke-dashoffset to 1 − left/total over one linear second. Need 5 more min adds 300 seconds, makes the new time the total and fills the ring on the spring.

Values to change

NameFileDefaultWhat it changes
TABLEscript.js12The number of the table.
SPOTscript.jsby the windowWhere the table is.
STARTscript.js4Your place in line at the start, from 2 to 6.
WAITscript.js15The minutes of waiting at the start.
HOLD_MINscript.js5The minutes the table is held for you.
STEPscript.js1.3The seconds between one move of the line and the next.
STIFFNESSscript.js260The force of the spring that opens the card and slides the line: higher is quicker.
DAMPINGscript.js22The damping: lower, it bounces more before it stops.
SPEEDscript.js1The speed of the round on its own: 2 twice as fast, 0.5 half.
AUTOscript.jstrueIt presses I’m coming by itself until someone touches it.

Try them in the Playground

When to use it

For the app or site of a restaurant, a trattoria or a waitlist and booking service: telling whoever is waiting where the line is, how long is left and, once the table is ready, letting them confirm without opening the app. It works for any queue with a turn: the barber, the clinic, the counter pickup.

On phones

On the phone the notification is 92% of the screen wide, a long title ends with an ellipsis and the buttons get narrower; it opens and folds with a tap on the title and the buttons answer the finger like the mouse. Without a mouse the light that follows the pointer is not there.

With reduced motion

Nothing moves: the notification appears and leaves with a fade, opens without the spring, the marks ahead fade out and the others are already in place, digits and words change with a fade. The ring still runs out, because it is the time.

Pitfalls

  • Mona Sans’s tabular figures (tabular-nums) have a different design, almost typewriter-like: the fresh 5:00 looked like another typeface next to the rolled 4:58. The countdown uses the normal figures and each digit sits in its own grid, which animates its own width.
  • The line stayed as wide as at the start, and as the marks left a gap opened between the last one and the minutes: at every step the width of the line also shrinks by one mark on the soft spring.
  • The preview video stopped after a second and a half, because between one move of the line and the next the demo looks still: there is a DURATA_FISSA entry with the whole round, 14 seconds.
  • With reduced motion the card opened but the chevron stayed pointing down: it now takes its final rotation at once, without the spring.
  • Swapping I’m coming for On my way, the two labels rolled together and for an instant sat on top of each other (it read «On cnywing»): now the old one leaves in 0.18 seconds and the new one comes in only 0.14 seconds later, and the same goes for the place in line, the minutes and the seconds.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

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

Testing

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