
The colour columns
Hover, SVG
The learner’s page of a driving school: a steering wheel inside the ring of the hours driven, the large number next to it and the manoeuvres to tick below. Ticking one, the wheel takes the bend and comes back on a loose spring, the hours count, the ring advances; at the required hours the tag says you are ready for the test.
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>
<!--
"Driving lesson hours" 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>Driving school hours with the ring around the steering wheel that fills and the manoeuvres that get ticked</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 learner's page of a driving school: a steering wheel inside the ring of the hours driven; ticking a
manoeuvre turns the wheel, adds its hours and moves the ring, until the learner is ready for the test -->
<section class="drv" data-drv aria-label="Driving hours">
<div class="drv__top">
<svg class="wheel" viewBox="0 0 120 120" aria-hidden="true">
<defs>
<linearGradient id="drv-rim" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#4a4d55"></stop><stop offset="1" stop-color="#24262b"></stop></linearGradient>
</defs>
<circle class="wheel__track" cx="60" cy="60" r="55"></circle>
<circle class="wheel__ring" data-ring cx="60" cy="60" r="55" pathLength="1" transform="rotate(-90 60 60)"></circle>
<g transform="translate(60 60)"><g data-wheel>
<circle class="wheel__rim" cx="0" cy="0" r="39"></circle>
<circle class="wheel__rim-hi" cx="0" cy="0" r="43.500"></circle>
<path class="wheel__spokes" d="M-38 0h26M12 0h26M0 12v26"></path>
<circle class="wheel__hub" cx="0" cy="0" r="13"></circle>
<rect class="wheel__mark" x="-2.500" y="-44.500" width="5" height="10" rx="2.500"></rect>
<path class="wheel__logo" d="M-4.500 2.500l4.500-6 4.500 6"></path>
</g></g>
</svg>
<div class="drv__say">
<span class="drv__school">Kerb Driving School</span>
<span class="drv__hours"><b data-hours>14</b><i>of <span data-goal>20</span> h</i></span>
<span class="drv__tag" data-tag><span data-tagtext>6 hours to go</span></span>
</div>
</div>
<div class="drv__rows" data-rows></div>
<p class="sr" data-live aria-live="polite"></p>
</section>
<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.
18 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 “Driving lesson hours” from Animorio and fit it into my siteAn SVG group drawn around zero, inside a group that moves it to the centre, with its rotation written into the transform attribute from an animated number: it goes to TURN degrees in 0.42 seconds with power2.out and back to zero in 1.1 with elastic.out(1, 0.55). The side alternates by row, and unticking turns it the other way. The yellow mark on the rim makes the rotation readable.
An object with the hours shown: the large number and the ring’s stroke-dashoffset (pathLength 1) come from it, with power2.out. No spring: hours never overshoot.
Each manoeuvre is a button with aria-pressed; the tick draws itself in 0.34 seconds and the box bounces from 0.8. The tag rolls only if its text changes.
| Name | File | Default | What it changes |
|---|---|---|---|
DRIVEN | script.js | 14 | The hours already driven at the start. |
GOAL | script.js | 20 | The hours to do before the test. |
TURN | script.js | 120 | By how many degrees the wheel turns when a manoeuvre is ticked. |
ACCENT | script.js | #ffc53d | The colour of the hours done. |
PAUSE | script.js | 1.9 | Alone: how many seconds between one manoeuvre and the next. |
LOOP | script.js | true | Left alone, a pointer ticks the manoeuvres left. |
On the site or in the learner area of a driving school, in a driving lessons app, in any path counted in hours with stages to tick (licences, practical courses, internships).
The same card, as wide as the screen; the wheel never exceeds 30% of the height, the number drops to 38 pixels below 350 of width and the rows to 38 in short windows.
The wheel stays still, the tick appears, the number and the ring are at their value at once and the tag changes without rolling.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 5.8 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.