Skip to content
animorio
IT
Back to the library

Turntable menu

Transitions, Physics, ImagesGSAP, CSS onlyMediumCompressed weight: Demo 17 KBGSAP 28 KBFreeDownload the zip

The phone menu of an invented Mexican kitchen, Nopal: the evening's four favourite dishes on the rim of a wooden turntable seen from above, in real photos. Turn it with a thumb, and the plate that comes to the front lifts while its part, name and price change above it; ‘Order’ drops it into the basket of the cart, ‘All starters’ raises a sheet from the bottom with that part of the menu and flies the plate into it.

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>
<!--
  "Turntable 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, viewport-fit=cover">
  <title>Turntable menu</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 phone menu of Nopal, a made up Mexican neighbourhood kitchen. Tonight's favourites sit on the rim of a
         wooden turntable seen from above, one from every part of the menu: turn it with a thumb and the plate that
         comes to the front is lifted, with its name and price above and Order and «All starters» under the thumb.
         Order drops a copy of the plate into the basket at the top; «All starters» raises a sheet with that part of the
         menu and flies the plate into it -->
    <article class="app" data-app>
      <header class="head">
        <span class="brand">
          <svg class="brand__mark" viewBox="0 0 20 20" aria-hidden="true">
            <path d="M10 17.5V9.2"/>
            <path d="M10 9.2c0-3.4 2.2-5.6 4.4-5.6 0 3.4-2.1 5.6-4.4 5.6z"/>
            <path d="M10 12.4c0-2.6-1.8-4.4-3.8-4.4 0 2.6 1.7 4.4 3.8 4.4z"/>
          </svg>
          <span class="brand__name">Nopal</span>
        </span>
        <span class="tab" aria-live="polite" data-tab>
          <span class="tab__fill" aria-hidden="true" data-tabfill></span>
          <span class="cart" aria-hidden="true" data-cart>
            <img class="cart__item" src="nachos.webp" alt="" data-cartitem>
            <svg viewBox="0 0 20 20"><path class="cart__handle" d="M6.6 8.4 9.2 3.9M13.4 8.4 10.8 3.9"/><path class="cart__body" d="M2.9 8.4h14.2l-1.7 7.3a1.7 1.7 0 0 1-1.7 1.3H6.3a1.7 1.7 0 0 1-1.7-1.3z"/><path class="cart__slats" d="M8 11.2v3.1M12 11.2v3.1"/></svg>
          </span>
          <span class="tab__plus" aria-hidden="true" data-plusone>+1</span>
          <span class="tab__words">Order</span>
          <span class="tab__count"><span class="tab__col" data-tabcol></span></span>
        </span>
      </header>

      <section class="fav" data-fav aria-label="Tonight's favourites">
        <div class="words">
          <p class="words__kicker">Tonight's favourites</p>
          <p class="words__part"><span class="mask"><span data-cat>Starters</span></span></p>
          <h2 class="words__name"><span class="mask"><span data-name>Loaded nachos</span></span></h2>
          <p class="words__line"><span class="mask"><span data-line>Black beans, queso, pico de gallo, crema</span></span></p>
        </div>

        <!-- the turntable: drag it sideways, or tap a plate, or use the arrow keys -->
        <div class="spin" data-spin role="listbox" aria-label="Turn the tray to choose a favourite" tabindex="0">
          <span class="spin__shadow" aria-hidden="true" data-trayshadow></span>
          <div class="tray" data-tray>
            <span class="tray__wood" aria-hidden="true"></span>
            <span class="tray__pin" aria-hidden="true"></span>
            <button class="plate" type="button" role="option" aria-label="Loaded nachos, starters" data-plate>
              <span class="plate__lift" data-lift>
                <span class="plate__glow" aria-hidden="true" data-glow></span>
                <span class="plate__rim"><img class="plate__img" src="nachos.webp" width="640" height="640" alt="" draggable="false"><span class="plate__gloss" aria-hidden="true"></span><span class="plate__veil" aria-hidden="true" data-veil-plate></span></span>
              </span>
            </button>
            <button class="plate" type="button" role="option" aria-label="Picadillo tacos, tacos" data-plate>
              <span class="plate__lift" data-lift>
                <span class="plate__glow" aria-hidden="true" data-glow></span>
                <span class="plate__rim"><img class="plate__img" src="tacos.webp" width="640" height="640" alt="" draggable="false"><span class="plate__gloss" aria-hidden="true"></span><span class="plate__veil" aria-hidden="true" data-veil-plate></span></span>
              </span>
            </button>
            <button class="plate" type="button" role="option" aria-label="Churros and cajeta, sweets" data-plate>
              <span class="plate__lift" data-lift>
                <span class="plate__glow" aria-hidden="true" data-glow></span>
                <span class="plate__rim"><img class="plate__img" src="churros.webp" width="640" height="640" alt="" draggable="false"><span class="plate__gloss" aria-hidden="true"></span><span class="plate__veil" aria-hidden="true" data-veil-plate></span></span>
              </span>
            </button>
            <button class="plate" type="button" role="option" aria-label="Lime agua fresca, drinks" data-plate>
              <span class="plate__lift" data-lift>
                <span class="plate__glow" aria-hidden="true" data-glow></span>
                <span class="plate__rim"><img class="plate__img" src="lime.webp" width="640" height="640" alt="" draggable="false"><span class="plate__gloss" aria-hidden="true"></span><span class="plate__veil" aria-hidden="true" data-veil-plate></span></span>
              </span>
            </button>
          </div>
          <!-- the lamp above the table does not turn with the tray -->
          <span class="spin__lamp" aria-hidden="true"></span>
          <!-- the four parts of the menu, as a quiet row under the tray: the one at the front is written in ink -->
          <p class="parts" aria-hidden="true" data-parts><span>Starters</span><span>Tacos</span><span>Sweets</span><span>Drinks</span></p>
        </div>

        <div class="bar">
          <p class="price" data-price aria-label="11 dollars">
            <span class="price__cur">$</span>
            <span class="price__col" data-col></span>
            <span class="price__col" data-col></span>
          </p>
          <button class="order" type="button" data-order>
            <span class="order__face" data-orderface>
              <svg class="order__icon" viewBox="0 0 16 16" aria-hidden="true"><path class="order__plus" data-plus d="M8 3.5v9M3.5 8h9"/><path class="order__tick" data-tick pathLength="1" d="M3.4 8.4l3 3 6.2-6.6"/></svg>
              <span class="order__words"><span data-orderwords>Order</span></span>
            </span>
          </button>
          <button class="all" type="button" data-all>
            <span class="all__words"><span data-allwords>All starters</span></span>
            <svg class="all__arrow" viewBox="0 0 16 16" aria-hidden="true"><path d="M3 8h9.5M8.6 4l4 4-4 4"/></svg>
          </button>
        </div>
      </section>

      <!-- one part of the menu, on a sheet that rises from the bottom: drag it down, tap Favourites or press Esc -->
      <span class="veil" aria-hidden="true" data-veil></span>
      <section class="sheet" data-sheet aria-label="Menu section" inert>
        <div class="sheet__grip" data-grip><span class="sheet__handle" aria-hidden="true"></span></div>
        <div class="sheet__top">
          <span class="hero" data-hero>
            <img class="hero__img" src="nachos.webp" width="640" height="640" alt="" draggable="false" data-hero-img>
            <span class="plate__gloss" aria-hidden="true"></span>
          </span>
          <div class="sheet__words">
            <button class="back" type="button" data-back>
              <svg class="back__arrow" viewBox="0 0 16 16" aria-hidden="true"><path d="M13 8H3.5M7.4 4l-4 4 4 4"/></svg>
              <span>Favourites</span>
            </button>
            <h2 class="sheet__title" data-cat-title>Starters</h2>
            <p class="sheet__count" data-cat-count>4 dishes</p>
          </div>
        </div>
        <ol class="dishes" data-dishes></ol>
      </section>

      <span class="flyer" aria-hidden="true" data-flyer><img src="nachos.webp" alt="" data-flyer-img><span class="plate__gloss"></span></span>
      <span class="chip" aria-hidden="true" data-chip><img src="nachos.webp" alt="" data-chip-img></span>
    </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.

34 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 “Turntable 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

The screen of a phone app, the colour of warm paper: at the top the ‘Nopal’ mark with a drawn leaf and the ‘Order’ pill with a basket and the number of dishes. Below, ‘Tonight's favourites’, the part of the menu, the dish name and its ingredients. In the middle a turntable of turned wood, with the rings of the grain, a darker edge and a brass pin, and on it four round ceramic plates with real photos: nachos, tacos, churros and a lime agua fresca; the ones at the sides peek in from the edges of the screen. The plate at the front, at the bottom, is lifted and bigger, the others veiled. Dragging sideways turns the tray under the finger, and letting go it carries on with the push of the gesture and stops on the nearest plate with a small bounce; each plate that comes to the front lifts and above it the part, name and ingredients change in their masks, the price turns on rollers and under the tray the chosen part is written in ink. A plate can also be tapped, or the arrow keys used. ‘Order’ gives, a round copy of the plate arcs to the basket and drops into it, the basket sinks with the weight and wobbles, the pill fills green, a ‘+1’ rises and the number rolls. ‘All starters’ raises a sheet with a handle from the bottom, over a dark veil, and the plate itself leaves the tray and flies into the photo at the top of the sheet, beside ‘Favourites’, the title ‘Starters’ and ‘4 dishes’; then the four dishes of the part come in one after another with their prices, the favourite with a ‘Favourite’ tag. The sheet closes by pulling it down by the handle, with ‘Favourites’, with Esc or by tapping the veil, and the plate goes back onto the tray. On its own it turns the tray to the tacos, orders them, turns back to the nachos, opens the starters and pulls the sheet down, until someone touches it.

How it works

A single angle

The tray is one element that GSAP turns with a single number, the angle phi. The plates are its children, set on the rim 90 degrees apart: turning the tray turns them with it. The plate at the front is the one whose angle, plus phi, makes 90 degrees, that is at the bottom.

The finger and the push

While dragging, the sideways movement divided by the radius becomes the angle: the front rim follows the finger. On release the speed of the gesture adds a bit more turn and the angle is rounded to the nearest plate with back.out, the small click of a tray coming to rest.

Sizes from the room there is

The script measures the room between the words and the bar and works out the size of the plates, the radius and the tray from it: the round plates sit far enough apart that the lifted one never touches its neighbours, and the tray may be wider than the screen, with the side plates peeking in from the edges.

The sheet and the flying plate

For ‘All starters’ the photo of the sheet is measured where it will be once the sheet is up; a copy of the plate leaves the tray with its rotation and lands there with position, size, corners and shadows, while the sheet rises with expo.out. At both ends the hand-over between the copy and the real plate is a very short cross-fade.

Pulling it down

The handle and the head of the sheet follow the finger down and the veil lightens; let go past a fifth of the height, or with a quick flick, and the sheet closes and the plate flies back to the tray from wherever it is at that moment, otherwise it springs back up.

Values to change

NameFileDefaultWhat it changes
TURN_SPRINGscript.js1.4The overshoot of the tray as it clicks onto a plate.
DRAGscript.js1How much the tray turns for a drag: 1 follows the finger.
LIFT_SCALEscript.js1.16How much the plate at the front grows.
DIMscript.js0.28How much the other plates darken (0 none).
FLY_TIMEscript.js0.85Seconds the plate takes to fly into the sheet and back.
SHEET_TIMEscript.js0.6Seconds the sheet takes to rise.
AUTOPLAYscript.jstrueLeft alone, it turns the tray, orders and opens the starters until someone touches it.

Try them in the Playground

When to use it

For the app or phone site of a restaurant, a taqueria, a bar or a takeaway: instead of a list, the favourite dishes on a tray to turn with a thumb, to order straight away or to open their part of the menu.

On phones

It is made for the phone: it fills the screen, the tray turns under the thumb, ‘Order’ and ‘All starters’ sit at the bottom where the thumb reaches and the sheet closes by pulling it down. On a computer it shows as a phone screen in the middle.

With reduced motion

No turning and no flights: the tray jumps to the chosen plate, the words change with a fade, the order count goes up without the flying copy and the sheet appears with a fade, the photo already in its place.

Pitfalls

  • Square plates on a round tray touch at the corners as soon as the front one grows: with round plates the distance needed is the diameter, and the radius of the ring is at least 0.8 times the plate.
  • The photo of the sheet has to be measured where it will be once the sheet is up: it is put up, measured and put back down in the same frame, before the browser paints it.
  • With a finger the pointerup goes to the tray (which captured the pointer), not to the plate that was tapped: the plate is found with elementFromPoint.
  • Closing the sheet halfway through a drag, the plate leaves from the photo where it is at that moment, not from where it was with the sheet open.

Libraries

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

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

Testing

Tested on 17 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