Skip to content
animorio
IT
All components

Coffee ready notification

Notifications, TransitionsGSAP, CSS onlyMediumCompressed weight: Demo 8.4 KBGSAP 28 KBFreeDownload the zip

The order notification of a coffee shop, Ember Coffee, in a dark glass pill with a real photo of the flat white seen from above. A three step bar follows the order: while it brews the photo fills with colour from the bottom with a wavy surface, like the cup being poured, a caramel ring closes around it and a thread of steam rises. When it is ready the pill opens on a spring into a card with Ready at the counter, the order number rolling in and the On my way button; tapped, it closes back with a check.

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>
<!--
  "Coffee 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 coffee ready notification with the cup that fills</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 order notification of Ember Coffee: a dark glass pill with a round photo of the drink, the name and a
         bar in three steps. While it brews the photo fills with colour from the bottom like the cup itself, a ring
         closes around it and a thread of steam rises; when it is ready the pill opens on a spring into a card -->
    <div class="note" data-note>
      <div class="note__shell" data-shell>
        <div class="note__head">
          <div class="cup" data-cup>
            <svg class="cup__ring" viewBox="0 0 60 60" aria-hidden="true">
              <circle class="cup__track" cx="30" cy="30" r="28"/>
              <circle class="cup__arc" data-arc cx="30" cy="30" r="28" pathLength="1"/>
            </svg>
            <div class="cup__photo" data-photo>
              <img class="cup__empty" src="flat-white.webp" alt="" width="320" height="320" decoding="async">
              <img class="cup__full" data-full src="flat-white.webp" alt="An oat flat white with a rosetta, seen from above" width="320" height="320" decoding="async">
              <svg class="cup__surface" viewBox="0 0 100 100" preserveAspectRatio="none" aria-hidden="true"><path data-surface d=""/></svg>
            </div>
            <span class="cup__steam" data-steam aria-hidden="true"><i></i><i></i><i></i></span>
          </div>
          <div class="note__body">
            <div class="note__top">
              <p class="note__name">Oat flat white, Mia</p>
              <span class="note__when">
                <span class="note__when-words" data-when>now</span>
                <svg class="note__done" viewBox="0 0 16 16" aria-hidden="true"><path data-done pathLength="1" d="M3.2 8.5l3 3 6.6-7"/></svg>
              </span>
            </div>
            <div class="steps" data-steps role="progressbar" aria-label="Order progress" aria-valuemin="0" aria-valuemax="3" aria-valuenow="0">
              <span class="steps__seg"><i data-seg></i></span>
              <span class="steps__seg"><i data-seg></i></span>
              <span class="steps__seg"><i data-seg></i></span>
            </div>
            <div class="steps__labels" aria-hidden="true">
              <span data-label>Received</span>
              <span data-label>Brewing</span>
              <span data-label>Ready</span>
            </div>
          </div>
        </div>
        <div class="note__more" data-more>
          <div class="ready">
            <div class="ready__text" data-part>
              <p class="ready__title">Ready at the counter</p>
              <p class="ready__sub">Ember Coffee · Hayes Street bar</p>
            </div>
            <div class="ready__order" data-part>
              <span class="ready__label">Order</span>
              <span class="odo" data-odo></span>
            </div>
          </div>
          <div class="go-wrap" data-part>
            <button class="go" type="button" data-go>
              <span class="go__face">
                <span class="go__words" data-go-words>On my way</span>
                <svg class="go__icon" viewBox="0 0 16 16" aria-hidden="true">
                  <path class="go__arrow" data-go-arrow d="M3 8h9.2M8.6 4.3L12.3 8 8.6 11.7"/>
                  <path class="go__check" data-go-check pathLength="1" d="M3.2 8.5l3 3 6.6-7"/>
                </svg>
              </span>
            </button>
          </div>
        </div>
      </div>
    </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.

25 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 “Coffee 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

On a black page a dark glass pill drops in from the top on a spring, with a thin edge that catches the light and a light grain. On the left there is the round photo of a flat white seen from above, still grey and in shadow; beside it ‘Oat flat white, Mia’, ‘now’ and a bar in three parts with Received, Brewing and Ready under it. The first part fills with caramel and Received lights up. Then Brewing: the second part fills slowly, a caramel ring closes around the photo, and the photo takes its colour from the bottom up with a wavy surface and a light line on top, like the cup being poured; a thread of steam rises over it and the minutes go down from ‘3 min’ to ‘1 min’. At Ready the photo gives a small jolt and the pill opens on a spring into a card: ‘Ready at the counter’, the bar to collect it from, the order number rolling in on three drums, and the caramel ‘On my way’ button crossed by a glint. Tapped, the button gives and comes back, the arrow leaves and a check draws itself with ‘See you there’; the card closes back into the pill and a check draws itself in the corner. Then the pill rises away and the next order arrives.

How it works

Glass without blur

The pill uses no backdrop-filter: it is a warm top to bottom gradient, a 1 px edge and an inner line of light along the top made with inset box-shadows, an oval sheen in a pseudo-element and feTurbulence grain in an SVG background, in overlay at 16%. While it brews a CSS variable warms the corner by the photo.

The cup that fills

The photo is there twice: underneath in black and white and in shadow (filter), on top in colour, cut by a polygon clip-path. Every frame GSAP's ticker recomputes fifteen points of the surface with two moving sines, at the height of the level, and draws the same line in an SVG over the photo: the wave is tallest halfway and flattens when the cup is empty or full.

Ring, bar and steam together

The level, the ring (a circle with pathLength 1 and its stroke-dashoffset going from 1 to 0) and the second part of the bar (scaleX) are three tweens of the same length and curve in one timeline: they move as one thing. The steam is three CSS threads with a keyframe that rises, stretches and bends, faded in only while it brews.

A real spring as an ease

The opening uses a hand written ease function: the response of a damped spring (damping 0.74) normalised between 0 and 1, passing the mark by a pixel or two and settling. The card grows from the pill's height to the measured one (scrollHeight) and goes back to auto at the end, so it survives a change of width.

The number on drums

Each digit of the order is a column of twenty figures in a drum 1 em tall with a faded mask above and below; GSAP takes it with yPercent to its digit in the second ten, on the spring and with a tenth of a second between the drums.

Values to change

NameFileDefaultWhat it changes
ORDERscript.js147The order number that rolls in on the drums (up to three digits).
BREWscript.js4.2The seconds it brews: the bar, the ring and the cup fill together.
BOUNCEscript.js0.74The springs: lower bounces more (0.5), higher settles without passing the mark (1).
HOLDscript.js2.4The seconds the card waits on Ready before the pilot taps On my way.
STEAMscript.js1How visible the thread of steam is.
LOOPscript.jstrueA new order arrives after each one.

Try them in the Playground

When to use it

For the app or site of a coffee shop, a bar, a takeaway drinks chain or a restaurant with orders to collect: it says where the order is without opening the app and calls you to the counter when it is ready. It also works as an app showcase on a landing page, or as a model for any notification that follows a wait (a delivery, a print, a wash).

On phones

The same animation with adapted sizes: the pill is 92% of the screen wide, the title and the order number are sized on the height too, and the button is tapped with a finger; the open card stays under 240 pixels tall.

With reduced motion

Nothing moves: the pill fades in, the colour photo rises in opacity instead of filling from the bottom, no steam, the card opens at once with the words fading in, the number is already in place, the words and the check change with a fade.

Pitfalls

  • With overflow hidden on the pill the closed card's button could still be reached with Tab: the hidden part is inert until the card is open.
  • A pixel height set by the spring is wrong once the window changes width (the title wraps): after opening the height goes back to auto, and the closing starts from the height measured at that moment.
  • With Mona Sans tabular-nums gives a slashed zero: the digits sit in drums 0.6 em wide and centred, without tnum.
  • The steam over the photo has to stay inside the pill, which clips anything that leaves it: it rises only over the cup, in the space of the padding.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

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

Testing

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