
The star rating
Ratings, SVG, Hover
The Request the bill button of a restaurant’s table app, in glazed white porcelain on a linen tablecloth lit by a window, like a Dribbble shot. Just inside its edge runs a line of gold still pale, unfired, like the rim of a plate. Pressed, a gilder’s brush paints the gold starting from the bill and going round both ways, with two bright beads of wet gold at its tips; then the gold is fired: a glint runs round it, a light crosses the glaze, the little well fills with cobalt glaze and a check, and the total turns blue.
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>
<!--
"Porcelain bill 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 request the bill button in porcelain with the gold rim</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/mona-sans@5.3.0/wdth.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/fraunces@5.3.0/opsz.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<main class="stage">
<!-- the Request the bill button of a restaurant's table app, glazed white porcelain with a pale, unfired gold line
just inside its edge, like the rim of a plate. On the left a small porcelain well with a cobalt bill, on the
right the total. Pressed, a gilder's brush paints the gold line from the bill all the way round, while the
words shimmer; then the gold is fired, a glint runs round it, the bill turns to a check and the chip turns
cobalt -->
<div class="pb" data-wrap>
<span class="pb__shadow" data-shadow aria-hidden="true"></span>
<button class="pb__btn" type="button" data-btn data-autoclic aria-label="Request the bill for table 12, 86.40 euros">
<span class="pb__body" data-body>
<span class="pb__glaze" aria-hidden="true"></span>
<span class="pb__window" aria-hidden="true"><span class="pb__window-pane" data-window></span></span>
<span class="pb__shine" data-shine aria-hidden="true"></span>
<span class="pb__sweep" aria-hidden="true"><span class="pb__sweep-band" data-sweep></span></span>
<svg class="pb__gold" data-gold aria-hidden="true">
<defs>
<linearGradient id="pb-gold" data-grad gradientUnits="userSpaceOnUse" x1="0" y1="0" x2="320" y2="0">
<stop offset="0" stop-color="#9c7433"/>
<stop offset="0.16" stop-color="#ecd393"/>
<stop offset="0.33" stop-color="#b4863c"/>
<stop offset="0.52" stop-color="#f6e6b4"/>
<stop offset="0.7" stop-color="#a97c36"/>
<stop offset="0.86" stop-color="#e3c47e"/>
<stop offset="1" stop-color="#a27632"/>
</linearGradient>
</defs>
<path class="pb__ghost" data-ghost/>
<g class="pb__fired" data-fired>
<path class="pb__line" data-line-a pathLength="1"/>
<path class="pb__line" data-line-b pathLength="1"/>
</g>
<path class="pb__glint" data-glint pathLength="1"/>
</svg>
<span class="pb__tip" data-tip aria-hidden="true"></span>
<span class="pb__tip" data-tip aria-hidden="true"></span>
<span class="pb__edge" data-edge aria-hidden="true"></span>
<span class="pb__rim" aria-hidden="true"></span>
<span class="pb__row">
<span class="pb__well" aria-hidden="true">
<span class="pb__well-face" data-well>
<svg class="pb__bill" data-bill viewBox="0 0 24 24">
<path class="pb__bill-paper" d="M7 4.6h10v15.2l-1.67-1.1-1.66 1.1-1.67-1.1-1.67 1.1-1.66-1.1L7 19.8z"/>
<path class="pb__bill-ln" data-ln pathLength="1" d="M9.4 8.4h5.2"/>
<path class="pb__bill-ln" data-ln pathLength="1" d="M9.4 11.2h5.2"/>
<path class="pb__bill-ln" data-ln pathLength="1" d="M9.4 14h3"/>
</svg>
<svg class="pb__check" viewBox="0 0 24 24"><path data-check pathLength="1" d="M6.8 12.5l3.4 3.4 7-7.2"/></svg>
</span>
</span>
<span class="pb__text" aria-hidden="true">
<span class="pb__state" data-state>
<span class="pb__title" data-t>Request the bill</span>
<span class="pb__sub" data-s>Table 12 · 3 guests</span>
</span>
<span class="pb__state" data-state>
<span class="pb__title pb__title--busy" data-t>Preparing bill</span>
<span class="pb__sub" data-s>Printing at the counter</span>
</span>
<span class="pb__state" data-state>
<span class="pb__title" data-t>On its way</span>
<span class="pb__sub" data-s>Your server is coming</span>
</span>
</span>
<span class="pb__chip" data-chip-box aria-hidden="true">
<span class="pb__chip-glaze" data-chip-glaze></span>
<span class="pb__chip-main" data-chip-main>€86.40</span>
<span class="pb__chip-each" data-chip-each>€28.80 each</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>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.
26 values to change
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 “Porcelain bill button” from Animorio and fit it into my siteThe button is a single box (moved only by GSAP) with absolute layers: the glaze made of three gradients (the window light, the cool turn underneath, the body), the window’s reflection with its mullion cut by a mask, the light under the pointer in soft-light, the success light and on top the rolled edge made of inset shadows. Outside, a blurred shadow wider at the bottom, which stretches when the button rises.
An SVG as big as the pill, measured on resize, with three paths built in pixels 4.5 from the edge: the pale paste going all the way round, and two half loops starting next to the bill, one over the top and one under the bottom, with pathLength 1. The stroke takes a userSpaceOnUse linearGradient in light and dark bands, like burnished gold.
A single number from 0 to 1, moved by GSAP with power1.inOut, sets the strokeDashoffset of both half loops; on every frame getPointAtLength on the real length carries the two beads of gold (radial gradients) to the tips of the strokes. Meanwhile a looping timeline prints the bill’s lines with staggered strokeDashoffset.
A fourth path, the whole loop, has a 0.07 stroke-dasharray with a double warm drop-shadow: the glint runs with strokeDashoffset from 0.08 to −0.98. A slanted white band crosses the glaze with xPercent, the well fills with cobalt by animating two CSS variables (scale and opacity of its ::after) on a spring, and the total is glazed with a clip-path inset.
The white arc on the edge is a conic-gradient cut down to the edge by mask-composite (exclude, and xor for WebKit), with the pointer’s angle always taken the short way round; the window’s reflection slides and widens a little with two quickTo calls, as on a curved glaze.
| Name | File | Default | What it changes |
|---|---|---|---|
TOTAL | script.js | 86.4 | The bill’s total, in euros. |
GUESTS | script.js | 3 | How many guests share it, for the share shown on hover. |
TABLE | script.js | 12 | The table number. |
DONE | script.js | On its way | What the button says when the bill is coming. |
WORK | script.js | 1.8 | How many seconds the brush takes to paint the gold all the way round. |
GLINT | script.js | 1 | The strength of the glint and the sweep when the gold is fired: 0 none, 1.5 bright. |
SPRING | script.js | 1 | How springy the moves are: 0.4 calm, 2 very bouncy. |
HOLD | script.js | 2 | How many seconds the success stays before going back to rest. |
AUTO | script.js | true | The button goes round by itself until someone touches it. |
For the table app or the QR menu of a restaurant, a trattoria, a hotel bar or a bistro: asking for the bill without raising a hand, with the total and the share per guest already in view. It works in plain sight while the till prints and ends with an elegant moment, fit for a well kept place.
On the phone the button is at most 86% of the screen wide and the words get a point smaller; there is no hover, so at the touch the light and the edge arc turn towards the finger and the window’s reflection follows it, and the rest is the same.
Nothing moves: the words and the total change in place with a fade, the gold line fades in whole instead of being painted, the bill gives way to the cobalt and the check and the total turns blue with a fade; no glint and no sweeping light.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0, Fraunces (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 11 KB; the libraries: GSAP 28 KB.
Tested on 3 November 2026
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.
Support Animorio
Animorio stays free thanks to the people who support it. If you like, buy us a coffee: it helps us make the next animations.
You asked for
We made it for you: it’s in the library, with the preview, the Playground and the code to copy.
An animation you can’t find, or a site to take apart in the journal: tell us which. We pick the next ones from here.
With your account’s email and password.
or with your email
You’re signed in as .
With your account, you can download the zip of every animation and every pack, for free.