
The star rating
Ratings, SVG, Hover
A festival’s shuttle in a card: a large number says in how many minutes it reaches your stop, and below it the green line with its four stops and the minibus running along it, stopping at each. Choosing another stop the count is worked out again and rolls to the new number; when the minibus reaches yours, the number turns green and the line says boarding is now.
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>
<!--
"Festival shuttle card" 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>Festival shuttle card with the next ride counting down and the stops on the line</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 shuttle of a festival: the bus runs along the line and waits at each stop; the big number says in how
many minutes it reaches your stop, and choosing another stop the count is worked out again -->
<article class="bus" data-bus>
<header class="bus__head">
<div><span class="bus__line">Green line</span><h1>Shuttle to the gates</h1></div>
<p class="bus__seats"><strong class="roll"><span data-seats>14</span></strong><span>seats left</span></p>
</header>
<p class="eta" aria-hidden="true"><strong class="roll roll--big"><span data-eta>6</span></strong><span class="eta__side"><span class="roll"><span data-unit>min</span></span><span class="roll eta__to"><span data-to>to Camping</span></span></span></p>
<div class="route">
<span class="route__road" aria-hidden="true"></span>
<span class="route__done" data-done aria-hidden="true"></span>
<span class="route__van" data-van aria-hidden="true"><svg viewBox="0 0 34 20"><rect class="van__body" x="1" y="2.5" width="32" height="13" rx="4.5"></rect><rect class="van__glass" x="4.4" y="5.2" width="6.6" height="5" rx="1.4"></rect><rect class="van__glass" x="12.6" y="5.2" width="6.6" height="5" rx="1.4"></rect><rect class="van__glass" x="20.8" y="5.2" width="8.6" height="5" rx="1.4"></rect><rect class="van__wheel" x="6" y="14" width="5.4" height="4.4" rx="2.2"></rect><rect class="van__wheel" x="22.600" y="14" width="5.4" height="4.4" rx="2.2"></rect></svg></span>
<div class="route__stops" role="radiogroup" aria-label="Your stop" data-stops></div>
</div>
</article>
<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.
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 “Festival shuttle card” from Animorio and fit it into my siteThe run is a single repeating GSAP timeline: for each stop a tween of the position (power1.inOut, RIDE seconds) and a wait of WAIT seconds. While it is built, the script notes the arrival time at each stop.
On every frame the minutes to your stop are the arrival time minus the timeline’s time (plus one lap, if the minibus has already passed), divided by RIDE and multiplied by MINUTES. The number rolls only when it really changes.
The position is a fraction of the line: the minibus has left in percent and the covered part a scaleX equal to the same fraction, so nothing to recalculate on resize. At your stop it gives an elastic hop.
| Name | File | Default | What it changes |
|---|---|---|---|
RIDE | script.js | 1.5 | How many seconds the shuttle takes between one stop and the next. |
WAIT | script.js | 0.9 | How many seconds it waits at each stop. |
MINUTES | script.js | 4 | How many real minutes one stretch between two stops is worth. |
STOP | script.js | 2 | Your stop at the start (1 is the first). |
SEATS | script.js | 14 | The seats left when it leaves. |
ACCENT | script.js | #12a35c | The colour of the line and of the shuttle. |
LOOP | script.js | true | Left alone, a pointer changes stop. |
For the site or app of a festival, a fair, a stadium or a holiday resort with a shuttle from the car park or the station, and for a hotel’s or an airport’s shuttle. In a real product the position comes from the vehicle’s GPS and the minutes from the timetable service.
The same card, at most as wide as the screen minus the margins, with the large number measured on the height too; the stops are touched with a finger.
No running minibus: it stands at the first stop and the minutes are the ones from there; changing stop, number and labels change in place.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 5.3 KB; the libraries: GSAP 28 KB.
Tested on 15 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.