
The gallery that opens
Galleries, Transitions, Images, Physics
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.
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>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
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 siteThe 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 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.
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.
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 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.
| Name | File | Default | What it changes |
|---|---|---|---|
OPEN_TIME | script.js | 1.1 | The seconds the curtain takes to cover the frame. |
BEND | script.js | 1 | How much the curtain's edge bends with its speed (0 = straight). |
STAGGER | script.js | 0.07 | The seconds between one entry and the next as they rise. |
SHIFT | script.js | 10 | The pixels the entry under the pointer slides. |
WEIGHT | script.js | 560 | The weight the entry takes, on the wght axis (the others stay at 330). |
ZOOM | script.js | 1.14 | How zoomed in the new photo starts before it settles. |
GRAIN | script.js | 0.4 | How much film grain lies over the photo. |
HOLD | script.js | 1.5 | The seconds the pilot stays on each entry. |
LOOP | script.js | true | The pilot opens and closes the menu again and again. |
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.
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.
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.
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.
Tested on 5 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.