
The colour columns
Hover, SVG
The by the glass wine list of a made-up wine bar, Saltmarsh, in the premium style of the interface pieces: above the list sits an aroma wheel drawn in thin SVG lines, with the families inside and the notes outside. Choosing a wine turns the wheel on a spring until the leading note sits under the notch, the wine’s notes draw themselves around the rings in the colour of the wine, the glass seen from above in the middle takes that colour with a ripple, and body, acidity and tannin settle on their meters. Add a glass puts the wine in the flight and the number in the header rolls.
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>
<!--
"Wine by the glass" 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>Saltmarsh Wine Bar, tonight's pours by the glass</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 by-the-glass list of a made-up wine bar, Saltmarsh. Above the list sits an aroma wheel drawn in thin SVG
lines: families inside, notes outside. Choosing a wine turns the wheel until its leading note faces the notch,
its notes draw themselves around the rings in the colour of the wine, the glass seen from above in the middle
takes that colour with a small ripple, and body, acidity and tannin settle on their meters. Add a glass puts
the wine in tonight's flight and the count in the header rolls -->
<section class="card" data-card aria-label="Wines by the glass">
<span class="card__sheen" aria-hidden="true"></span>
<span class="card__grain" aria-hidden="true"></span>
<header class="head">
<div class="head__who">
<svg class="head__mark" viewBox="0 0 24 24" aria-hidden="true"><rect x="2.5" y="2.5" width="19" height="19" rx="6"></rect><path d="M8.6 6.4h6.8c.3 2.9-.6 5.2-3.4 5.6-2.8-.4-3.7-2.7-3.4-5.6ZM12 12v5M9.4 17.4h5.2"></path></svg>
<div>
<p class="head__brand">Saltmarsh Wine Bar <span class="head__sep">·</span> By the glass</p>
<h1 class="head__title">Tonight’s pours</h1>
</div>
</div>
<p class="flight" data-flight>
<span>Flight</span>
<span class="flight__n"><span class="flight__roll" data-roll>0</span></span>
</p>
</header>
<div class="read">
<div class="wheel" aria-hidden="true">
<svg class="wheel__svg" viewBox="-100 -100 200 200">
<defs>
<radialGradient id="pour" cx="42%" cy="38%" r="70%">
<stop offset="0" data-stop="a"></stop>
<stop offset="0.72" data-stop="b"></stop>
<stop offset="1" data-stop="c"></stop>
</radialGradient>
<filter id="soft" x="-20%" y="-20%" width="140%" height="140%"><feGaussianBlur stdDeviation="2.4"></feGaussianBlur></filter>
</defs>
<circle class="wheel__plate" r="97"></circle>
<g data-spin>
<g data-ticks></g>
<g data-base></g>
<g data-on></g>
<g data-spikes></g>
<g class="wheel__labels" data-labels></g>
</g>
<path class="wheel__notch" d="M-4.4 -106.5 0 -99.6 4.4 -106.5Z"></path>
<g class="glass" data-glass>
<circle class="glass__shadow" r="25" cy="2.2" filter="url(#soft)"></circle>
<circle class="glass__wine" r="24" fill="url(#pour)" data-wine></circle>
<circle class="glass__rim" r="23.2"></circle>
<circle class="glass__ripple" r="24" data-ripple></circle>
<path class="glass__shine" d="M-15.5 -9.5a18.5 18.5 0 0 1 12-9.6"></path>
<circle class="glass__edge" r="28.6"></circle>
</g>
</svg>
</div>
<div class="nose">
<p class="nose__lab">Leading note</p>
<p class="nose__note"><span class="nose__roll" data-lead>Citrus</span></p>
<p class="nose__fam" data-fam>Fruit</p>
<div class="meters">
<div class="meter" data-meter="body"><span class="meter__lab">Body</span><span class="meter__track"><span class="meter__fill"></span></span><span class="meter__val">0</span></div>
<div class="meter" data-meter="acid"><span class="meter__lab">Acidity</span><span class="meter__track"><span class="meter__fill"></span></span><span class="meter__val">0</span></div>
<div class="meter" data-meter="tannin"><span class="meter__lab">Tannin</span><span class="meter__track"><span class="meter__fill"></span></span><span class="meter__val">0</span></div>
</div>
</div>
</div>
<ul class="list" data-list></ul>
<footer class="foot">
<p class="foot__note" data-note>125 ml pour, served at 9°C</p>
<button type="button" class="add" data-add aria-pressed="false">
<span class="add__face"></span>
<svg class="add__ico" viewBox="0 0 16 16" aria-hidden="true"><path class="add__v" d="M8 3.6v8.8"></path><path class="add__h" d="M3.6 8h8.8"></path>
<path class="add__tick" d="M3.4 8.4 6.5 11.3 12.6 4.8" pathLength="1" stroke-dasharray="1 1" stroke-dashoffset="1"></path></svg>
<span class="add__label"><span class="add__idle">Add a glass</span><span class="add__done">In your flight</span></span>
<span class="add__price"><span data-price>$13</span></span>
</button>
</footer>
</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>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.
34 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 “Wine by the glass” from Animorio and fit it into my siteEach family and each note is an SVG arc with a thick stroke, worked out from a start angle and an end angle. Over each grey arc sits an identical one in the colour of the wine, with pathLength="1": GSAP takes strokeDashoffset from 1 to 0 to draw it, and to -1 to slide it away. With autoRound off in gsap.defaults the stroke does not jump to whole pixels.
The rotation that brings the leading note to the top comes from the difference between the current angle and the new one, folded between -180 and 180 degrees: the wheel always takes the short way and stops with elastic.out. The notes draw in the order they sit after the turn, starting from the notch.
The colour of the wine lives in a CSS variable, --wine, and in the three stops of the glass gradient: a tween from 0 to 1 mixes the colours with gsap.utils.interpolate and writes them back every frame, so arcs, meters, the row light and the button change together.
| Name | File | Default | What it changes |
|---|---|---|---|
TURN | script.js | 1.25 | How long the wheel takes to turn to the leading note, in seconds. |
SPRING | script.js | 0.55 | How springy the wheel stops on the notch (lower swings more). |
DRAW | script.js | 0.7 | How long each note takes to draw its arc, in seconds. |
STAGGER | script.js | 0.045 | The delay between one note and the next as they draw around the wheel. |
DIM | script.js | 0.45 | How far the other wines step back while one is chosen (1 for not at all). |
PAUSE | script.js | 2.1 | Left alone: how many seconds it stays on each wine. |
LOOP | script.js | true | Left alone, a pointer goes over the wines and adds two. |
--accent | style.css | #8c1d3b | The starting wine red, before the colour of the chosen wine arrives. |
--base | style.css | #f1ebe6 | The colour of the unlit arcs and of the meter tracks. |
--bg | style.css | #f2eee8 | The warm white of the ground. |
For the wine list of a wine bar, a wine shop or a restaurant: whoever moves over the wines sees at once what they smell like and how structured they are without reading a tech sheet, and builds a by the glass flight from the same page.
The same animation with adapted measures: the card is sized on width and height together and fits the box, wheel included; on the phone you tap a wine to choose it and the button to add it.
No movement: the wheel is already turned to the right note, the arcs are already drawn, the colour of the glass crossfades and the numbers simply change.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 11 KB; the libraries: GSAP 28 KB.
Tested on 16 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.