Skip to content
animorio
IT
Back to the library

Now serving screen

Hover, TransitionsGSAP, CSS onlyMediumCompressed weight: Demo 6.6 KBGSAP 28 KBFreeDownload the zip

The pickup screen of a coffee bar, minimal style: the number being served drops into place on a split-flap board, «Up next» rolls on, your place counts down from 3 ahead to You’re next, the wait bar fills tick by tick, and when it is your turn the card lights up amber with a small knock and the bell swings once.

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>
<!--
  "Now serving screen" 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>Now serving</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 pickup screen of a made-up coffee bar, Morrow: the number being served falls into place on a split-flap
         board, your place in the queue counts down, the wait bar shortens, and when it is your turn the card lights
         up and the bell swings once -->
    <section class="card" data-card tabindex="0" aria-labelledby="card-title">
      <span class="card__ring" data-ring aria-hidden="true"></span>
      <span class="card__sheen" aria-hidden="true"></span>

      <header class="head">
        <span class="brand">
          <svg class="brand__mark" viewBox="0 0 20 20" aria-hidden="true"><path d="M4 6h10v5.5a4.5 4.5 0 0 1-4.5 4.5h-1A4.5 4.5 0 0 1 4 11.5Z" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round"/><path d="M14 8h1.4a2.1 2.1 0 0 1 0 4.2H14" fill="none" stroke="currentColor" stroke-width="1.6"/></svg>
          <span>Morrow</span>
        </span>
        <span class="head__where">Pickup counter</span>
      </header>

      <h1 class="label" id="card-title">Now serving</h1>
      <div class="row">
        <div class="board" data-board aria-hidden="true"></div>
        <div class="next" aria-hidden="true">
          <span class="next__k">Up next</span>
          <span class="roll roll--next"><span class="roll__row" data-next1>B48</span></span>
          <span class="roll roll--next"><span class="roll__row" data-next2>B49</span></span>
        </div>
      </div>
      <p class="sr" data-serving-sr aria-live="polite">Now serving B47</p>

      <div class="you" data-you>
        <div class="you__ticket" data-ticket>
          <span class="you__small">Your number</span>
          <span class="you__num" data-yournum>B50</span>
        </div>
        <div class="you__state">
          <span class="roll" data-state aria-hidden="true"><span class="roll__row" data-state-row>3 ahead of you</span></span>
          <span class="sr" data-state-sr aria-live="polite">3 ahead of you</span>
          <span class="roll roll--small" aria-hidden="true"><span class="roll__row" data-wait>About 6 min</span></span>
        </div>
        <svg class="bell" viewBox="0 0 24 24" aria-hidden="true">
          <g data-bell>
            <path d="M12 3.2c-3.3 0-5.6 2.5-5.6 5.8v3.6L4.6 16h14.8l-1.8-3.4V9c0-3.3-2.3-5.8-5.6-5.8Z" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="round"/>
            <g data-clapper><path d="M10 18.4a2 2 0 0 0 4 0" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round"/></g>
          </g>
        </svg>
      </div>

      <div class="wait" aria-hidden="true">
        <span class="wait__track"><span class="wait__fill" data-fill></span></span>
        <span class="wait__ticks" data-ticks></span>
      </div>

      <div class="drawer" data-drawer>
        <div class="drawer__inner">
          <span class="drawer__line"><span class="drawer__k">Order</span><span>Oat flat white, almond croissant</span></span>
          <span class="drawer__line"><span class="drawer__k">Counter</span><span data-counter>2, by the window</span></span>
        </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.

33 values to change

Works with Claude, Claude Code, ChatGPT, Cursor, VS Code, Windsurf, Codex, Gemini CLI

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 “Now serving screen” 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 warm paper, the white card of Morrow, a made-up coffee bar: at the top the cup mark and «Pickup counter», then «Now serving» and the black split-flap board, the B in amber and two digits. On every call the top half of the old digit folds over the hinge as a shadow darkens it, the bottom half of the new one lands with a small bounce and the tile gives a half-pixel knock. On the right «Up next» rolls the next two numbers, yours in amber. Below, the «Your number B50» ticket, the line rolling from 3 ahead of you to 2, to You’re next, with the estimated minutes, and a bar filling tick by tick, one per person. When your number is called the card’s edge lights amber, the card gives a small jump, the ticket turns amber and the bell swings once with its clapper lagging; below, the drawer opens with the order and the counter. Then the queue starts again. On hover or tap the drawer opens earlier too.

How it works

One tile, four halves

Every digit is a tile with four stacked halves: two still ones (the top with the new value, the bottom with the old) and two moving ones (the old top and the new bottom). Each half is 50% tall with overflow hidden and the whole digit inside, shifted up by 50% in the bottom half.

The fall

The old top turns from 0 to -90 degrees on the hinge with power2.in while a black veil darkens it; then the new bottom turns from 90 to 0 with back.out(BOUNCE), the bounce of a landing flap, and its veil lightens. At the end the still halves take the new value.

Rolling lines

The position, the minutes and Up next are lines in a window one line tall: the old one slides up and away, the new one comes from below with a small back.out. The real text also goes into a hidden span with aria-live, for screen readers.

Your turn

When the number served is yours, a timeline lights the amber ring around the card, makes it jump 3 pixels on an elastic spring, turns the ticket amber and swings the bell with fading rotation keyframes (svgOrigin on the hook, 12 3.2 in the viewBox), the clapper following late.

The loop

Everything runs on gsap.delayedCall: a call every STEP seconds, your turn staying for TURN_HOLD seconds, then the queue goes back to B47 and starts again. The order drawer opens on hover, on tap or with the Tab key.

Values to change

NameFileDefaultWhat it changes
STEPscript.js2.4The seconds between one call and the next.
FLIPscript.js0.62How long a flap takes to fall, in seconds.
FLAP_STAGGERscript.js0.08The delay between one tile and the next when several change.
BOUNCEscript.js1.9How much the flap bounces when it lands (0 = it stops dead).
AHEADscript.js3How many people are ahead of you at the start.
MIN_PER_PERSONscript.js2The estimated minutes for each person ahead.
TURN_HOLDscript.js3.4How long your turn stays before the queue starts again, in seconds.
BELL_SWINGscript.js22How far the bell swings, in degrees.

Try them in the Playground

When to use it

In the app or on the screen of a coffee bar, a bakery or a fast food place for order pickup, in a restaurant waitlist, at a town office, a pharmacy, a barber or a service desk: wherever people wait for a number.

On phones

Everything is sized in em, and the text size follows the window’s width and height together: the card fits whole in the box even with the drawer open. A tap opens and closes the drawer; there is no hover.

With reduced motion

No falling flaps, no rolling lines, no jump and no swinging bell: the digits change with a short fade, the lines crossfade, the ring and the amber ticket fade in. The queue still moves on.

Pitfalls

  • The two moving halves must sit above the still ones and have backface-visibility hidden: otherwise the back of the flap shows halfway through the fall.
  • The bell turns inside the svg: svgOrigin with the hook point in the viewBox (12 3.2), never transformOrigin, and never svgOrigin on the whole svg, which would move the pivot.
  • The drawer opens to the measured height of its content: on resize, if it is open, the height is measured again.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

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

Testing

Tested on 24 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 animations