
Blinds over images
Images, Scroll
Scroll inside the preview
The shop window of a made-up print shop, Nettlefield Editions: eight abstract prints drawn by us in SVG, on cotton mats, stand in a pale ash rack against a plaster wall under a raking light. As you scroll the prints flip past sideways like prints in a browser bin: the ones still to come lean in a tight stack on the right, the ones already seen on the left, and the one in the middle rises out of the stack, turns to face you, catches the light, sways with the speed of the flip and settles on a spring. Underneath, the name, the paper, the size and the price roll into place, and Add to cart sends a small copy to the cart.
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>
<!--
"Print rack 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>Nettlefield Editions, the print rack that flips as you 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/full.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<!-- the shop window of a made-up print shop, Nettlefield Editions. The prints stand in a pale ash rack under a raking
light; as you scroll they flip past sideways like prints in a browser bin, and the one in the middle rises out of
the stack, turns to face you, sways a little and settles. Under it its name, paper, size and price, and Add to cart -->
<section class="vetrina" data-vetrina>
<div class="palco" data-palco>
<div class="parete" aria-hidden="true">
<i class="parete__luce" data-luce></i>
<i class="parete__fascio"></i>
<i class="parete__grana"></i>
</div>
<header class="testa">
<p class="marchio">
<svg class="marchio__segno" viewBox="0 0 24 24" aria-hidden="true"><rect x="5" y="3.5" width="14" height="17" rx="1"/><path d="M8.5 15.5 12 8.5l3.5 7"/></svg>
<span>Nettlefield <em>Editions</em></span>
</p>
<nav class="testa__voci" aria-label="Shop">
<a href="#prints" class="testa__voce testa__voce--qui">Prints</a>
<a href="#frames" class="testa__voce">Frames</a>
<a href="#cart" class="carrello" data-carrello aria-label="Cart">
<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M5.5 8.5h13l-1.1 10.2a1.5 1.5 0 0 1-1.5 1.3H8.1a1.5 1.5 0 0 1-1.5-1.3z"/><path d="M9 8.5V7a3 3 0 0 1 6 0v1.5"/></svg>
<span class="carrello__parola">Cart</span><span class="carrello__conto"><span class="riga" data-riga="conto"><span>0</span></span></span>
</a>
</nav>
</header>
<div class="espositore" data-espositore>
<div class="mazzo" data-mazzo>
<!-- each print: a sheet with a cotton mat, the artwork drawn in SVG, a pencil line under it -->
<article class="stampa" data-stampa data-nome="Low Sun" data-carta="Giclée on cotton rag" data-misura="50 × 70 cm" data-prezzo="64">
<div class="stampa__corpo" data-corpo>
<svg class="stampa__arte" viewBox="0 0 100 140" aria-hidden="true">
<rect width="100" height="140" fill="#ecd9b8"/>
<rect y="86" width="100" height="54" fill="#d9a441"/>
<path d="M18 86a32 32 0 0 1 64 0z" fill="#c4532f"/>
<path d="M0 98h100M0 106h100M0 113h100M0 119h100M0 124h100" stroke="#ecd9b8" stroke-width=".9" opacity=".7"/>
<circle cx="50" cy="40" r="2" fill="#23304a"/>
</svg>
<i class="stampa__matita" aria-hidden="true"></i>
<i class="stampa__lucido" data-lucido aria-hidden="true"></i>
</div>
</article>
<article class="stampa" data-stampa data-nome="Tidewater" data-carta="Giclée on cotton rag" data-misura="50 × 70 cm" data-prezzo="58">
<div class="stampa__corpo" data-corpo>
<svg class="stampa__arte" viewBox="0 0 100 140" aria-hidden="true">
<rect width="100" height="140" fill="#dfe3e0"/>
<g fill="none" stroke="#23304a" stroke-width="2.2" stroke-linecap="round">
<path d="M10 46c10-8 20-8 30 0s20 8 30 0 14-6 20-2"/>
<path d="M10 58c10-8 20-8 30 0s20 8 30 0 14-6 20-2"/>
<path d="M10 70c10-8 20-8 30 0s20 8 30 0 14-6 20-2"/>
<path d="M10 82c10-8 20-8 30 0s20 8 30 0 14-6 20-2"/>
<path d="M10 94c10-8 20-8 30 0s20 8 30 0 14-6 20-2" stroke="#c4532f"/>
</g>
<rect x="10" y="112" width="26" height="3" fill="#23304a"/>
</svg>
<i class="stampa__matita" aria-hidden="true"></i>
<i class="stampa__lucido" data-lucido aria-hidden="true"></i>
</div>
</article>
<article class="stampa" data-stampa data-nome="Quarry" data-carta="Screen print, four colours" data-misura="40 × 56 cm" data-prezzo="72">
<div class="stampa__corpo" data-corpo>
<svg class="stampa__arte" viewBox="0 0 100 140" aria-hidden="true">
<rect width="100" height="140" fill="#efe7da"/>
<g fill="#8fa08a"><rect x="14" y="22" width="20" height="20"/><rect x="40" y="22" width="20" height="20"/><rect x="66" y="22" width="20" height="20"/><rect x="14" y="48" width="20" height="20"/><rect x="66" y="48" width="20" height="20"/><rect x="14" y="74" width="20" height="20"/><rect x="40" y="74" width="20" height="20"/><rect x="66" y="74" width="20" height="20"/></g>
<rect x="40" y="48" width="20" height="20" fill="#c4532f" transform="rotate(18 50 58)"/>
<path d="M14 112h72" stroke="#23304a" stroke-width="1"/>
</svg>
<i class="stampa__matita" aria-hidden="true"></i>
<i class="stampa__lucido" data-lucido aria-hidden="true"></i>
</div>
</article>
<article class="stampa" data-stampa data-nome="Night Field" data-carta="Giclée on matte baryta" data-misura="50 × 70 cm" data-prezzo="88">
<div class="stampa__corpo" data-corpo>
<svg class="stampa__arte" viewBox="0 0 100 140" aria-hidden="true">
<rect width="100" height="140" fill="#1f2a40"/>
<g stroke="#d9a441" stroke-width=".6" opacity=".55"><path d="M0 96h100M0 101h100M0 106h100M0 111h100M0 116h100M0 121h100M0 126h100M0 131h100"/></g>
<path d="M66 30a18 18 0 1 0 8 30a14 14 0 1 1-8-30z" fill="#ecd9b8"/>
<circle cx="24" cy="26" r=".9" fill="#ecd9b8"/><circle cx="36" cy="44" r=".7" fill="#ecd9b8"/><circle cx="18" cy="62" r=".6" fill="#ecd9b8"/>
</svg>
<i class="stampa__matita" aria-hidden="true"></i>
<i class="stampa__lucido" data-lucido aria-hidden="true"></i>
</div>
</article>
<article class="stampa" data-stampa data-nome="Signal" data-carta="Risograph, two colours" data-misura="30 × 42 cm" data-prezzo="42">
<div class="stampa__corpo" data-corpo>
<svg class="stampa__arte" viewBox="0 0 100 140" aria-hidden="true">
<rect width="100" height="140" fill="#f1e6dc"/>
<g fill="#23304a"><rect x="12" y="18" width="6" height="104"/><rect x="24" y="18" width="6" height="104"/><rect x="36" y="18" width="6" height="104"/><rect x="48" y="18" width="6" height="104"/><rect x="60" y="18" width="6" height="104"/></g>
<circle cx="70" cy="56" r="17" fill="#c4532f" style="mix-blend-mode:multiply"/>
</svg>
<i class="stampa__matita" aria-hidden="true"></i>
<i class="stampa__lucido" data-lucido aria-hidden="true"></i>
</div>
</article>
<article class="stampa" data-stampa data-nome="Orchard Hours" data-carta="Giclée on cotton rag" data-misura="50 × 70 cm" data-prezzo="64">
<div class="stampa__corpo" data-corpo>
<svg class="stampa__arte" viewBox="0 0 100 140" aria-hidden="true">
<rect width="100" height="140" fill="#e6e4d3"/>
<g fill="#8fa08a"><circle cx="26" cy="34" r="9"/><circle cx="50" cy="34" r="9"/><circle cx="74" cy="34" r="9"/><circle cx="26" cy="58" r="9"/><circle cx="74" cy="58" r="9"/><circle cx="26" cy="82" r="9"/><circle cx="50" cy="82" r="9"/><circle cx="74" cy="82" r="9"/></g>
<circle cx="50" cy="58" r="9" fill="#d9a441"/>
<path d="M26 104v14M50 104v14M74 104v14" stroke="#23304a" stroke-width="1"/>
</svg>
<i class="stampa__matita" aria-hidden="true"></i>
<i class="stampa__lucido" data-lucido aria-hidden="true"></i>
</div>
</article>
<article class="stampa" data-stampa data-nome="Clay Steps" data-carta="Screen print, three colours" data-misura="40 × 56 cm" data-prezzo="68">
<div class="stampa__corpo" data-corpo>
<svg class="stampa__arte" viewBox="0 0 100 140" aria-hidden="true">
<rect width="100" height="140" fill="#f0e2d2"/>
<path d="M0 140V110h22V90h22V70h22V50h22V30h12v110z" fill="#c4532f"/>
<path d="M0 140V122h22v-12h22V94h22V78h22V64h12v76z" fill="#a8432a"/>
<circle cx="28" cy="36" r="10" fill="none" stroke="#23304a" stroke-width="1.2"/>
</svg>
<i class="stampa__matita" aria-hidden="true"></i>
<i class="stampa__lucido" data-lucido aria-hidden="true"></i>
</div>
</article>
<article class="stampa" data-stampa data-nome="Arc Study" data-carta="Giclée on matte baryta" data-misura="50 × 70 cm" data-prezzo="96">
<div class="stampa__corpo" data-corpo>
<svg class="stampa__arte" viewBox="0 0 100 140" aria-hidden="true">
<rect width="100" height="140" fill="#eae3d6"/>
<g fill="none" stroke-width="5">
<path d="M14 112a36 36 0 0 1 72 0" stroke="#23304a"/>
<path d="M24 112a26 26 0 0 1 52 0" stroke="#d9a441"/>
<path d="M34 112a16 16 0 0 1 32 0" stroke="#c4532f"/>
</g>
<rect x="14" y="116" width="72" height="1" fill="#23304a"/>
</svg>
<i class="stampa__matita" aria-hidden="true"></i>
<i class="stampa__lucido" data-lucido aria-hidden="true"></i>
</div>
</article>
<i class="vassoio__fondo" aria-hidden="true"></i>
<i class="vassoio__bordo" aria-hidden="true"><i class="vassoio__targa">New editions</i></i>
</div>
</div>
<div class="scheda" data-scheda>
<div class="scheda__testi">
<h2 class="scheda__nome"><span class="riga" data-riga="nome"><span>Low Sun</span></span></h2>
<p class="scheda__dati"><span class="riga" data-riga="dati"><span>Giclée on cotton rag, 50 × 70 cm</span></span></p>
</div>
<button class="compra" type="button" data-compra>
<span class="compra__fondo" data-compra-fondo aria-hidden="true"></span>
<span class="compra__testo">
<span class="compra__scritta" data-compra-scritta><span>Add to cart</span><span class="compra__fatto" aria-hidden="true"><svg viewBox="0 0 16 16"><path d="M3.5 8.4 6.6 11.3 12.5 4.8" data-spunta/></svg>Added</span></span>
<span class="compra__prezzo"><span class="riga" data-riga="prezzo"><span>$64</span></span></span>
</span>
</button>
</div>
<p class="invito" data-invito>Scroll to browse the rack
<svg viewBox="0 0 12 16" aria-hidden="true"><path d="M6 1v13M1.5 9.5 6 14l4.5-4.5"/></svg>
</p>
</div>
</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>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.
31 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 “Print rack scroll” from Animorio and fit it into my siteThe stage is sticky and 100lvh tall inside a 560vh section. A single scrubbed timeline drives a number T from 0 to 7: for every print one unit on power1.inOut and then an empty rest of 0.7, so each print holds still in the middle for a stretch of scroll before the next. Lenis smooths the scroll.
The stack does not follow T directly: a spring (stiffness 120, damping 13, two steps per frame) carries the real position towards T. When the scroll stops the position overshoots the print a little and comes back: that is the sway. The speed of the spring also tilts the middle print by a few degrees, and it straightens on its own.
For each print d = index minus position. With n = smoothstep of |d| up to 1, the print moves sideways by 0.66 widths times n plus 0.15 widths for every place further back, turns 58 degrees on rotationY towards the middle, goes back on z and darkens; the middle one (1 − n) rises 20% of its height, grows 3.5% and stretches its shadow through a CSS variable --lift inside a box-shadow with calc.
The ash lip sits in the same stacking context as the prints, at z-index 95: the prints in the stack (100 minus ten times their distance) stay behind the lip, and only the middle one passes in front as it rises. The sheen is a 300% wide soft-light gradient moved with background-position by d and by the pointer.
When the print nearest the middle changes, name, details and price roll: the old line rises and fades in 0.42 s, the new one arrives from below on back.out, 0.05 s apart. Add to cart squashes on press and springs back on elastic.out, the label turns to Added with the tick drawn by strokeDashoffset, and a copy of the artwork flies to the cart with x on power2.inOut and y on back.in, so it rises before it drops.
| Name | File | Default | What it changes |
|---|---|---|---|
ANGLE | script.js | 58 | Degrees the prints in the stack turn away. |
SPREAD | script.js | 0.66 | How far the two neighbours stand from the middle, in print widths. |
STACK | script.js | 0.15 | The gap between the prints further back in the stack. |
LIFT | script.js | 0.2 | How high the middle print rises, in print heights. |
STIFF | script.js | 120 | Stiffness of the spring that follows the scroll. |
DAMP | script.js | 13 | Damping of the spring: lower swings more. |
SWAY | script.js | 3.2 | How much the middle print sways with the speed of the flip. |
PAUSE | script.js | 0.7 | How long each print rests in the middle, compared to one flip. |
SCRUB | script.js | 0.5 | Seconds the rack takes to catch up with the scroll. |
SMOOTH | script.js | 1.1 | Lenis smooth scroll, in seconds (0 turns it off). |
For the shop of a print publisher, an illustrator or a gallery that sells posters, for a window of wallpapers, postcards, record or book covers: when the products are flat and you choose by looking at them one at a time, as in the rack of a real shop.
The same animation with adapted sizes: the height of the prints is set on the height and width of the window, the stack shows at most four prints a side and the rack clips the ones past its edge, the card underneath stays on one line with smaller type. You flip with a finger.
No movement: the prints all stand in the same place, straight, and as you scroll the new one fades in over the old; name, details and price change with a fade, the button changes its label without sliding and the copy for the cart appears and disappears where it is. No Lenis.
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 10 KB; the libraries: GSAP + ScrollTrigger 45 KB, Lenis 5.3 KB.
Tested on 9 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.