Skip to content
animorio
IT
Back to the library

Saturday at the market

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

Scroll inside the preview

The post “Saturday at the market” on Small Kitchen Notes, a made-up cooking blog: as you scroll, five instant photos of the market (tomatoes, bread, tulips, cheese, a coin) fall one after the other onto a light wooden table, land with a small bounce while their shadow tightens, and a handwritten line with the time appears on the white border. Beside them the post moves on line by line; at the end the photos gather into a neat pile and the title lands on top. The five photos are real (CC0 and public domain).

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>
<!--
  "Saturday at the market" 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>Saturday at the market, Small Kitchen Notes</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="https://cdn.jsdelivr.net/npm/@fontsource-variable/caveat@5.3.0/index.css">
  <link rel="stylesheet" href="style.css">
</head>
<body>
  <!-- a post on Small Kitchen Notes, a made-up cooking blog. While you scroll the stage stays still: a light wooden
       table, where five instant photos of a Saturday market fall one after the other, land with a small bounce and get
       a handwritten line on their white border. Beside it the post moves on line by line, with the time of each stop.
       At the end the five tidy into a neat pile and the title lands on top -->
  <header class="barra">
    <p class="marchio">
      <svg class="marchio__segno" viewBox="0 0 24 24" aria-hidden="true"><path d="M5 11h14a7 7 0 0 1-14 0Z" /><path d="M9 7.5c0-1.2 1-1.6 1-2.8M13.5 7.5c0-1.2 1-1.6 1-2.8" /></svg>
      Small Kitchen Notes
    </p>
    <nav class="barra__voci" aria-label="Main">
      <a href="#">Recipes</a>
      <a href="#" aria-current="page">Notes</a>
      <a href="#">About</a>
    </nav>
  </header>

  <main>
    <section class="apertura">
      <p class="piccolo"><span class="piccolo__accento">Notes</span> Saturday, early</p>
      <h1 class="titolo">Saturday <em>at the market.</em></h1>
      <p class="piccolo piccolo--tenue">
        Five stops, five photos
        <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="racconto" data-racconto>
      <div class="palco">
        <div class="scena">
          <article class="post">
            <p class="ora" data-ora aria-hidden="true">
              <span class="ora__giorno">Saturday</span>
              <span class="ora__rullo">
                <span data-orario>8:10</span>
                <span data-orario>8:35</span>
                <span data-orario>9:05</span>
                <span data-orario>9:40</span>
                <span data-orario>10:15</span>
              </span>
            </p>
            <div class="post__finestra">
              <div class="post__testo" data-testo>
                <p data-paragrafo>I get there before the stalls are done unpacking. The tomatoes are still cold, and the man in the red shirt lets me fill my own bag.</p>
                <p data-paragrafo>Then the bread table, where the loaves lean on each other like books. I take the raisin one, still warm through the paper.</p>
                <p data-paragrafo>Pink tulips, wrapped in newspaper by the bucketful. I never plan to buy flowers and I always do.</p>
                <p data-paragrafo>At the cheese stand an alpine wheel is cut to order. A thin slice to taste, a thick wedge to take home.</p>
                <p data-paragrafo>Last coin, exact change. Back home the table fills up, and lunch more or less writes itself.</p>
              </div>
            </div>
          </article>

          <div class="tavolo" data-tavolo>
            <canvas class="tavolo__venatura" data-venatura aria-hidden="true"></canvas>
            <i class="tavolo__luce" aria-hidden="true"></i>

            <figure class="istantanea" data-istantanea data-x="-0.44" data-y="-0.2" data-r="-7">
              <i class="istantanea__lontana"></i><i class="istantanea__vicina"></i>
              <div class="carta">
                <div class="carta__foto"><img src="pomodori.webp" alt="Red tomatoes in wooden baskets, a hand filling a plastic bag" width="640" height="640" decoding="async"><i class="carta__lucido"></i></div>
                <figcaption class="carta__scritta"><span data-scritta>Tomatoes, 8:10</span></figcaption>
              </div>
            </figure>
            <figure class="istantanea" data-istantanea data-x="0.4" data-y="-0.24" data-r="5">
              <i class="istantanea__lontana"></i><i class="istantanea__vicina"></i>
              <div class="carta">
                <div class="carta__foto"><img src="pane.webp" alt="Loaves of bread wrapped in plastic, piled on a market table" width="640" height="640" decoding="async"><i class="carta__lucido"></i></div>
                <figcaption class="carta__scritta"><span data-scritta>Raisin loaf, 8:35</span></figcaption>
              </div>
            </figure>
            <figure class="istantanea" data-istantanea data-x="-0.32" data-y="0.22" data-r="4">
              <i class="istantanea__lontana"></i><i class="istantanea__vicina"></i>
              <div class="carta">
                <div class="carta__foto"><img src="tulipani.webp" alt="Bunches of pink tulips wrapped in paper" width="640" height="640" decoding="async"><i class="carta__lucido"></i></div>
                <figcaption class="carta__scritta"><span data-scritta>Tulips, 9:05</span></figcaption>
              </div>
            </figure>
            <figure class="istantanea" data-istantanea data-x="0.36" data-y="0.18" data-r="-6">
              <i class="istantanea__lontana"></i><i class="istantanea__vicina"></i>
              <div class="carta">
                <div class="carta__foto"><img src="formaggio.webp" alt="A wheel of alpine cheese with a wedge cut out and a price card" width="640" height="640" decoding="async"><i class="carta__lucido"></i></div>
                <figcaption class="carta__scritta"><span data-scritta>Alpine cheese, 9:40</span></figcaption>
              </div>
            </figure>
            <figure class="istantanea" data-istantanea data-x="0.02" data-y="-0.02" data-r="-2">
              <i class="istantanea__lontana"></i><i class="istantanea__vicina"></i>
              <div class="carta">
                <div class="carta__foto"><img src="moneta.webp" alt="Fingers holding out a two euro coin" width="640" height="640" decoding="async"><i class="carta__lucido"></i></div>
                <figcaption class="carta__scritta"><span data-scritta>Exact change, 10:15</span></figcaption>
              </div>
            </figure>

            <div class="biglietto" data-biglietto>
              <i class="istantanea__lontana"></i><i class="istantanea__vicina"></i>
              <div class="biglietto__carta">
                <i class="biglietto__nastro" aria-hidden="true"></i>
                <p class="biglietto__titolo">Saturday at the market.</p>
                <p class="biglietto__firma">small kitchen notes</p>
              </div>
            </div>
          </div>
        </div>
      </div>
    </section>

    <section class="apertura apertura--fine">
      <h2 class="titolo titolo--medio">Lunch, <em>more or less.</em></h2>
      <a class="pulsante" href="#"><span>Read the recipe</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.

47 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 “Saturday at the market” 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 Small Kitchen Notes, a made-up cooking blog, the heading “Saturday at the market.” invites you down. Then the stage stops: on the right a light wooden table, with its grain, two knots, the seams between the boards and the morning light from the left; on the left the post, with the time in tomato red (on a phone the table sits on top and the post under it). As you scroll, five instant photos with a wide white bottom border come in one at a time from above, turned and a little larger because they are still in the air: they slow as they near, squash by a breath as they touch the wood, straighten by half a degree and stop. The far soft shadow of the air tightens into a close sharp one, a sheen runs over the glossy print, and on the white border a line is handwritten from left to right (“Tomatoes, 8:10”, “Raisin loaf, 8:35”, “Tulips, 9:05”, “Alpine cheese, 9:40”, “Exact change, 10:15”); the photos already down shift a touch as the new one lands. Meanwhile the paragraph of that stop rises line by line, the one before fades to grey and the post scrolls to keep it in view, while the time rolls on to the next stop. At the end the five gather into a neat pile and a paper slip held by tape, with the title “Saturday at the market.”, lands on top. The photos are real: tomatoes in baskets with a hand filling a bag, loaves on the bread stall, bunches of pink tulips in paper, a wheel of alpine cheese with its price card, two fingers holding out a two euro coin. Everything follows the scroll, backwards too.

How it works

A still stage and some numbers

The section is 640vh tall and a 100lvh sticky stage stays still inside it. A GSAP timeline tied to the scroll with scrub SCRUB moves numbers, not elements: how far each photo has fallen, how much of its line is written, how far each paragraph has come in, the time, the final tidy-up. On every update a single function rewrites everything from those numbers. Lenis smooths the scroll and updates ScrollTrigger.

The flight and the landing

From a point above the table (DROP table heights higher, a little to one side) the photo comes down with power3.out, slowing, and turns TILT degrees more, which it loses as it arrives. Meanwhile it is LIFT larger and shrinks with power2.in: the distance to the table drops fastest at the end, like a photo let fall. On contact a damped spring squashes it by SQUASH in height and widens it a little, straightens it by half a degree and slides it by a pixel.

Two shadows and a sheen

Each photo has two shadows in two separate elements: a far soft one, pushed down and sideways as much as the photo is in the air, and a close sharp one that only turns on in the last moments. So the shadow tightens without animating box-shadow, only opacity and transform. On the photo an oblique gradient passes once as it lands, the gloss of the photo paper.

The handwritten line

The caption is in Caveat, in the blue-black of a pen, and is revealed by a gradient mask-image moving from left to right with a soft 8% edge: it looks like the pen writing. The position is a CSS variable --p written by the script, so the line writes itself backwards too.

The post line by line

Every word of the post sits in an overflow: hidden window. On load and on every resize the script measures the offsetTop of each word and works out its line: the words of one line rise together, one line after the other. The text column scrolls to the new paragraph, the one before turns grey, and above it the time rolls with back.out.

The pile and the title

At the end the scattered positions draw in towards the centre down to TIDY and the rotations halve: the pile becomes neat. Then the slip with the title falls with the same flight as the photos and lands on top, with its piece of tape.

Values to change

NameFileDefaultWhat it changes
DROPscript.js0.75How far above the table each photo starts, in table heights.
LIFTscript.js0.16How much larger the photo looks while it is in the air.
TILTscript.js16How many extra degrees it turns while it falls.
SQUASHscript.js0.022How much it squashes when it touches the table.
SPREADscript.js1How spread out the photos lie on the table.
TIDYscript.js0.22How loose the pile stays at the end (0 = one exact stack).
SCRUBscript.js0.8How many seconds the story takes to catch up with the scroll.

Try them in the Playground

When to use it

For a food or travel blog, the journal of a restaurant, a bakery or a café, the page of a market or a shop: when a post is made of small stops with one photo each. Swap the photos in the five img tags of the HTML (the webp files in the folder), the handwritten lines and the times in the HTML, the places on the table in data-x, data-y and data-r, the colours in :root.

On phones

The same animations at adapted sizes: the table sits on top and the post under it, in a short window showing the paragraph of the stop. The photos are sized from the table, on width and height, and recalculated on every resize.

With reduced motion

No movement: the photos are already in place with the line already written and fade in one after the other, like the paragraphs and the title slip.

Pitfalls

  • Animating box-shadow every frame on five photos is heavy: the shadows are two fixed elements per photo, and only opacity and transform move.
  • The lines of the post depend on the width: they are measured from the offsetTop of the words, not from the transforms (which do not change layout), and measured again on every resize.
  • The script writes the transform on the whole photo: the hover that lifts it goes on the child .carta, or GSAP's transform would wipe it.
  • The pixel sizes (the photo width, the starting point above the table) change when the window changes height, even mid-fall: they are recalculated on resize and on ScrollTrigger's refresh, and redrawn at once.

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, Caveat (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