Skip to content
animorio
IT
Back to the library

Wine list scroll

Scroll, ImagesGSAP, CSS onlyAdvancedCompressed weight: Demo 11 KBGSAP + ScrollTrigger 45 KBLenis 5.3 KBFreeDownload the zip

Scroll inside the preview

The wine list of Osteria Brina, a made-up restaurant, on a warm night background: as you scroll the stage stays still with five wines on the left and a large photo on the right. The wine being poured lights up and opens its tasting note, a champagne mark follows it on a spring, and the photo changes with a curtain rising with a hairline of light on its edge and a slight zoom, under film grain; a glass label on the photo rolls to the vintage, serving temperature and region. The five photos are real (CC0).

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>
<!--
  "Wine list scroll" 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>Wine list, with the photo changing on scroll</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="https://cdn.jsdelivr.net/npm/@fontsource-variable/fraunces@5.3.0/opsz-italic.css">
  <link rel="stylesheet" href="style.css">
</head>
<body>
  <!-- the wine list of Osteria Brina, a made-up restaurant. Scrolling down, the stage stays still: on the left five
       wines, on the right a large photo in a frame. The wine being told lights up and a thin mark follows it on a
       spring, its tasting note opens, and the photo changes with a curtain rising over it, a little zoom and grain,
       while a small glass label on the photo rolls to the vintage and the serving temperature -->
  <header class="barra">
    <p class="marchio">
      <svg class="marchio__segno" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 3c3.2 3.4 4.8 6.4 4.8 9a4.8 4.8 0 0 1-9.6 0c0-2.6 1.6-5.6 4.8-9Z" /><path d="M12 16.8V21" /></svg>
      Osteria Brina
    </p>
    <nav class="barra__voci" aria-label="Main">
      <a href="#">Menu</a>
      <a href="#" aria-current="page">Wine</a>
      <a href="#">Book</a>
    </nav>
  </header>

  <main>
    <section class="apertura">
      <p class="piccolo">Osteria Brina, the wine list</p>
      <h1 class="titolo">Five bottles <em>for the autumn menu.</em></h1>
      <p class="piccolo piccolo--tenue">
        Scroll to pour them
        <svg class="giu" viewBox="0 0 12 16" aria-hidden="true"><path d="M6 1v13M1.5 9.5 6 14l4.5-4.5" /></svg>
      </p>
    </section>

    <section class="carta" data-carta>
      <div class="palco">
        <div class="scena">
          <div class="lista">
            <div class="lista__testa">
              <p class="etichetta">Wine list <span>Autumn 2026</span></p>
              <p class="lista__colonne" aria-hidden="true"><span>Glass</span><span>Bottle</span></p>
            </div>
            <ul class="vini" data-vini>
              <li class="vino" data-vino data-annata="2020" data-gradi="6&#8211;8" data-zona="Lombardy" data-tinta="#d8b46a">
                <button class="vino__tasto" type="button">
                  <span class="vino__riga">
                    <span class="vino__nome">Franciacorta Brut</span>
                    <span class="vino__prezzi"><span>&#8364;14</span><span>&#8364;68</span></span>
                  </span>
                  <span class="vino__dove">Cascina Rovere<i></i>Lombardy<i></i>2020</span>
                  <span class="vino__piu"><span class="vino__note">Fine, slow bubbles, bread crust and green apple, then a dry, chalky finish.</span></span>
                </button>
              </li>
              <li class="vino" data-vino data-annata="2023" data-gradi="10&#8211;12" data-zona="Marche" data-tinta="#e3c98b">
                <button class="vino__tasto" type="button">
                  <span class="vino__riga">
                    <span class="vino__nome">Verdicchio Classico</span>
                    <span class="vino__prezzi"><span>&#8364;9</span><span>&#8364;42</span></span>
                  </span>
                  <span class="vino__dove">Fattoria Lunetta<i></i>Marche<i></i>2023</span>
                  <span class="vino__piu"><span class="vino__note">Almond, white peach and wild fennel. Round, a little salty, long.</span></span>
                </button>
              </li>
              <li class="vino" data-vino data-annata="2021" data-gradi="15&#8211;16" data-zona="Sicily" data-tinta="#c4473a">
                <button class="vino__tasto" type="button">
                  <span class="vino__riga">
                    <span class="vino__nome">Etna Rosso</span>
                    <span class="vino__prezzi"><span>&#8364;12</span><span>&#8364;56</span></span>
                  </span>
                  <span class="vino__dove">Tenuta Sciara<i></i>Sicily<i></i>2021</span>
                  <span class="vino__piu"><span class="vino__note">Wild cherry, volcanic smoke and orange peel. Light on its feet.</span></span>
                </button>
              </li>
              <li class="vino" data-vino data-annata="2021" data-gradi="16&#8211;17" data-zona="Piedmont" data-tinta="#d0763c">
                <button class="vino__tasto" type="button">
                  <span class="vino__riga">
                    <span class="vino__nome">Langhe Nebbiolo</span>
                    <span class="vino__prezzi"><span>&#8364;13</span><span>&#8364;62</span></span>
                  </span>
                  <span class="vino__dove">Cantina Valbruma<i></i>Piedmont<i></i>2021</span>
                  <span class="vino__piu"><span class="vino__note">Rose petals, tar and sour cherry. Firm tannins that soften with air.</span></span>
                </button>
              </li>
              <li class="vino" data-vino data-annata="2016" data-gradi="17&#8211;18" data-zona="Tuscany" data-tinta="#a8452c">
                <button class="vino__tasto" type="button">
                  <span class="vino__riga">
                    <span class="vino__nome">Brunello Riserva</span>
                    <span class="vino__prezzi"><span>&#8364;24</span><span>&#8364;140</span></span>
                  </span>
                  <span class="vino__dove">Podere Casalvento<i></i>Tuscany<i></i>2016</span>
                  <span class="vino__piu"><span class="vino__note">Dried plum, leather, tobacco and violet. Deep and slow, built to wait.</span></span>
                </button>
              </li>
            </ul>
            <i class="segno" data-segno aria-hidden="true"><i class="segno__luce"></i></i>
            <i class="piatto" data-piatto aria-hidden="true"></i>
          </div>

          <figure class="foto">
            <i class="foto__alone" data-alone aria-hidden="true"></i>
            <i class="foto__ombra" aria-hidden="true"></i>
            <div class="foto__cornice" data-cornice>
              <div class="scatto" data-scatto><img src="bottiglie.webp" alt="Sparkling bottles with gold foil, resting in a wooden rack" width="1024" height="683" decoding="async" style="object-position: 46% 50%"></div>
              <div class="scatto" data-scatto><img src="calice.webp" alt="A glass of white wine on a wooden table, in warm light" width="960" height="640" decoding="async" style="object-position: 52% 50%"></div>
              <div class="scatto" data-scatto><img src="tramonto.webp" alt="Red wine poured into two glasses at sunset" width="960" height="1440" decoding="async" style="object-position: 50% 62%"></div>
              <div class="scatto" data-scatto><img src="vigna.webp" alt="A row of autumn vines fading into the fog" width="683" height="1024" decoding="async" style="object-position: 50% 55%"></div>
              <div class="scatto" data-scatto><img src="cantina.webp" alt="Oak barrels in a vaulted cellar, under warm lamps" width="1024" height="683" decoding="async" style="object-position: 62% 50%"></div>
              <i class="tenda" data-tenda aria-hidden="true"></i>
              <i class="grana" data-grana aria-hidden="true"></i>
              <i class="foto__riflesso" aria-hidden="true"></i>

              <div class="vetro" aria-hidden="true">
                <span class="vetro__campo">
                  <span class="vetro__nome">Vintage</span>
                  <span class="vetro__valore" data-valore="annata"><span>2020</span></span>
                </span>
                <i class="vetro__riga"></i>
                <span class="vetro__campo">
                  <span class="vetro__nome">Serve at</span>
                  <span class="vetro__valore" data-valore="gradi"><span>6&#8211;8 &#176;C</span></span>
                </span>
                <i class="vetro__riga vetro__riga--largo"></i>
                <span class="vetro__campo vetro__campo--largo">
                  <span class="vetro__nome">Region</span>
                  <span class="vetro__valore" data-valore="zona"><span>Lombardy</span></span>
                </span>
              </div>
            </div>
          </figure>
        </div>
      </div>
    </section>

    <section class="apertura apertura--fine">
      <h2 class="titolo titolo--medio">Not sure? <em>Ask Marta, our sommelier.</em></h2>
      <a class="pulsante" href="#"><span>Book a table</span><svg viewBox="0 0 16 16" aria-hidden="true"><path d="M3 8h10M9 4l4 4-4 4" /></svg></a>
    </section>
  </main>

  <script src="https://cdn.jsdelivr.net/npm/gsap@3.15.0/dist/gsap.min.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/gsap@3.15.0/dist/ScrollTrigger.min.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/lenis@1.3.26/dist/lenis.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.

69 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 “Wine list scroll” 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

At the top of the page of Osteria Brina, a made-up restaurant, the heading “Five bottles for the autumn menu.” invites you down. Then the stage stops on a warm night background: on the left the list of five wines (the name in a serif, the cellar, region and vintage, and on the right the price by the glass and by the bottle), on the right a large photo in a frame with a thin edge that catches the light and a soft shadow (on a phone the photo sits on top and the list under it). The wine being poured lights up, gains weight and its glass price turns champagne, while the others stay at half light; under its name the tasting note opens in italics. A thin champagne mark follows it on a spring, stretches a little as it runs, settles with a small bounce and a glint runs down it; behind the row a faint plate of light comes along. Meanwhile the photo changes: the new one rises from the bottom like a curtain, with a hairline of warm light on its edge, and settles from a slight zoom, while the one underneath steps back and darkens; film grain moves softly over them all. A frosted glass label on the photo rolls to the vintage, serving temperature and region, and the glow behind the frame takes the colour of the wine. The wines: Franciacorta Brut with gold-necked bottles in the rack, Verdicchio Classico with a glass of white on a wooden table, Etna Rosso with wine poured into two glasses at sunset, Langhe Nebbiolo with an autumn row of vines fading into fog, Brunello Riserva with oak barrels in a vaulted cellar. Touching a wine scrolls the page to it. At the end “Not sure? Ask Marta, our sommelier.” and the “Book a table” button. Everything follows the scroll, backwards too.

How it works

A still stage and Lenis

The section is 600vh tall and a 100lvh sticky stage stays still inside it. Lenis smooths the scroll and hands every step to ScrollTrigger; the GSAP ticker drives Lenis. A timeline tied to the scroll with scrub SCRUB moves numbers, not elements: how far each photo's curtain has risen, with a pause on every wine.

The rising curtain

Each photo has a clip-path inset that goes from 100% at the top to 0 with expo.inOut: the photo is uncovered from the bottom. A hairline of light runs on the curtain's edge (a 1px line with a glow and a light spilling under it), fading in and out over the run. The new photo settles from ZOOM to 1 and from a little lower; the one underneath is pushed to PUSH and dimmed by DIM with a filter.

The row that lights up

The wine being poured is the last one whose curtain is past half way. It takes the attivo class: full opacity, a heavier font weight in transition, a champagne glass price, and the note opening with grid-template-rows from 0fr to 1fr. Touching a wine, lenis.scrollTo takes you to the point of the timeline where that wine holds.

The mark on a spring

On every frame the mark reads where the active row is (even while the note opens and the row grows) and reaches it with a real spring: stiffness SPRING, damping BOUNCE, in small steps. It stretches with its speed and a glint runs down it when it arrives; the plate of light behind follows the same spring.

Real photos, grain and the label

The photos are light webp files with object-fit cover and an object-position each. The grain is a noise canvas painted once, in overlay mode at strength GRAIN, moved twelve times a second like film. The glass label (backdrop-filter) has three windows one line tall: the old value leaves, the new one comes in with back.out, in the direction of the scroll; the glow behind the frame changes colour by tweening a CSS variable.

Values to change

NameFileDefaultWhat it changes
ZOOMscript.js1.14How zoomed in a photo is when its curtain starts to rise.
PUSHscript.js1.06How far the photo underneath is pushed back while it is covered.
DIMscript.js0.42How much the photo underneath darkens (0 = not at all).
SPRINGscript.js170How stiff the spring of the mark is.
BOUNCEscript.js0.62How damped the mark is (lower = more overshoot).
GRAINscript.js0.16How much film grain lies on the photo.
SCRUBscript.js0.6How many seconds the stage takes to catch up with the scroll.

Try them in the Playground

When to use it

For the wine list or menu of a restaurant, a wine shop, a wine bar or a winery with tastings; but also for any short list where every item has its own photo: the rooms of a hotel, the dishes of the day, the products of a collection. Swap the photos in the five img tags of the HTML (the webp files in the folder), vintage, temperature and region in the data attributes of each wine, the colours in :root.

On phones

The same animations at adapted sizes: the photo sits on top, as wide as the screen and at most a third of its height, the list under it with smaller names and without the column heads; the glass label shows the vintage and temperature.

With reduced motion

No movement: no Lenis, the photos cross-fade from one to the next without curtain or zoom, the mark jumps to the row without a spring, the label values change with a fade.

Pitfalls

  • The opening note makes the row grow while the mark chases it: the mark reads the position on every frame, not once, so the spring also chases the changing height.
  • The zoom goes on the img, not on the clipped shot, or the curtain's edge would grow too.
  • The brightness filter is costly: it is only put on the photo being covered, removed when the curtain is still, and fully covered photos stay hidden.
  • With Lenis, ScrollTrigger must be updated on its every scroll (lenis.on scroll) and Lenis driven by the GSAP ticker with lagSmoothing(0), or the curtain lags in jolts.

Libraries

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

Compressed with gzip, the three demo files weigh 11 KB; the libraries: GSAP + ScrollTrigger 45 KB, Lenis 5.3 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 animations