
The star rating
Ratings, SVG, Hover
The seat selector for a dinner: a round table seen from above with eight chairs, the taken ones with initials and the free ones with a plus. Tap a free chair, your seat sits down there with a spring, the two neighbours light up and the line below says who you are sitting between.
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>
<!--
"Round table seat picker" 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>Seat picker at the round table of a dinner with the neighbours who introduce themselves</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">
<!-- choosing a seat at a round table: the free seats are open rings with a plus, the taken ones carry initials;
your seat moves where you tap, the two neighbours light up and the line below says who you sit between -->
<section class="tb" data-tb aria-label="Choose your seat">
<header class="tb__head">
<span class="tb__title" id="tb-title">Choose your seat</span>
<span class="tb__free"><b data-free></b> free</span>
</header>
<div class="tb__stage">
<svg viewBox="0 0 240 204" data-svg role="radiogroup" aria-labelledby="tb-title">
<defs><radialGradient id="tb-wood" cx="0.38" cy="0.3" r="0.9"><stop offset="0" stop-color="#3a3c43"></stop><stop offset="1" stop-color="#1d1e23"></stop></radialGradient></defs>
<circle class="tb__shadow" cx="120" cy="108" r="50"></circle>
<circle class="tb__table" cx="120" cy="102" r="50"></circle>
<circle class="tb__rim" cx="120" cy="102" r="44"></circle>
<g data-links></g>
<g data-seats></g>
</svg>
<p class="tb__name" aria-hidden="true">Table Olive<i>Dinner, 8 pm</i></p>
</div>
<p class="tb__say" aria-live="polite"><span data-say></span></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.
15 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 “Round table seat picker” from Animorio and fit it into my siteEach chair is an SVG group drawn around zero: position and scale are written together into the transform attribute from a number GSAP animates, so the spring always starts from the chair’s centre.
On choosing, your seat starts at 55% and returns to 1 with elastic.out in POP seconds; the neighbours go to 1.14 and come back 0.18 s later, the chair you left settles with back.out.
Two arcs along the table’s edge are drawn with stroke-dashoffset from your seat towards the neighbours; the sentence leaves and comes back in the direction of the move, clockwise or anticlockwise.
| Name | File | Default | What it changes |
|---|---|---|---|
START | script.js | 1 | The seat chosen at the start, 0 to 7 clockwise from the top (it must be free). |
ACCENT | script.js | #f0b35a | The colour of your seat and of the neighbours. |
POP | script.js | 0.6 | How many seconds your seat takes to sit down. |
PAUSE | script.js | 1.9 | On its own: how many seconds it stays on each seat. |
LOOP | script.js | true | Left alone, a pointer tries the free seats. |
When booking a shared-table dinner, a reception, a wedding or an evening with assigned seats: wherever it matters who you sit next to.
The same component: the table scales with the width and never exceeds half the window’s height, the chairs stay large enough to tap.
No springs or arcs being drawn: the seat, the neighbours and the sentence change at once.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 5.1 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.