Skip to content
animorio
IT
Back to the library

Scroll fruit gather

Scroll, SVGGSAP, CSS onlyMediumCompressed weight: Demo 7.2 KBGSAP + ScrollTrigger 45 KBLenis 5.3 KBFreeDownload the zip

Scroll inside the preview

The About page of Zagara Orchard, a made-up Sicilian citrus grove that makes preserves. Halfway down the page a stage stays pinned for a screen and a half of scrolling: four flat SVG fruits, a blood orange, a lemon, a mandarin with its leaves and a pomegranate, start piled up in the middle at different sizes and slide out to their places, turning a little; halfway the line «Picked at dawn, cooked by noon.» appears. Every fruit that lands settles by one pixel, its shadow comes to rest under it and its label writes itself letter by letter. Inspired by the Agrumea Farm site.

Rebuilt from scratch studying agrumeafarm.it by Studio K95: the idea is theirs; code, copy and images are ours. Read how it’s made

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>
<!--
  "Scroll fruit gather" 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>Zagara Orchard, the grove gathers</title>
  <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/mona-sans@5.3.0/index.css">
  <link rel="stylesheet" href="style.css">
</head>
<body>
  <!-- the about page of Zagara Orchard, a made-up citrus grove in Sicily that makes preserves. In the middle a stage
       stays pinned while you scroll: four flat fruits (a blood orange, a lemon, a mandarin with its leaves, a
       pomegranate) start piled up in the middle at different sizes and slide out to their places; halfway the line
       «Picked at dawn, cooked by noon.» appears between them, and every fruit that lands settles and writes its label -->
  <header class="testa">
    <p class="testa__marca">
      <svg viewBox="0 0 20 20" aria-hidden="true"><circle cx="10" cy="11.4" r="6.1" /><path d="M10 5.3c.2-1.6 1.2-2.7 2.9-3.1" /><path d="M10.6 4.6c1.9-1.5 4.3-1.3 5.5.1-1.7 1.1-3.9 1.2-5.5-.1Z" /></svg>
      Zagara Orchard
    </p>
    <p class="testa__voce">About</p>
  </header>

  <section class="apertura">
    <p class="occhiello" data-entra>Since 1987, near Lentini</p>
    <h1 class="apertura__titolo" data-entra>Preserves from a <em>Sicilian grove.</em></h1>
    <p class="apertura__frase" data-entra>Twelve hectares of citrus and one small kitchen at the end of the rows.</p>
    <p class="invito" data-entra aria-hidden="true"><span>Scroll</span><svg viewBox="0 0 12 16"><path d="M6 1v13M1.5 9.5 6 14l4.5-4.5" /></svg></p>
  </section>

  <section class="pausa" data-pausa aria-label="What we pick">
    <div class="palco" data-palco>
      <p class="palco__sopra">The grove, in season</p>

      <h2 class="frase" data-frase>Picked at dawn,<br><em>cooked by noon.</em></h2>

      <div class="frutto" data-frutto data-x="-0.33" data-y="-0.27" data-s="0.5" data-r="-14" data-a="-6">
        <div class="frutto__ombra" data-ombra></div>
        <div class="frutto__giro" data-giro><div class="frutto__corpo" data-corpo>
          <svg viewBox="0 0 100 100" aria-hidden="true">
            <g class="foglia" data-foglia data-perno="54 13"><path d="M54 13c6-9 18-11 27-5-6 9-18 11-27 5Z" fill="var(--foglia)" /><path d="M56 12.6c7-3.4 14-4.4 22-4.2" stroke="var(--carta)" stroke-width="1" fill="none" opacity=".45" /></g>
            <path d="M50 16c.4-3 1.6-5 3.6-6.4" stroke="var(--inchiostro)" stroke-width="2.2" stroke-linecap="round" fill="none" />
            <circle cx="50" cy="55" r="38" fill="var(--accento)" />
            <g fill="var(--scuro-accento)" opacity=".28"><circle cx="34" cy="48" r="1.3" /><circle cx="44" cy="70" r="1.2" /><circle cx="62" cy="40" r="1.1" /><circle cx="68" cy="64" r="1.4" /><circle cx="54" cy="80" r="1" /><circle cx="28" cy="64" r="1" /><circle cx="76" cy="52" r="1" /></g>
            <path d="M28 40c4-9 12-15 22-16" stroke="var(--carta)" stroke-width="3.4" stroke-linecap="round" fill="none" opacity=".42" />
            <circle cx="50" cy="18.4" r="2.4" fill="var(--scuro-accento)" />
          </svg>
        </div></div>
        <p class="frutto__nota" data-nota="Blood orange, Jan–Mar" aria-label="Blood orange, January to March"></p>
      </div>

      <div class="frutto" data-frutto data-x="0.33" data-y="-0.29" data-s="0.28" data-r="22" data-a="8">
        <div class="frutto__ombra" data-ombra></div>
        <div class="frutto__giro" data-giro><div class="frutto__corpo" data-corpo>
          <svg viewBox="0 0 100 100" aria-hidden="true">
            <g class="foglia" data-foglia data-perno="70 26"><path d="M70 26c2-10 11-17 22-16-1 11-11 18-22 16Z" fill="var(--foglia)" /><path d="M71 25c5-5 11-9 19-13" stroke="var(--carta)" stroke-width="1" fill="none" opacity=".45" /></g>
            <path d="M8 57C14 52 16 46 22 41 30 33 40 30 50 30s20 3 28 11c6 5 8 11 14 16-6 5-8 11-14 16-8 8-18 11-28 11S30 81 22 73C16 68 14 62 8 57Z" transform="rotate(-24 50 57)" fill="var(--limone)" stroke="var(--inchiostro)" stroke-width="1.6" stroke-linejoin="round" />
            <g fill="var(--inchiostro)" opacity=".22"><circle cx="38" cy="56" r="1" /><circle cx="52" cy="70" r="1.1" /><circle cx="60" cy="50" r=".9" /><circle cx="44" cy="44" r=".9" /><circle cx="66" cy="62" r="1" /></g>
            <path d="M32 46c5-7 12-10 20-11" stroke="var(--accento)" stroke-width="2.4" stroke-linecap="round" fill="none" opacity=".55" />
          </svg>
        </div></div>
        <p class="frutto__nota" data-nota="Femminello lemon, all year" aria-label="Femminello lemon, all year"></p>
      </div>

      <div class="frutto" data-frutto data-x="-0.34" data-y="0.25" data-s="0.5" data-r="18" data-a="5">
        <div class="frutto__ombra" data-ombra></div>
        <div class="frutto__giro" data-giro><div class="frutto__corpo" data-corpo>
          <svg viewBox="0 0 100 100" aria-hidden="true">
            <g class="foglia" data-foglia data-perno="50 24"><path d="M50 24c-6-9-18-12-28-7 6 9 18 12 28 7Z" fill="var(--foglia)" /><path d="M48 23c-7-3-14-5-23-5" stroke="var(--carta)" stroke-width="1" fill="none" opacity=".45" /></g>
            <g class="foglia foglia--due" data-foglia data-perno="52 23"><path d="M52 23c5-10 17-14 28-10-5 10-17 14-28 10Z" fill="var(--foglia)" opacity=".86" /></g>
            <ellipse cx="50" cy="60" rx="40" ry="33" fill="var(--accento-chiaro)" />
            <path d="M50 27.6c-2.4 1.4-4.6 1.4-7 .2" stroke="var(--scuro-accento)" stroke-width="1.6" stroke-linecap="round" fill="none" opacity=".5" />
            <g stroke="var(--scuro-accento)" stroke-width="1.1" fill="none" opacity=".16"><path d="M30 38c-6 12-6 31 2 44" /><path d="M70 38c6 12 6 31-2 44" /></g>
            <path d="M24 50c4-8 11-13 20-15" stroke="var(--carta)" stroke-width="3.2" stroke-linecap="round" fill="none" opacity=".4" />
          </svg>
        </div></div>
        <p class="frutto__nota" data-nota="Mandarin, Nov–Feb" aria-label="Mandarin, November to February"></p>
      </div>

      <div class="frutto" data-frutto data-x="0.34" data-y="0.26" data-s="1.67" data-r="-10" data-a="-7">
        <div class="frutto__ombra" data-ombra></div>
        <div class="frutto__giro" data-giro><div class="frutto__corpo" data-corpo>
          <svg viewBox="0 0 100 100" aria-hidden="true">
            <path d="M41 21 43 10l4.4 6.6L50 8l2.6 8.6L57 10l2 11Z" fill="var(--melograno)" stroke="var(--melograno)" stroke-width="2" stroke-linejoin="round" />
            <circle cx="50" cy="57" r="37" fill="var(--melograno)" />
            <path d="M43 21.6h14" stroke="var(--carta)" stroke-width="1" opacity=".28" />
            <g fill="var(--carta)" opacity=".16"><circle cx="64" cy="70" r="1.2" /><circle cx="40" cy="76" r="1" /><circle cx="70" cy="50" r="1" /></g>
            <path d="M27 44c4-9 12-15 22-17" stroke="var(--carta)" stroke-width="3.4" stroke-linecap="round" fill="none" opacity=".3" />
          </svg>
        </div></div>
        <p class="frutto__nota" data-nota="Pomegranate, Sep–Nov" aria-label="Pomegranate, September to November"></p>
      </div>
    </div>
  </section>

  <section class="chiusura">
    <p class="chiusura__frase" data-entra>Four fruits, one kitchen, and jars that leave the grove the same afternoon.</p>
    <p class="chiusura__nota" data-entra>Marmalade, curd and jam, in small batches.</p>
  </section>

  <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.

29 values to change

Works with Claude, Claude Code, ChatGPT, Cursor, VS Code, Windsurf, Codex, Gemini CLI

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 “Scroll fruit gather” 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 cream page, at the top, «Since 1987, near Lentini» and the title «Preserves from a Sicilian grove.», with the word grove in orange italics. Scrolling, the stage stops: at the top «The grove, in season» and in the middle a pile of fruits one over the other, the big pomegranate at the back, the small lemon in front. As you scroll the four fruits split up and head for the corners, each turning some twenty degrees and coming back to its true size, slightly staggered; halfway, between them, the line «Picked at dawn, cooked by noon.» rises. When a fruit lands it dips one pixel and comes back with a small rock, the soft shadow spreads under it and the label writes itself with an orange cursor: «Blood orange, Jan–Mar», «Femminello lemon, all year», «Mandarin, Nov–Feb», «Pomegranate, Sep–Nov». The leaves of the orange, the lemon and the mandarin sway on their own. Scrolling back the labels erase and the fruits gather into the pile again.

How it works

The pinned stage

A ScrollTrigger with pin: true holds the stage for PIN_LENGTH percent of the screen height (150, as on the site) and scrubs a timeline of length 1. Lenis smooths the scroll, with a 1.2 second duration and the site’s exponential curve.

From the pile to their places

Each fruit starts at x 0, y 0 at its own scale (0.5, 0.28, 0.5 and 1.67) and reaches its place at scale 1 in 0.72 of the timeline, 0.045 after the fruit before. The place is a share of the stage width and height, never more than three quarters of the short side sideways: with invalidateOnRefresh it is worked out again on every resize.

Who is in front in the pile

The fruit that starts biggest sits at the back: the z-index is given once, in order of starting scale, so the small lemon does not vanish behind the pomegranate.

The landing

Every frame reads the timeline time (not the raw scroll): when it passes the end of a fruit’s journey, its body, a child of the element moved by the scroll, dips SETTLE pixels in 0.14 seconds and comes back with elastic.out, turning by a degree and a half. Scroll back past it and the label erases at twice the speed.

The label that writes itself

A tween on a number from 0 to the length of the text, TYPE_MS milliseconds per letter, puts back the piece of text each time with a one pixel orange cursor, which goes away 0.6 seconds after the end.

Shadows and leaves

The shadow, a blurred radial gradient, comes on in the second half of the journey and widens from 0.6 to 1. The leaves swing back and forth by SWAY degrees around the point of the stalk, with svgOrigin, each at its own pace.

Values to change

NameFileDefaultWhat it changes
PIN_LENGTHscript.js150How long the stage stays pinned, as a percentage of the screen height.
SCRUBscript.js0.6How many seconds the fruits take to catch up with the scroll.
PHRASE_ATscript.js0.5Where in the pinned stretch the line appears (0 to 1).
SPINscript.js24How many extra degrees each fruit turns on its way out.
SETTLEscript.js1How many pixels a fruit dips when it lands.
SWAYscript.js7How many degrees the leaves sway.
TYPE_MSscript.js34Milliseconds per letter of the labels.
DURATIONscript.js1.2The Lenis smooth scroll duration, in seconds.

Try them in the Playground

When to use it

For the About page of a farm, a deli or a restaurant, to tell what is grown or what goes into the kitchen; more broadly for a pause between two sections, with a few objects opening up around one line.

On phones

The stage is as tall as the screen and everything is measured on the short side: the fruits are a fifth of it (between 54 and 190 pixels), their places are shares of the width and height, the line sits between 22 pixels and the smaller of 6.2vw and 7.4vh. Scrolling with a finger does everything.

With reduced motion

No pinned stage and no smooth scroll: the fruits are already in their places with their labels written and their shadows, and the line fades in when it reaches the screen. The leaves stay still.

Pitfalls

  • GSAP writes its own transform on the element and wipes the CSS one: the line is centred with inset: 0, margin: auto and height: max-content, not translate(-50%, -50%), and each fruit has a child for the landing, separate from the element moved by the scroll.
  • The landings are read from the timeline time, not from the scroll: with scrub the fruits arrive after the scroll, and a label written before its fruit is still would be seen sliding away.
  • svgOrigin works for elements inside an svg (here the leaf groups), in viewBox coordinates; on the whole svg it would move the pivot.
  • Never once: true on the pinned timeline: opening the page already scrolled down would freeze the ScrollTriggers.

Libraries

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

Compressed with gzip, the three demo files weigh 7.2 KB; the libraries: GSAP + ScrollTrigger 45 KB, Lenis 5.3 KB.

Testing

Tested on 1 December 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