Skip to content
animorio
IT
Back to the library

Lazy Susan menu

Images, HoverGSAP, CSS onlyMediumCompressed weight: Demo 12 KBGSAP 28 KBFreeDownload the zip

The evening menu of Tonda, a made up sharing plates bar, in a light and warm card: four real dishes seen from above sit on a travertine lazy Susan. Hovering a dish name in the list, clicking a plate or dragging the tray turns it on a spring, a hair past the mark and back, until the chosen dish faces you; the plates turn with the tray, but their shadows and gloss stay put as under a real lamp. The front dish grows, the others fade into the stone, the name and the ingredients slide in from the side the tray turns and the price rolls on its digits. Add to table puts the dish on the order: the button swells, the tick draws itself, a ring of light runs round the rim of the plate and the table count rolls.

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>
<!--
  "Lazy Susan menu" 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>The sharing plates menu on a lazy Susan that brings the dish to the front</title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/mona-sans@5.3.0/wdth.css">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/fraunces@5.3.0/opsz.css">
  <link rel="stylesheet" href="style.css">
</head>
<body>
  <main class="stage" data-stage>
    <!-- the sharing menu of Tonda, a made up small plates bar: four real dishes seen from above sit on a round
         travertine lazy Susan. Hovering a dish in the list, clicking a plate or dragging the tray turns it on a spring
         until that dish faces you; the plates turn with the tray, but their shadows and their gloss stay put, because
         the lamp does not move. The front plate grows, its name and notes slide in, the price rolls, and Add to table
         drops it on the order with a ring of light around the rim -->
    <article class="card" data-card>
      <span class="card__edge" aria-hidden="true"></span>

      <header class="head">
        <span class="brand">
          <svg class="brand__mark" viewBox="0 0 20 20" aria-hidden="true">
            <circle cx="10" cy="10" r="7.6"/>
            <circle cx="10" cy="10" r="3.1"/>
            <path d="M10 2.4v4.5"/>
          </svg>
          <span class="brand__name">Tonda</span>
          <span class="brand__sub">Small plates</span>
        </span>
        <span class="tab" aria-live="polite">
          <span class="tab__words">Table 6</span>
          <span class="tab__count"><span class="tab__col" data-tabcol></span></span>
          <span class="tab__words tab__words--soft" data-tabword>plates</span>
        </span>
      </header>

      <div class="body">
        <div class="lazy" role="group" aria-label="Lazy Susan, drag to turn" data-lazy>
          <span class="lazy__shadow" aria-hidden="true"></span>
          <span class="lazy__stone" aria-hidden="true"></span>
          <div class="lazy__turn" data-turn>
            <svg class="lazy__ticks" viewBox="0 0 200 200" aria-hidden="true" data-ticks></svg>
            <button class="plate" type="button" style="--a:90deg" aria-label="Sourdough and cultured butter" data-plate>
              <span class="plate__lift" data-lift>
                <img class="plate__img" src="bread.webp" width="560" height="560" alt="" draggable="false">
                <span class="plate__dim" data-dim></span>
                <span class="plate__gloss" aria-hidden="true"></span>
                <span class="plate__ring" aria-hidden="true" data-ring></span>
              </span>
            </button>
            <button class="plate" type="button" style="--a:0deg" aria-label="Roast pumpkin velouté" data-plate>
              <span class="plate__lift" data-lift>
                <img class="plate__img" src="soup.webp" width="560" height="560" alt="" draggable="false">
                <span class="plate__dim" data-dim></span>
                <span class="plate__gloss" aria-hidden="true"></span>
                <span class="plate__ring" aria-hidden="true" data-ring></span>
              </span>
            </button>
            <button class="plate" type="button" style="--a:-90deg" aria-label="Spaghetti alla chitarra" data-plate>
              <span class="plate__lift" data-lift>
                <img class="plate__img" src="pasta.webp" width="560" height="560" alt="" draggable="false">
                <span class="plate__dim" data-dim></span>
                <span class="plate__gloss" aria-hidden="true"></span>
                <span class="plate__ring" aria-hidden="true" data-ring></span>
              </span>
            </button>
            <button class="plate" type="button" style="--a:180deg" aria-label="Tomatoes on the vine" data-plate>
              <span class="plate__lift" data-lift>
                <img class="plate__img" src="tomatoes.webp" width="560" height="560" alt="" draggable="false">
                <span class="plate__dim" data-dim></span>
                <span class="plate__gloss" aria-hidden="true"></span>
                <span class="plate__ring" aria-hidden="true" data-ring></span>
              </span>
            </button>
          </div>
          <span class="lazy__sheen" aria-hidden="true"></span>
          <svg class="lazy__notch" viewBox="0 0 16 8" aria-hidden="true"><path d="M2 7L8 1.6 14 7"/></svg>
        </div>

        <div class="info">
          <p class="info__kicker"><span class="info__mask"><span data-kicker>Tonight, to share</span></span></p>
          <h2 class="info__name"><span class="info__mask"><span data-name>Sourdough &amp; cultured butter</span></span></h2>
          <p class="info__line"><span class="info__mask"><span data-line>Seeded loaf, whipped butter, sea salt</span></span></p>

          <div class="info__meta">
            <p class="price" data-price aria-label="10 euros">
              <span class="price__cur">€</span>
              <span class="price__col" data-col></span>
              <span class="price__col" data-col></span>
            </p>
            <span class="serves"><span class="info__mask"><span data-serves>Serves 2</span></span></span>
          </div>

          <div class="list" role="list" data-list>
            <span class="list__hi" aria-hidden="true" data-hi></span>
            <button class="row" type="button" role="listitem" data-row><span class="row__name">Sourdough</span><span class="row__price">10</span></button>
            <button class="row" type="button" role="listitem" data-row><span class="row__name">Pumpkin velouté</span><span class="row__price">13</span></button>
            <button class="row" type="button" role="listitem" data-row><span class="row__name">Spaghetti</span><span class="row__price">18</span></button>
            <button class="row" type="button" role="listitem" data-row><span class="row__name">Vine tomatoes</span><span class="row__price">12</span></button>
          </div>

          <button class="add" type="button" data-add>
            <span class="add__face" data-addface>
              <svg class="add__icon" viewBox="0 0 16 16" aria-hidden="true"><path class="add__plus" data-plus d="M8 3.5v9M3.5 8h9"/><path class="add__tick" data-tick pathLength="1" d="M3.4 8.4l3 3 6.2-6.6"/></svg>
              <span class="add__words"><span data-addwords>Add to table</span></span>
            </span>
          </button>
        </div>
      </div>
    </article>

    <svg class="pointer" viewBox="0 0 24 24" aria-hidden="true" data-pointer><path d="M5 3l13.5 8.2-6.1 1.3 3.4 6.6-2.6 1.3-3.4-6.6L5 18.4z"/></svg>
    <p class="sr" aria-live="polite" data-live></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>

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.

35 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 “Lazy Susan menu” 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 a warm white ground sits the menu card of Tonda, a made up sharing plates bar. At the top the mark, a circle with a ring inside, Tonda and Small plates, and on the right the Table 6 pill with 2 on the order. On the left a travertine lazy Susan, with a fine grain, the lamp’s reflection at the top left and a crown of ticks on the rim; on it sit four real dishes shot from above: the seeded bread on a blue plate, the pumpkin soup, the spaghetti and the tomatoes on the vine. Under the tray a small terracotta caret marks the front. On the right Tonight, to share, the dish name, the ingredients, the price, how many it serves, the list of the four dishes and the dark Add to table button. The tray comes in turning and settles; the plates swell up from small. Hovering a name in the list turns the tray on a spring to that dish, a hair past the mark and back: the front dish grows, the ones behind shrink and pale, while the shadows always fall downwards and the gloss always sits at the top left. The name and the ingredients leave and come in from the side it turns, the price rolls, and in the list a light pill slides to the chosen line. You can drag the tray with a finger too: let go, it carries on a little and stops on the nearest dish. Add to table presses and bounces, turns terracotta with a tick drawing itself and the words On the table, a ring of light runs once round the plate’s rim, the plate gives a small nod and the table count rolls from 2 to 3. Left alone, a drawn pointer tries two dishes from the list, drags the tray, adds the tomatoes and goes back to the bread.

How it works

One number for the turn

The whole tray hangs on one angle, which GSAP carries to the chosen dish with back.out for the hair past the mark. A ticker draws it every frame: it turns the layer with the plates and, for each plate, measures how far it is from the front and works out its size and veil on a soft curve.

The lamp that does not turn

The plates turn with the tray, but each shadow uses two CSS variables, --sx and --sy, which the script works out by turning the same angle backwards (sine and cosine): the shadow always falls downwards. The gloss is a circle over the photo turned by minus the angle, so it stays at the top left.

Plates in percent, the drag in degrees

The plates sit on the ring with left and top in percent worked out with CSS cos() and sin(), so they follow any size with no recalculation. The drag measures the finger’s angle round the centre, keeps its speed and, on release, adds a bit of throw before snapping to the nearest dish.

Values to change

NameFileDefaultWhat it changes
TURN_TIMEscript.js1.05The seconds the tray takes to bring a dish to the front.
OVERSHOOTscript.js1.3How far the tray swings past the dish before it settles (0 none).
FRONT_SCALEscript.js1.14How big the dish in front gets.
BACK_SCALEscript.js0.86How small the dishes at the back get.
FADEscript.js0.34How much the dishes away from the front fade into the stone (0 none).
THROWscript.js0.3How far a drag keeps turning after you let go.
SHADOWscript.js1How long the plates’ shadows are (0 none).
AUTOPLAYscript.jstrueLeft alone, a drawn pointer turns the tray and adds a dish.
--accentstyle.css#c2512cThe terracotta of the price, the caret, the button and the ring of light.
--stonestyle.css#e6dccdThe travertine of the tray.

Try them in the Playground

When to use it

For the site of a restaurant, a bar or a wine bar with sharing plates: the evening menu becomes a tray to turn, each dish is seen in a photo before choosing it and goes onto the table’s order.

On phones

The same animation with adapted measures: the tray on top, sized on the height too, and under it the name, the price and the button on one line; the list hides and you choose by tapping a plate or dragging the tray with a finger. Below 520 pixels of height the ingredients hide too.

With reduced motion

No turning: the tray switches to the chosen dish with a fade, the words change with a cross-fade and the price is in place at once.

Pitfalls

  • A shadow on an element that turns turns with it: the shadow’s offset has to be turned back by the same angle, with two CSS variables updated every frame.
  • While the tray turns, a plate passes under the pointer: with hover on the plates the tray would chase itself. Hover turns the tray only from the list; on the plates it just lifts the plate and the turn starts on click.
  • With Mona Sans no tabular-nums on the price digits: the tabular zero has a slash; the digits sit in columns of the same width instead.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0, Fraunces (font variabile) 5.3.0.

Compressed with gzip, the three demo files weigh 12 KB; the libraries: GSAP 28 KB.

Testing

Tested on 15 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 animations