Skip to content
animorio
IT
Back to the library

Tilted jar carousel

Hover, PhysicsGSAPAdvancedCompressed weight: Demo 10 KBGSAP 28 KBFreeDownload the zip

The pantry of Zagara Orchard, a made-up Sicilian citrus grove, as an endless row of jars tilted by ten degrees. Each jar grows from 0.55 at the edges to 1.35 in the middle, brightens and comes into focus as it reaches the centre, sways on a wave three jars long and sits on a spring of its own: it leans against the speed and lifts towards the pointer. The row moves with the wheel and with a drag that carries on with its momentum; behind it a soft shape and a ring of text turn with it. Over a jar a «Discover product» pill appears and the label goes once around the glass. 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>
<!--
  "Tilted jar carousel" 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 pantry · Zagara Orchard</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/fraunces@5.3.0/full-italic.css">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/mona-sans@5.3.0/wdth.css">
  <link rel="stylesheet" href="style.css">
</head>
<body>
  <!-- The pantry of a made-up Sicilian citrus grove as an endless row of jars tilted by ten degrees. Each jar grows from
       0.55 at the edges to 1.35 in the middle, brightens and sharpens as it reaches the centre, sways on a three-jar wave
       and sits on its own spring: it leans against the speed and towards the pointer. The row moves with the wheel and
       with a drag that keeps its momentum; behind it a soft shape and a ring of text turn with the row. Over a jar a
       pill says «Discover product» and the label goes once around the glass. -->
  <main class="palco" data-palco>
    <header class="testa">
      <p class="marchio">Zagara Orchard</p>
      <p class="sotto">Preserves from a Sicilian grove</p>
    </header>

    <div class="fondo" aria-hidden="true">
      <div class="forma" data-forma>
        <svg viewBox="0 0 1000 760" preserveAspectRatio="xMidYMid meet">
          <defs>
            <radialGradient id="lucefondo" cx="50%" cy="30%" r="70%">
              <stop offset="0" stop-color="#4a2925"/>
              <stop offset="1" stop-color="#2f1916"/>
            </radialGradient>
          </defs>
          <path d="M160 360 C 175 250 250 205 360 175 L 640 175 C 750 205 825 250 840 360 L 880 600 C 895 700 850 760 760 760 L 240 760 C 150 760 105 700 120 600 Z" fill="url(#lucefondo)"/>
          <path d="M360 176 L 640 176" stroke="#f8f1e7" stroke-opacity=".08" stroke-width="2" fill="none"/>
        </svg>
      </div>
      <div class="sigillo" data-sigillo>
        <svg viewBox="0 0 600 600">
          <defs><path id="anello" d="M300 300 m -250 0 a 250 250 0 1 1 500 0 a 250 250 0 1 1 -500 0"/></defs>
          <text><textPath href="#anello" textLength="1550" lengthAdjust="spacing">Preserves from a Sicilian grove · Preserves from a Sicilian grove · </textPath></text>
        </svg>
      </div>
    </div>

    <div class="fila" data-fila role="list" aria-label="Zagara Orchard preserves"></div>

    <p class="nome" aria-live="polite"><span class="nome__in" data-nome>Blood orange marmalade</span></p>
    <p class="invito"><svg viewBox="0 0 22 10" aria-hidden="true"><path d="M1 5h20M5 1 1 5l4 4M17 1l4 4-4 4" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/></svg><span>Drag or scroll</span></p>

    <div class="pillola" data-pillola aria-hidden="true"><span class="pillola__testo">Discover product</span></div>
  </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.

22 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 “Tilted jar carousel” 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 cream paper, at the top, «Zagara Orchard» and «Preserves from a Sicilian grove». In the middle a row of glass jars tilted by ten degrees drifts slowly by itself: blood orange marmalade, lemon curd, bergamot jam, mandarin and honey, pink grapefruit, caponata, each with a knurled metal lid, its own label and bits of peel inside. In the middle the jars are big and bright, at the sides small, darker and blurred, and they all sway by a few pixels as if on a wave. Behind, a soft brown shape and a ring of orange letters, «Preserves from a Sicilian grove», that turns with the row. Dragging or turning the wheel the row runs and carries on with its momentum, and the jars lean against the run and spring back. Near the pointer they lift and lean towards it; over a jar a «Discover product» pill appears, a glint runs across the lid and the label goes once around the glass. Pressed, the jar squashes slightly and bounces back. Below, the name of the jar in the middle rolls when it changes.

How it works

A row that never ends

Jar i sits at i·G along the row, minus the offset, wrapped in a loop N·G long: x = wrap(i·G − offset + N·G/2, N·G) − N·G/2. The row’s container is rotated by ten degrees, so they all run along the same diagonal.

Big in the middle, small at the edges

q goes from 0 at one edge of the screen to 1 at the other; the scale is 0.55 + 0.8·sin(q·π), the brightness 0.7 + 0.4·sin(q·π) and the blur grows with 1 − sin(q·π), up to 4 pixels (2 on a phone), plus a little with the speed.

Wheel, drag, momentum

The wheel adds deltaY·1.15 to the goal, the drag dx·1.5; on release the finger’s speed (at most 3.5 pixels per millisecond) still counts ·1.5·190. The offset chases the goal by 1 − e^(−2.3·dt) each frame, 11 while dragging.

One spring per jar

Each jar has two springs, lean and lift, with stiffness 70 give or take 15% (spread by the golden ratio, i·0.618) and damping 9: the goal is to lean against the speed, up to 6 degrees, and towards the pointer under a gaussian bell e^(−d²/(1.6·u)²).

The label on a cylinder

The glass is a cylinder of radius 82 seen from the front. The label, 196 units long around the glass, is drawn flat once and seen through eighteen thin vertical windows: each one shows the piece at its own angle φ = asin((x − 100)/82) and squeezes it by cos φ, so at the sides the label curves away. Turning means shifting it all by a share of the circumference: speed turns it a little, hovering, after 0.26 seconds, turns it once in 2 seconds with power4.inOut, and halfway round you see the back, just the marmalade.

The background turns with the row

The ring of text rotates by offset·−0.012 degrees, the shape and the ring drift with the pointer by −14 and −10 pixels; the name of the jar in the middle rolls up when it changes.

Values to change

NameFileDefaultWhat it changes
TILTscript.js10The tilt of the row, in degrees.
SCALE_EDGEscript.js0.55How big a jar is at the edges of the screen.
SCALE_MIDDLEscript.js1.35How big the jar in the middle is.
GAPscript.js1.22The distance between two jars, in jar widths.
BLURscript.js4The blur of the jars at the edges, in pixels (half on a phone).
WAVEscript.js18How many pixels the jars sway.
STIFFNESSscript.js70The stiffness of each jar’s spring.
DAMPINGscript.js9The damping of the spring: lower wobbles more.
LEANscript.js6How far a jar leans against the speed at most, in degrees.
EASEscript.js2.3How quickly the row reaches its goal: k = 1 − e^(−EASE·dt).
DRIFTscript.js26The speed of the row when nobody touches it, in pixels per second.
TURNscript.js2The seconds of the label’s turn on hover.
ACCENTscript.js#e8642cThe colour of the ring of text.

Try them in the Playground

When to use it

For the product showcase of a food shop, a winery, a perfumery or a cosmetics brand: a few products shot or drawn the same way, to browse with a finger, with the one in the middle in focus and its name below.

On phones

Jars are sized on the smaller of 24vw and 19vh, so the row fits the box even when it is short; the blur at the edges is halved. You drag with a finger and the row carries on with its momentum; there is no pill, since there is no pointer.

With reduced motion

No springs, no wave, no momentum and no drifting by itself: the row moves only with the wheel, the finger or the arrow keys, the jars stay upright and the label does not turn. The pill fades in.

Pitfalls

  • A blur and brightness filter on every jar every frame is costly: below 0.05 pixels the blur is dropped altogether, so the jars in the middle skip the blur filter.
  • The springs need a capped dt (50 milliseconds here): after a tab sat in the background a one-second dt would make them explode.
  • The clipPath ids inside the repeated SVGs must be different for each jar, or they all take the first one’s mask.
  • The pill follows the pointer with quickTo and is centred with a −50% translate on its child: GSAP moves the parent, CSS centres the child.
  • The label windows are nested svgs that clip with their own overflow: a CSS rule like «svg { overflow: visible }» reaching them makes each one draw the whole label, one over the other. And the document’s CSS rules do not reach inside a <use> clone: font and italic go in as attributes, and Fraunces’ true italic also needs full-italic.css.

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