Skip to content
animorio
IT
All components

Call the waiter button

Buttons, Hover, SVGGSAP, CSS onlyMediumCompressed weight: Demo 9.1 KBGSAP 28 KBFreeDownload the zip

The Call the waiter button of a restaurant’s table app, in smoked lacquer with a brass edge in a warm dark room, like a Dribbble shot. Pressed, the desk bell inside the disc is tapped twice; then the waiter answers: his initial rises in place of the bell, a brass ring closes around it, a warm light spreads through the button and the seconds of the wait roll down in the chip. When he reaches the table the disc turns solid brass, a check draws itself and a reflection crosses the lacquer. Pressed while you wait, the call is cancelled.

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>
<!--
  "Call the waiter button" 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 call the waiter button with the wait that shortens</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 Call the waiter button of a restaurant's table app, in smoked lacquer with a brass edge on a warm dark
         room. Pressed, the little desk bell inside is tapped twice; then the waiter answers: his initial rises in
         place of the bell, a brass ring closes around it and a warm light spreads through the button as the wait
         shortens, the seconds rolling down in the chip. When he is at the table the disc fills with brass and a check
         draws itself. Pressed again while waiting, the call is cancelled -->
    <div class="cw" data-wrap>
      <span class="cw__spill" data-spill aria-hidden="true"></span>
      <button class="cw__btn" type="button" data-btn aria-label="Call the waiter to table 12">
        <span class="cw__body" data-body>
          <span class="cw__fill" aria-hidden="true"></span>
          <span class="cw__warm" aria-hidden="true"><span class="cw__warm-light" data-warm></span></span>
          <span class="cw__shine" data-shine aria-hidden="true"></span>
          <span class="cw__sweep" aria-hidden="true"><span class="cw__sweep-band" data-sweep></span></span>
          <span class="cw__lacquer" aria-hidden="true"></span>
          <span class="cw__row">
            <span class="cw__disc" data-disc aria-hidden="true">
              <span class="cw__disc-plate" data-plate></span>
              <svg class="cw__ring" viewBox="0 0 44 44">
                <circle class="cw__ring-track" cx="22" cy="22" r="20.5"/>
                <circle class="cw__ring-done" data-ring cx="22" cy="22" r="20.5" pathLength="1" transform="rotate(-90 22 22)"/>
              </svg>
              <svg class="cw__bell" data-bell viewBox="0 0 24 24">
                <g data-marks>
                  <path class="cw__mark" d="M6.2 7.6l-1.5-1.3M5.1 10.4l-1.9-.4"/>
                  <path class="cw__mark" d="M17.8 7.6l1.5-1.3M18.9 10.4l1.9-.4"/>
                </g>
                <g data-plunger>
                  <path class="cw__plunger" d="M12 9.6V7.2"/>
                  <path class="cw__plunger" d="M10.5 6.9h3"/>
                </g>
                <g data-dome>
                  <path class="cw__dome" d="M4.8 16.6a7.2 7.2 0 0 1 14.4 0z"/>
                  <path class="cw__dome-shine" d="M8 13.6a4.8 4.8 0 0 1 3-2.6"/>
                </g>
                <path class="cw__base" d="M3.4 18.6h17.2"/>
              </svg>
              <span class="cw__avatar" data-avatar><span class="cw__avatar-letter" data-initial>M</span></span>
              <svg class="cw__check" viewBox="0 0 24 24"><path data-check pathLength="1" d="M7 12.4l3.3 3.3 6.7-7"/></svg>
            </span>
            <span class="cw__text" aria-hidden="true">
              <span class="cw__state" data-state>
                <span class="cw__title" data-t>Call the waiter</span>
                <span class="cw__sub" data-s>Table 12 · Terrace</span>
              </span>
              <span class="cw__state" data-state>
                <span class="cw__title cw__title--busy" data-t>Calling</span>
                <span class="cw__sub" data-s>Ringing the floor</span>
              </span>
              <span class="cw__state" data-state>
                <span class="cw__title" data-t>Marco is coming</span>
                <span class="cw__sub" data-s>Seen · heading to Table 12</span>
              </span>
              <span class="cw__state" data-state>
                <span class="cw__title" data-t>Marco is here</span>
                <span class="cw__sub" data-s>Enjoy your evening</span>
              </span>
              <span class="cw__state" data-state>
                <span class="cw__title" data-t>Call cancelled</span>
                <span class="cw__sub" data-s>Tap again any time</span>
              </span>
            </span>
            <span class="cw__chip" aria-hidden="true">
              <span class="cw__chip-face" data-chip>~1 min</span>
              <span class="cw__chip-face cw__chip-face--eta" data-chip>
                <span class="cw__eta" data-eta>45</span><span class="cw__eta" data-eta>40</span><span class="cw__unit">s</span>
              </span>
              <span class="cw__chip-face" data-chip>Now</span>
            </span>
          </span>
        </span>
      </button>
    </div>
    <p class="sr" aria-live="polite" data-live></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.

36 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 “Call the waiter button” 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 a warm dark room, with a low lamp behind and a very fine grain, a single pill button 60 pixels tall in smoked lacquer: its edge is a brass hairline that catches the light at the top and goes into shadow at the bottom, and under the button the table takes an amber glow. On the left a dark disc with a small brass desk bell, in the middle Call the waiter with Table 12 · Terrace under it, on the right a chip with the usual wait, «~1 min». With the mouse over it a soft light follows the pointer, the disc swells a little and the bell leans towards you on a spring. Pressed, the lacquer sinks by a pixel and springs back; the bell is tapped twice: the plunger goes down, the dome trembles, two pairs of strokes flick beside it and a flash of warm light leaves the disc, while the words become Calling with a band of light passing through them. Then the waiter answers: the bell drops and disappears, in its place the terracotta disc with the M of Marco rises on a spring, the words become Marco is coming, and the chip shows the seconds, 45, rolling down five at a time. Meanwhile a brass ring closes around the initial and the warm light spreads from the disc to the right inside the button, like him crossing the room. When he arrives, the initial shrinks, the disc turns solid brass with a bounce, the ring widens and fades, a dark check draws itself, the button swells by a hair, a diagonal reflection crosses it and the words say Marco is here, the chip Now. After a moment everything goes back to rest and the bell comes back with a springy turn. Pressed while you wait, the call is cancelled and the ring winds back. Until someone touches it, the button goes round by itself.

How it works

Lacquer in layers

The button is a single box (moved only by GSAP) with absolute layers: the lacquer fill with a gradient from the top, a radial warm light anchored to the disc, the light under the pointer driven by two CSS variables through gsap.quickTo, the reflection band and on top the inner shadows: the brass hairline, the light at the top, the shadow at the bottom.

The tapped bell

The bell is an SVG in three groups: the plunger, the dome and the strokes. Each tap is a piece of timeline: the plunger goes down by 1.6 and comes back on a spring, the dome trembles in x with a very tight elastic, the strokes flick and widen with scale and svgOrigin, and the warm light and the glow on the table flash.

The disc in layers

Plate, ring, bell, initial and check share one grid cell; they all have position: relative, because an element transformed by GSAP is painted above its untransformed siblings and the plate, scaled up on hover, was covering the ring and the check.

The wait that shortens

One value p from 0 to 1, moved by a timeline WALK seconds long, drives everything: the ring’s strokeDashoffset (pathLength 1), the scale and opacity of the warm light and the seconds in the chip, rounded up in steps of STEP. At each change two numbers take turns: the old one drops out, the new one arrives from above with a back.out.

The arrival

The initial shrinks, the plate takes a brass gradient and comes back from 0.7 on an elastic spring, the ring widens to 1.22 and fades, the check draws itself with strokeDashoffset, the light band crosses the lacquer with xPercent; after HOLD seconds everything goes back to rest and the bell returns with a springy turn.

Values to change

NameFileDefaultWhat it changes
WAITERscript.jsMarcoThe name of the waiter who answers (the initial goes in the disc).
TABLEscript.jsTable 12The table the call comes from.
AREAscript.jsTerraceThe room of the table, after the dot.
USUALscript.js~1 minThe chip at rest: the usual wait.
ETAscript.js45The seconds of wait shown when the waiter answers.
STEPscript.js5How many seconds the chip drops at every roll.
WALKscript.js3.4How many real seconds the wait lasts in the demo.
TAPSscript.js2How many times the bell is tapped.
SPRINGscript.js1How springy the moves are: 0.4 calm, 2 very bouncy.
HOLDscript.js1.7How many seconds Marco is here stays before going back to rest.
AUTOscript.jstrueThe button goes round by itself until someone touches it.

Try them in the Playground

When to use it

For the table app or QR menu of a restaurant, a bar or a hotel: calling the waiter, asking for the bill, calling room service. It says at once that the call got through, who is coming and how long it will take, and lets you cancel.

On phones

On the phone the button is at most 86% of the screen wide and long words end with an ellipsis; there is no hover, so the light under the finger turns on at the touch and the rest is the same.

With reduced motion

Nothing moves: the bell, the initial and the check swap with a fade, the words and the seconds change in place, the ring fills and the warm light grows only in strength.

Pitfalls

  • The disc’s plate, scaled by GSAP on hover, covered the ring and the check: a transformed element is painted above untransformed siblings, so every piece of the disc has position: relative and document order counts again.
  • With stroke-linecap round a zero length ring left a brass dot at the top of the disc at rest: the ring stays at opacity 0 until the waiter answers and goes back to 0 on cancel.
  • Digits with tabular-nums took Mona Sans’s tabular shapes, with a footed one, and looked like another typeface: the chip uses the normal figures.
  • The loop started when the script was read, and the poster landed on different moments: it starts from the page’s load event.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

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

Testing

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