
Title rising from a line
Transitions, Text, Images
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.
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>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
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 siteThe 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.
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.
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.
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.
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.
| Name | File | Default | What it changes |
|---|---|---|---|
TURN_SPRING | script.js | 1.4 | The overshoot of the tray as it clicks onto a plate. |
DRAG | script.js | 1 | How much the tray turns for a drag: 1 follows the finger. |
LIFT_SCALE | script.js | 1.16 | How much the plate at the front grows. |
DIM | script.js | 0.28 | How much the other plates darken (0 none). |
FLY_TIME | script.js | 0.85 | Seconds the plate takes to fly into the sheet and back. |
SHEET_TIME | script.js | 0.6 | Seconds the sheet takes to rise. |
AUTOPLAY | script.js | true | Left alone, it turns the tray, orders and opens the starters until someone touches 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.
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.
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.
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.
Tested on 17 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.