Skip to content
animorio
IT
All components

Round table seat picker

Pickers, Hover, SVGGSAP, CSS onlyMediumCompressed weight: Demo 5.1 KBGSAP 28 KBFreeDownload the zip

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.

The code

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>

Playground

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

Or ask your AI assistant for it

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 site
Platform licenseFree on your sites and your clients’ sites. Want it inside a website builder, a template platform or a client dashboard? There’s a license for agencies and platforms.

What it does

On black, a dark card: at the top “Choose your seat” and how many seats are still free, in the middle a round table seen from above that says “Table Olive” with eight round chairs around it. The taken chairs carry the initials of who is there, the free ones a plus. On opening the chairs arrive one after the other. Tapping a free chair, your amber seat marked “You” sits down there with an elastic spring, the chair you left settles back, the two neighbours get an amber edge and give a small jolt, two short arcs along the table’s edge link you to them, the count of free seats hops and the line below rolls to “Between Rosa and Kenji” in the direction you moved. It works from the keyboard too.

How it works

Chairs around zero

Each 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.

Sitting down

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.

The arcs and the sentence

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.

Values to change

NameFileDefaultWhat it changes
STARTscript.js1The seat chosen at the start, 0 to 7 clockwise from the top (it must be free).
ACCENTscript.js#f0b35aThe colour of your seat and of the neighbours.
POPscript.js0.6How many seconds your seat takes to sit down.
PAUSEscript.js1.9On its own: how many seconds it stays on each seat.
LOOPscript.jstrueLeft alone, a pointer tries the free seats.

Try them in the Playground

When to use it

When booking a shared-table dinner, a reception, a wedding or an evening with assigned seats: wherever it matters who you sit next to.

On phones

The same component: the table scales with the width and never exceeds half the window’s height, the chairs stay large enough to tap.

With reduced motion

No springs or arcs being drawn: the seat, the neighbours and the sentence change at once.

Pitfalls

  • The guests are a list at the top of the script: an empty name is a free seat. On a real site they come from the server, and a seat can be taken while you look.
  • It is a radiogroup: taken chairs are aria-disabled and take no focus, free ones say who you would sit between.
  • With an empty neighbour the sentence says “an empty seat” and the arc on that side is not drawn.

Libraries

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.

Testing

Tested on 16 November 2026

  • Desktop: Done
  • Phone: Done
  • Reduced motion: Done
  • Safari on iPhone: To do

License

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.

All components