Skip to content
animorio
IT
Back to the library

Pub tap list

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

The live tap list of a pub, on a dark panel with an amber light: each beer has its glass, its style, its price and its keg level, which goes down a little with every pint poured. The beer under the pointer opens on its tasting notes while its pint fills with the real colour of the beer, with the head on top; a nearly empty keg says “Last pints”, a freshly changed one “Just tapped”.

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>
<!--
  "Pub tap list" 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>Pub tap list with the kegs that go down and the pint 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 live tap list of a pub: every beer has its keg level, which goes down a little with every pint poured;
         the beer under the pointer opens on its tasting notes while its pint fills up, with the head on top -->
    <section class="taps" data-taps aria-label="On tap tonight">
      <header class="taps__head">
        <div class="taps__title"><span>Copper &amp; Rye</span><h1>On tap tonight</h1></div>
        <p class="taps__count"><strong class="roll"><span data-poured>128</span></strong><span>pints poured</span></p>
      </header>
      <div class="taps__list" data-list></div>
    </section>
    <p class="sr" data-live aria-live="polite"></p>

    <svg class="ghost" data-ghost viewBox="0 0 24 24" aria-hidden="true"><path d="M5 3.2 19.2 11l-6.3 1.6-3.3 5.9Z"></path></svg>
  </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.

16 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 “Pub tap list” 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 nearly black background with an amber light from above, a dark panel whose edge catches the light: at the top the pub’s name, the title “On tap tonight” and the count of pints poured tonight. Below, four beers: for each a pint glass drawn in outline, the name, the style with its strength, the keg level (a small bar in the beer’s colour with the percentage) and the price. About every second a pint is poured: a bar shortens with a flash, the percentage counts down and the count at the top rolls by one. Moving over a beer its row lights up and opens on the tasting notes and the bitterness, while the previous one closes in the same time; its glass fills from the bottom with the beer’s colour, the liquid leans, levels out and the head settles on top. A keg under 12% turns red and says “Last pints”; when it runs out it is changed, the bar is full again and “Just tapped” appears.

How it works

The pint

The glass is one SVG path used twice: as the outline and as a clipPath. Inside the clip there is a group with two rectangles, the beer and the head: opening the row the group climbs from y 36 to 0 with power2.out and meanwhile rotates 7 degrees, then minus 4, then levels out on a spring, around the centre of the glass (svgOrigin).

The rows

Only one row is open: the notes sit in a container with hidden overflow that goes from height 0 to auto, and the previous row’s goes back to 0 with the same duration and the same curve, so the panel does not change height while you move.

The kegs

A GSAP delayed call that calls itself pours a pint every POUR seconds: it picks the beer with a fixed-seed generator (more often the open one), takes SIP points off the keg and makes bar and percentage count from the same number. Under 2% the keg is changed: it goes back to 100 and takes the new tag.

Values to change

NameFileDefaultWhat it changes
POURscript.js1.1How many seconds between one pint and the next.
SIPscript.js3How much the keg goes down with each pint, in percent.
LOWscript.js12Under this percentage the keg is on its last pints.
OPENscript.js1The beer open at the start (1 is the first).
ACCENTscript.js#f2a33aThe colour of the light and of the tags.
LOOPscript.jstrueLeft alone, a pointer tries it by itself.

Try them in the Playground

When to use it

For the site of a pub, a craft brewery or a taproom, and for the screen above the bar: it says what is on tap now and what is about to run out. It also suits wines by the glass, the coffees of the day or an ice-cream shop’s flavours. In a real product the levels come from the till or from the keg sensors.

On phones

The same panel, as wide as the screen minus the margins, with rows measured on the height too and a shorter keg bar; the beers open on tap.

With reduced motion

No entrances, climbing pint or flashes: the chosen row is open at once with its glass already full, bars and percentages change at once, the pint count updates without rolling.

Pitfalls

  • The row that opens and the one that closes share the same duration and the same curve: with different timings the panel changes height at every move and everything below jumps.
  • The liquid rotates around the centre of the glass with svgOrigin, and the two rectangles are wider than the glass: otherwise, leaning, the sides would show the void.
  • There are no dots in front of the states: “Last pints” and “Just tapped” are tags with the word, and a low keg also changes the colour of its percentage.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

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

Testing

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