
The colour columns
Hover, SVG
The guide to a spa’s thermal circuit, to keep on your phone: three stages, sauna, cold plunge and rest. A ring counts the time of the stage you are in, the degrees count to its temperature and the whole card takes its colour: the amber of the sauna, the blue of the cold water, the green of the rest. When a stage ends the ring gives a kick and the next one starts.
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>
<!--
"Spa thermal circuit" 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>Spa thermal circuit with ring timers and a colour that goes from hot to cold</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 thermal circuit of a spa, as a guide on the guest's phone: three stages (sauna, cold plunge, rest); a
ring counts the time of the stage you are in, the degrees count to its temperature and the whole card takes
its colour, from the amber of the sauna to the blue of the cold water to the green of the rest; when a stage
ends the ring closes with a kick and the next one starts; tapping a stage takes you there -->
<section class="card" data-card data-stage="0" aria-label="Thermal circuit">
<span class="card__air" aria-hidden="true"></span>
<header class="head">
<div>
<p class="head__place">Alba Spa</p>
<h1 class="head__title">Thermal circuit</h1>
</div>
<p class="deg"><span data-deg>85</span><small>°C</small></p>
</header>
<div class="ring" data-ring-box>
<svg viewBox="0 0 160 160" aria-hidden="true">
<circle class="ring__track" cx="80" cy="80" r="66"></circle>
<circle class="ring__arc" data-ring cx="80" cy="80" r="66" pathLength="1"></circle>
<g class="ring__ticks" data-ticks></g>
</svg>
<div class="ring__read">
<p class="ring__name"><span data-name>Sauna</span></p>
<p class="ring__time" data-time>12:00</p>
<p class="ring__what"><span data-what>Dry heat, sit high</span></p>
</div>
</div>
<div class="stops" role="group" aria-label="Stages">
<button class="stop" type="button" data-stop><span class="stop__name">Sauna</span><span class="stop__meta">12 min</span><span class="stop__bar"><i data-bar></i></span></button>
<button class="stop" type="button" data-stop><span class="stop__name">Cold plunge</span><span class="stop__meta">2 min</span><span class="stop__bar"><i data-bar></i></span></button>
<button class="stop" type="button" data-stop><span class="stop__name">Rest</span><span class="stop__meta">15 min</span><span class="stop__bar"><i data-bar></i></span></button>
</div>
</section>
<p class="sr" data-live aria-live="polite"></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.
24 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 “Spa thermal circuit” from Animorio and fit it into my siteThe card has data-stage: in the CSS this changes a single variable, --tone, and the ring, the degrees, the stage’s name and the background air follow it with a transition.
A number from 0 to 1 says how much of the stage has gone: it is the ring’s stroke-dashoffset, the scale of the line in the tile and, multiplied by the stage’s minutes, the time left. In the demo each stage lasts EACH seconds, whatever its real length.
At the start of each stage a tween takes the degrees from the previous value to the new one in nine tenths of a second: from 85 to 12 you see them go down.
When a stage ends the ring scales to KICK and returns with elastic.out; after GAP seconds a call in the timeline resets the number and the next stage comes in.
The sixty ticks round the ring are a single SVG path written by the script with sine and cosine, with a longer tick every five.
| Name | File | Default | What it changes |
|---|---|---|---|
EACH | script.js | 3.4 | How many seconds each stage lasts in the demo. |
GAP | script.js | 0.9 | The pause between one stage and the next, in seconds. |
KICK | script.js | 1.08 | How much the ring grows when a stage ends (1 = not at all). |
HOT | script.js | #ff8a3d | The colour of the sauna. |
COLD | script.js | #57c7ff | The colour of the cold plunge. |
REST | script.js | #8fd6a0 | The colour of the rest. |
LOOP | script.js | true | Left alone, the circuit runs and starts over. |
For the app or page of a spa, a hotel with a wellness centre, a gym with a sauna: the guide that takes the guest from one stage to the next. With other names it suits any timed sequence: interval training, a recipe, a morning routine.
The same card, as wide as the screen: the ring is sized on the height too, so on a short screen it shrinks and the three tiles stay inside.
The ring does not fill slowly: each stage appears already complete, with its degrees and colour, and after a few seconds the next one comes without kicks.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 4.8 KB; the libraries: GSAP 28 KB.
Tested on 14 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.