Skip to content
animorio
IT
Back to the library

Tasting menu belt

Images, TransitionsGSAP, CSS onlyMediumCompressed weight: Demo 9.9 KBGSAP 28 KBFreeDownload the zip

The dark warm tasting menu card of Ossel, a made-up restaurant, in the premium style of the interface pieces: up top a belt of five real plates (CC0 photos) runs sideways under the lamp of the pass and stops on a spring at each course, the middle plate grows and catches the light on its edge, the others shrink and dim. Below, the course card stays still and only its words change: the course and the dish roll up, the notes and the wine slide in, the glass fills and the serving time rolls on its digits. Five thin bars fill while each course waits; the belt can be dragged, tapped and runs by itself, and on dessert Reserve is pressed and answers with a check.

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>
<!--
  "Tasting menu belt" 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 tasting menu with the belt of plates passing under the course card</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">
    <!-- the tasting menu card of Ossel, a made-up restaurant. Up top a belt of real plates runs sideways under the
         warm lamp of the pass and stops on each course; below it the course card stays still and only its words
         change: the course, the dish, what is in it, the wine and the time it reaches the table -->
    <article class="menu" data-menu>
      <header class="menu__head">
        <p class="menu__brand"><span class="menu__mark">Ossel</span><span class="menu__sub">Tasting menu, autumn</span></p>
        <span class="menu__chip">5 courses</span>
      </header>

      <div class="belt" data-belt tabindex="0" role="group" aria-roledescription="carousel" aria-label="Courses of the tasting menu">
        <span class="belt__lamp" data-lamp aria-hidden="true"></span>
        <div class="belt__track" data-track>
          <figure class="plate" data-plate><span class="plate__body" data-body><img src="gamberi.webp" alt="Prawns and mussels in a saffron broth with charred sourdough" draggable="false" style="object-position: 40% 62%"></span></figure>
          <figure class="plate" data-plate><span class="plate__body" data-body><img src="tagliatelle.webp" alt="Tagliatelle with roast cherry tomatoes and basil on a white plate" draggable="false" style="object-position: 50% 30%"></span></figure>
          <figure class="plate" data-plate><span class="plate__body" data-body><img src="salmone.webp" alt="Grilled salmon with crème fraîche and thyme on a dark stone plate" draggable="false" style="object-position: 38% 50%"></span></figure>
          <figure class="plate" data-plate><span class="plate__body" data-body><img src="anatra.webp" alt="Sliced duck breast with blood orange and a herb salad" draggable="false" style="object-position: 50% 40%"></span></figure>
          <figure class="plate" data-plate><span class="plate__body" data-body><img src="crostata.webp" alt="A burnt honey custard tart on a white plate" draggable="false" style="object-position: 50% 62%"></span></figure>
        </div>
        <span class="belt__fade belt__fade--l" aria-hidden="true"></span>
        <span class="belt__fade belt__fade--r" aria-hidden="true"></span>
      </div>

      <div class="rail" aria-hidden="true">
        <span class="rail__ticks" data-ticks></span>
        <svg class="rail__notch" viewBox="0 0 10 6"><path d="M1 6L5 1.2 9 6"/></svg>
      </div>

      <section class="course" aria-live="polite">
        <div class="course__top">
          <span class="course__slot course__slot--label" data-label></span>
          <span class="course__time" data-time aria-label=""></span>
        </div>
        <h2 class="course__slot course__slot--dish" data-dish></h2>
        <p class="course__slot course__slot--notes" data-notes></p>
        <p class="course__pair">
          <svg class="course__glass" viewBox="0 0 16 16" aria-hidden="true"><path d="M5 1.8h6c.3 2.6.1 4.6-1 5.7-.6.6-1.3.9-2 .9s-1.4-.3-2-.9C4.9 6.4 4.7 4.4 5 1.8zM8 8.4v5.2M5.4 14.2h5.2"/><path class="course__wine" data-wine d="M5.3 4.4h5.4c-.1 1.3-.4 2.3-1 2.8-.5.5-1.1.7-1.7.7s-1.2-.2-1.7-.7c-.6-.5-.9-1.5-1-2.8z"/></svg>
          <span class="course__slot course__slot--wine" data-pairing></span>
        </p>
        <div class="course__bars" data-bars></div>
      </section>

      <footer class="menu__foot">
        <p class="menu__price"><span class="menu__amount">$128</span><span class="menu__per">per guest, pairing $75</span></p>
        <button class="reserve" type="button" data-reserve>
          <span class="reserve__face" data-face>
            <span class="reserve__words" data-words>Reserve</span>
            <svg class="reserve__icon" viewBox="0 0 16 16" aria-hidden="true">
              <path class="reserve__arrow" data-arrow d="M3 8h9M8.5 4.2L12.3 8 8.5 11.8"/>
              <path class="reserve__check" data-check pathLength="1" d="M3.4 8.4l3 3 6.2-6.6"/>
            </svg>
          </span>
        </button>
      </footer>
      <span class="menu__grain" aria-hidden="true"></span>
    </article>
  </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.

24 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 “Tasting menu belt” 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 an almost black page sits the dark warm card of Ossel, a made-up restaurant: at the top the mark, Tasting menu, autumn and the 5 courses pill. Below is a sunken window with a belt of five real plates: prawns and mussels in a saffron broth, tagliatelle with roast tomatoes, salmon with burnt pepper, duck breast with blood orange and a burnt honey custard tart. The middle plate sits under the amber light of the pass lamp, bigger, with a thread of light on its edge; the ones on the sides are smaller, darker and less saturated and fade into the dark of the window. Under the belt a rail of thin ticks runs with it and a small amber mark stays still in the middle. Further down the course card never moves: only its words change. The course (Starter, Pasta, Fish, Main, Dessert) rises from below, the dish name rises word by word on a small spring, the notes and the wine slide in from the side, the wine in the drawn glass fills again and the serving time rolls on its digits, from 19:30 to 21:15. Five thin bars fill while each course waits and when one is full the belt brings the next plate, with a pixel of bounce; the plates tilt a touch with the speed of the belt, the lamp dims while it runs and each photo slides a little against the belt. After dessert the starter comes back: the belt always runs forward. On dessert the Reserve button presses itself, squashes, springs back and becomes Held for two with a check that draws itself. The belt can be dragged with a finger or the mouse and stops on the nearest plate, a plate or a bar can be tapped to bring it to the middle, the arrow keys move it; with the pointer over it the belt waits.

How it works

The belt is a single number

The belt's position is one number, in plates, pulled by a spring (stiffness and damping) towards the course being served. Every frame each plate is placed from its distance to the middle, wrapped with a modulo over the five plates: so the belt runs forward for ever, follows the drag and settles with its pixel of bounce. Scale, brightness, the light on the edge and the slide of the photo all come from that same distance.

The card stays, the words change

Each line of the card is a box with hidden overflow: the new words come in from below while the old ones leave at the top and are then removed. The dish name is split into words that rise staggered with back.out; the time is four rolls of digits that GSAP takes to the right figure.

The bars are the time

The bar of the course is a scaleX tween as long as DWELL: when it ends it calls the next course. The pointer over the belt and the drag pause it, so the demo waits for whoever is looking without a separate timer.

Values to change

NameFileDefaultWhat it changes
DWELLscript.js3.2How many seconds each course waits under the lamp before the belt moves on.
STIFFNESSscript.js120The spring that pulls the belt to the course: higher is quicker.
DAMPINGscript.js17Lower lets the plate pass the mark and come back.
SIDEscript.js0.8How big the plates on the sides are (1 as big as the middle one).
DIMscript.js0.42How bright the plates on the sides stay (1 not dimmed).
PARALLAXscript.js0.1How far each photo slides against the belt.
LOOPscript.jstrueLeft alone, the belt brings the courses one after the other.
AUTO_RESERVEscript.jstrueLeft alone, Reserve is pressed while dessert is served.
--accentstyle.css#e3a35cThe amber of the lamp, the course, the mark and the bars.
--cardstyle.css#15120fThe warm black of the card.
--winestyle.css#8e2f3aThe wine in the little glass.

Try them in the Playground

When to use it

For the tasting menu page of a restaurant, a chef or a themed dinner: whoever looks sees the plates go by in the order they reach the table, with the wine and the time, and books without leaving the page. It also works for the menu of an event or a dinner with courses.

On phones

The same animation with adapted measures: the belt window is sized on the height (clamp with vh) and the card fits the box; on the phone the belt is dragged with a finger and a plate or a bar is tapped to bring it to the middle.

With reduced motion

No movement: the belt jumps to the new plate with a fade, the words change with a crossfade, the time simply changes and the button turns into Held for two with a fade.

Pitfalls

  • A belt that runs for ever is not a GSAP carousel that reaches the end and runs back: the position keeps growing and each plate is placed with its distance wrapped by a modulo, between minus half and plus half of the plates.
  • The plate gets a transform written by hand every frame: the press of the finger goes on its child (.plate__body), otherwise the ticker wipes it out.
  • With pointer capture the pointerup lands on the belt and not on the plate that was touched: the plate is remembered on pointerdown.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

Compressed with gzip, the three demo files weigh 9.9 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 animations