Skip to content
animorio
IT
All components

Full screen restaurant menu

Menus, Transitions, ImagesGSAP, CSS only, CanvasMediumCompressed weight: Demo 9.3 KBGSAP 28 KBFreeDownload the zip

The navigation menu of Osteria Fumo, a made-up restaurant, on black: from the hamburger in a small glass bar a dark panel drops over the whole frame, a soft curtain whose edge bends with its speed and settles on a spring. On the left the five big entries rise one after the other, on the right a real photo changes with the entry under the pointer: the room, the glasses, the long table, the counter, the terrace, each dropping in like a blind with a line of light, a light zoom and film grain. The entry slides a few pixels and takes weight on the wght axis; the X closes it going back the same way.

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>
<!--
  "Full screen restaurant 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 full screen menu of the restaurant, with the photo of the room that changes</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/full.css">
  <link rel="stylesheet" href="style.css">
</head>
<body>
  <main class="stage">
    <!-- the navigation of Osteria Fumo, a made-up restaurant. A drawn hamburger in a small bar opens a dark panel over
         the whole frame with a soft curtain; on the left the big entries come in one after the other, on the right a
         real photo changes with the entry under the pointer (a curtain with a light zoom and a little film grain);
         under them the address and the opening hours. The X closes it going back the same way -->
    <div class="fumo" data-fumo>
      <div class="fumo__panel" data-panel aria-hidden="true">
        <div class="fumo__glow" aria-hidden="true"></div>
        <div class="fumo__body">
          <nav class="fumo__nav" id="fumo-menu" aria-label="Osteria Fumo">
            <ul class="fumo__list" data-list>
              <li class="voce" data-voce="0">
                <a class="voce__link" href="#" data-link>
                  <span class="voce__mask"><span class="voce__in" data-in><span class="voce__txt">Menu</span><svg class="voce__arrow" viewBox="0 0 20 20" aria-hidden="true"><path pathLength="1" d="M4 10h11M10.5 5.5 15 10l-4.5 4.5"/></svg></span></span>
                  <span class="voce__note" data-note>Written every morning</span>
                </a>
              </li>
              <li class="voce" data-voce="1">
                <a class="voce__link" href="#" data-link>
                  <span class="voce__mask"><span class="voce__in" data-in><span class="voce__txt">Wine</span><svg class="voce__arrow" viewBox="0 0 20 20" aria-hidden="true"><path pathLength="1" d="M4 10h11M10.5 5.5 15 10l-4.5 4.5"/></svg></span></span>
                  <span class="voce__note" data-note>Three hundred labels</span>
                </a>
              </li>
              <li class="voce" data-voce="2">
                <a class="voce__link" href="#" data-link>
                  <span class="voce__mask"><span class="voce__in" data-in><span class="voce__txt">Private dining</span><svg class="voce__arrow" viewBox="0 0 20 20" aria-hidden="true"><path pathLength="1" d="M4 10h11M10.5 5.5 15 10l-4.5 4.5"/></svg></span></span>
                  <span class="voce__note" data-note>The long table, up to twenty</span>
                </a>
              </li>
              <li class="voce" data-voce="3">
                <a class="voce__link" href="#" data-link>
                  <span class="voce__mask"><span class="voce__in" data-in><span class="voce__txt">Book a table</span><svg class="voce__arrow" viewBox="0 0 20 20" aria-hidden="true"><path pathLength="1" d="M4 10h11M10.5 5.5 15 10l-4.5 4.5"/></svg></span></span>
                  <span class="voce__note" data-note>Tonight from seven</span>
                </a>
              </li>
              <li class="voce" data-voce="4">
                <a class="voce__link" href="#" data-link>
                  <span class="voce__mask"><span class="voce__in" data-in><span class="voce__txt">Visit</span><svg class="voce__arrow" viewBox="0 0 20 20" aria-hidden="true"><path pathLength="1" d="M4 10h11M10.5 5.5 15 10l-4.5 4.5"/></svg></span></span>
                  <span class="voce__note" data-note>Behind the old bakery</span>
                </a>
              </li>
            </ul>
          </nav>

          <figure class="foto" data-foto>
            <div class="foto__frame" data-frame>
              <div class="foto__zoom" data-zoom>
              <div class="foto__shot" data-shot><img src="sala.webp" width="960" height="640" alt="The dining room by candlelight"></div>
              <div class="foto__shot" data-shot><img src="calici.webp" width="960" height="640" alt="Wine glasses on an old wooden table"></div>
              <div class="foto__shot" data-shot><img src="tavolata.webp" width="960" height="640" alt="Plates and glasses on a table during dinner"></div>
              <div class="foto__shot" data-shot><img src="bancone.webp" width="960" height="640" alt="The bar counter in warm light"></div>
              <div class="foto__shot" data-shot><img src="ingresso.webp" width="960" height="640" alt="The terrace under string lights at night"></div>
              </div>
              <span class="foto__edge" data-edge aria-hidden="true"></span>
              <canvas class="foto__grain" data-grain aria-hidden="true"></canvas>
              <span class="foto__vignette" aria-hidden="true"></span>
            </div>
            <figcaption class="foto__cap">
              <span class="foto__cap-mask"><span class="foto__cap-roll" data-roll>
                <span>The room by candlelight</span>
                <span>Glasses on the old oak table</span>
                <span>Dinner at the long table</span>
                <span>The counter, from seven</span>
                <span>The terrace, under the lights</span>
              </span></span>
            </figcaption>
          </figure>

          <footer class="fumo__foot" data-foot>
            <p><span class="fumo__label">Find us</span>Vicolo del Forno 7, Bologna</p>
            <p><span class="fumo__label">Open</span>Tue to Sun, 19:00 to 23:30</p>
          </footer>
        </div>
      </div>

      <header class="bar" data-bar>
        <span class="bar__brand">Osteria <em>Fumo</em></span>
        <button class="burger" type="button" aria-expanded="false" aria-controls="fumo-menu" aria-label="Open the menu" data-burger>
          <span class="burger__face" data-burger-face>
            <svg class="burger__icon" viewBox="0 0 24 24" aria-hidden="true">
              <path class="burger__l burger__l--a" data-la d="M4 8h16"/>
              <path class="burger__l burger__l--b" data-lb d="M8 12h12"/>
              <path class="burger__l burger__l--c" data-lc d="M4 16h16"/>
            </svg>
          </span>
        </button>
      </header>
    </div>
    <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.

37 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 “Full screen restaurant 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 black page, in the middle of the frame, there is a long dark bar with round ends catching the light: on the left the name ‘Osteria Fumo’, with ‘Fumo’ in candle coloured italics, on the right a round glass button with three drawn lines, the middle one shorter. On a tap the bar rises to the top on a spring that passes the mark and comes back, the three lines turn into an X (the outer two meet in the middle and turn, the short one shrinks away) and a dark panel drops from the top over the whole frame: its bottom edge bends in the middle while it runs and goes straight again with a small bounce when it stops. On the left the five big entries in a serif, Menu, Wine, Private dining, Book a table, Visit, rise one after the other out of their masks with a slight turn, each with a small line under it; on the right the photo of the room opens from the bottom, with a zoom that settles. Under the entries, after a thin rule, the address and the hours. Moving onto an entry, it slides ten pixels on a spring, gets heavier and brighter, a candle coloured arrow draws itself beside it, the line under it takes the same colour and the other entries dim; the photo changes: the new one drops from the top like a blind with a thin line of warm light on its edge, starts zoomed in and dark and settles, the grain boils for a moment, and the one before steps back into the dark. The glass label on the photo rolls to the new caption. The X closes it all going back the same way. Left alone, an inner pilot opens the menu, walks over every entry and closes it again.

How it works

A curtain drawn in pixels

The panel is cut by a clip-path path() rewritten every frame: straight sides and a bottom edge that is a quadratic curve. The GSAP timeline takes the progress from 0 to 1; the ticker measures its speed and a spring (stiffness 260, damping 19) chases it to bend the middle, so when the curtain stops the edge passes straight by a pixel and settles. Sizes are read again on resize.

The bar that rises and the hamburger that turns into an X

The bar waits in the middle of the frame: a value from 0 to 1 with back.inOut takes it to the top, and the distance is measured live every frame. The three lines of the icon are SVG paths: the outer ones move four units and turn 45 degrees around their svgOrigin, the short one shrinks to the right.

Entries out of their masks

Each entry sits in a mask with hidden overflow and rises from yPercent 118 with a 4 degree turn, staggered by 0.07 s; the rest (small lines, photo, caption, address) comes in on the same timeline, which played backwards at speed 1.3 is the closing.

Weight and shift

The shift belongs to GSAP on the inner element (elastic.out), the weight to CSS on the child: a variable inside the font-variation-settings of Fraunces goes from 330 to 560 with a transition that overshoots a little. The arrow beside it draws itself with stroke-dashoffset and pathLength 1.

The photo that drops in with grain

The five photos are a stack: the new one goes on top and goes from clip-path inset(0 0 100% 0) to inset(0) with expo.out, the line of light follows at the same speed, the image comes down from scale 1.14 and brightness 0.72; the old one steps back to 1.05 and darkens. A noise canvas in overlay is redrawn at 24 frames a second only during the change, then it stays still.

Values to change

NameFileDefaultWhat it changes
OPEN_TIMEscript.js1.1The seconds the curtain takes to cover the frame.
BENDscript.js1How much the curtain's edge bends with its speed (0 = straight).
STAGGERscript.js0.07The seconds between one entry and the next as they rise.
SHIFTscript.js10The pixels the entry under the pointer slides.
WEIGHTscript.js560The weight the entry takes, on the wght axis (the others stay at 330).
ZOOMscript.js1.14How zoomed in the new photo starts before it settles.
GRAINscript.js0.4How much film grain lies over the photo.
HOLDscript.js1.5The seconds the pilot stays on each entry.
LOOPscript.jstrueThe pilot opens and closes the menu again and again.

Try them in the Playground

When to use it

For the site of a restaurant, an osteria, a wine bar or a hotel with a restaurant: the menu, on phone and desktop, that already makes you want to book, with the real photos of the place under every entry.

On phones

The same animation with adapted sizes: below 600 pixels wide the photo becomes a band at the top that takes the room left, the entries go under it with their small line on the right, and a finger taps an entry to change the photo.

With reduced motion

Nothing moves: the panel fades in, the bar moves to the top while invisible, the entries and the photo fade in, the active entry only takes weight and colour, and the photos swap with a fade, with no zoom and no boiling grain.

Pitfalls

  • A clip-path in percent cannot bend the edge: it needs path() in pixels, so it is recalculated on every resize, even halfway through the curtain.
  • With the entries moved by GSAP and the weight changed by CSS on the same element, GSAP's inline transform wiped the class one: the shift sits on the inner element, the weight on the child.
  • The grain redrawn every frame kept the processor busy even with the menu still: now it boils only while a photo changes and then stays still.
  • Openverse often answered 504 to new searches: the photos were chosen from the searches that answered, ‘restaurant’ and ‘restaurant night’.

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 9.3 KB; the libraries: GSAP 28 KB.

Testing

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