
Film slider
Transitions, Images, Hover
The window of a made-up print shop, Kestle Print Room: four prints of ours hung to scale on a warm gallery wall, each with its frame, its mat, a soft shadow and a little light from above. On hover the print leaves the wall leaning towards the pointer and a reflection slides across the glass; pick a print and choose the size (A3, A2, 50×70) and the frame (oak, black, none): the print really changes size and frame on the wall, the others move to make room, the price rolls and Add to cart sends a copy into the bag.
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>
<!--
"Poster wall picker" 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 poster and print wall with the size and the frame to choose</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>
<main class="shop" data-shop>
<!-- the print shop of a made-up studio, Kestle Print Room: four prints hang on a warm gallery wall, each in its frame
with a mat and a soft shadow. Hover one and it leans out of the wall towards the pointer, with a reflection on the
glass; pick one and choose the size (A3, A2, 50 x 70) and the frame (oak, black, none): the print really changes
size and frame on the wall, the others make room, the price rolls and Add to cart sends a small copy to the bag -->
<header class="top">
<span class="brand">
<svg class="brand__mark" viewBox="0 0 20 20" aria-hidden="true">
<rect x="3.5" y="2.5" width="13" height="15" rx="1" />
<rect x="6.5" y="5.5" width="7" height="9" />
</svg>
<span class="brand__name">Kestle</span>
<span class="brand__sub">Print Room</span>
</span>
<span class="bag" data-bag aria-live="polite">
<svg class="bag__icon" viewBox="0 0 20 20" aria-hidden="true">
<path d="M4.5 7h11l-1 10h-9z" />
<path d="M7.5 7V5.8a2.5 2.5 0 0 1 5 0V7" />
</svg>
<span class="bag__label">Bag</span>
<span class="bag__count" data-count>0</span>
</span>
</header>
<section class="wall" data-wall aria-label="Prints on the wall">
<span class="wall__light" aria-hidden="true"></span>
<span class="wall__rail" aria-hidden="true"></span>
<!-- each print: the figure is moved and sized by GSAP, the tilt wrapper leans, the frame and the mat are CSS vars -->
<figure class="piece" data-piece data-title="Sun Study" data-artist="Inès Marlow" tabindex="0" role="button" aria-pressed="false">
<span class="piece__glow" aria-hidden="true"></span>
<span class="piece__shadow" aria-hidden="true"></span>
<div class="piece__tilt">
<div class="frame">
<div class="mat">
<svg class="art" viewBox="0 0 100 140" preserveAspectRatio="xMidYMid slice" aria-label="Sun Study, an ochre print with a low sun over stripes">
<rect width="100" height="140" fill="#e9b04f" />
<rect y="86" width="100" height="54" fill="#d9773a" />
<rect y="98" width="100" height="5" fill="#f2d9a6" />
<rect y="110" width="100" height="5" fill="#f2d9a6" opacity=".8" />
<rect y="122" width="100" height="5" fill="#f2d9a6" opacity=".6" />
<circle cx="50" cy="86" r="27" fill="#b8402a" />
<rect y="86" width="100" height="1.2" fill="#2b1d16" />
<text x="9" y="20" class="art__type" fill="#2b1d16">Sun</text>
<text x="9" y="31" class="art__type" fill="#2b1d16">Study</text>
<text x="9" y="133" class="art__small" fill="#2b1d16">Kestle Print Room</text>
</svg>
</div>
</div>
<span class="glass" aria-hidden="true"></span>
</div>
</figure>
<figure class="piece" data-piece data-title="Blue Hour" data-artist="Tomas Reyn" tabindex="0" role="button" aria-pressed="false">
<span class="piece__glow" aria-hidden="true"></span>
<span class="piece__shadow" aria-hidden="true"></span>
<div class="piece__tilt">
<div class="frame">
<div class="mat">
<svg class="art" viewBox="0 0 100 140" preserveAspectRatio="xMidYMid slice" aria-label="Blue Hour, a deep blue print with stacked arches">
<rect width="100" height="140" fill="#1f2f5c" />
<path d="M18 140V80a32 32 0 0 1 64 0v60z" fill="#2f4c8f" />
<path d="M28 140V86a22 22 0 0 1 44 0v54z" fill="#5f86c6" />
<path d="M38 140V92a12 12 0 0 1 24 0v48z" fill="#c9d8ef" />
<circle cx="76" cy="26" r="7" fill="#f3e6c4" />
<text x="9" y="20" class="art__type" fill="#f3e6c4">Blue</text>
<text x="9" y="31" class="art__type" fill="#f3e6c4">Hour</text>
</svg>
</div>
</div>
<span class="glass" aria-hidden="true"></span>
</div>
</figure>
<figure class="piece" data-piece data-title="Field Lines" data-artist="Ada Kolby" tabindex="0" role="button" aria-pressed="false">
<span class="piece__glow" aria-hidden="true"></span>
<span class="piece__shadow" aria-hidden="true"></span>
<div class="piece__tilt">
<div class="frame">
<div class="mat">
<svg class="art" viewBox="0 0 100 140" preserveAspectRatio="xMidYMid slice" aria-label="Field Lines, a cream print with green and terracotta bands">
<rect width="100" height="140" fill="#efe6d2" />
<path d="M-10 92L110 52v14L-10 106z" fill="#5f7a4e" />
<path d="M-10 112L110 72v10L-10 122z" fill="#c9673f" />
<path d="M-10 128L110 88v6L-10 134z" fill="#2b2b26" />
<circle cx="72" cy="34" r="10" fill="none" stroke="#2b2b26" stroke-width="1.2" />
<text x="9" y="20" class="art__type" fill="#2b2b26">Field</text>
<text x="9" y="31" class="art__type" fill="#2b2b26">Lines</text>
</svg>
</div>
</div>
<span class="glass" aria-hidden="true"></span>
</div>
</figure>
<figure class="piece" data-piece data-title="Still Pool" data-artist="June Halloran" tabindex="0" role="button" aria-pressed="false">
<span class="piece__glow" aria-hidden="true"></span>
<span class="piece__shadow" aria-hidden="true"></span>
<div class="piece__tilt">
<div class="frame">
<div class="mat">
<svg class="art" viewBox="0 0 100 140" preserveAspectRatio="xMidYMid slice" aria-label="Still Pool, a terracotta print with rings round a dark square">
<rect width="100" height="140" fill="#b9573a" />
<g fill="none" stroke="#f1d6b8" stroke-width="1">
<circle cx="50" cy="82" r="14" />
<circle cx="50" cy="82" r="22" opacity=".75" />
<circle cx="50" cy="82" r="30" opacity=".5" />
<circle cx="50" cy="82" r="38" opacity=".3" />
</g>
<rect x="42" y="74" width="16" height="16" fill="#26170f" />
<text x="9" y="20" class="art__type" fill="#f1d6b8">Still</text>
<text x="9" y="31" class="art__type" fill="#f1d6b8">Pool</text>
</svg>
</div>
</div>
<span class="glass" aria-hidden="true"></span>
</div>
</figure>
</section>
<section class="panel" data-panel aria-label="Choose size and frame">
<span class="panel__sheen" aria-hidden="true"></span>
<div class="panel__head">
<div class="panel__title">
<strong data-title>Sun Study</strong>
<span data-artist>by Inès Marlow · giclée on cotton rag</span>
</div>
<div class="price" aria-live="polite">
<span class="price__cur">€</span><span class="price__digits" data-price></span>
</div>
</div>
<div class="choose">
<div class="seg" data-seg="size" role="radiogroup" aria-label="Size">
<span class="seg__pill" aria-hidden="true"></span>
<button class="seg__opt" role="radio" data-value="a3">A3</button>
<button class="seg__opt" role="radio" data-value="a2">A2</button>
<button class="seg__opt" role="radio" data-value="b">50×70</button>
</div>
<div class="seg" data-seg="frame" role="radiogroup" aria-label="Frame">
<span class="seg__pill" aria-hidden="true"></span>
<button class="seg__opt" role="radio" data-value="oak"><i class="sw sw--oak" aria-hidden="true"></i>Oak</button>
<button class="seg__opt" role="radio" data-value="black"><i class="sw sw--black" aria-hidden="true"></i>Black</button>
<button class="seg__opt" role="radio" data-value="none"><i class="sw sw--none" aria-hidden="true"></i>None</button>
</div>
</div>
<button class="add" data-add>
<span class="add__fill" aria-hidden="true"></span>
<span class="add__label" data-add-label>Add to cart</span>
<span class="add__done" data-add-done aria-hidden="true">
<svg viewBox="0 0 20 20"><path data-check d="M5 10.5l3.2 3.2L15 7" /></svg>Added
</span>
</button>
</section>
<svg class="pointer" viewBox="0 0 24 24" aria-hidden="true" data-pointer>
<path d="M5 3.5 18.5 12 12.4 13.6 9.4 19.6z" />
</svg>
</main>
<script src="https://cdn.jsdelivr.net/npm/gsap@3.15.0/dist/gsap.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.
46 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 “Poster wall picker” from Animorio and fit it into my siteEach print has its real size (A3 297×420, A2 420×594, 50×70 500×700) plus frame and mat, in millimetres. layout() adds up widths and gaps, finds the scale that fits everything into the wall in width and height and hangs the prints in a row with their centres on the same line, as galleries do. GSAP moves left, top, width and height and the --fw and --mw variables of frame and mat.
When a new size is picked, layout(CHANGE) recalculates the whole wall with expo.inOut: the chosen print changes size and the others glide and rescale with it, because the scale depends on the sum of the widths. So the difference between A3 and 50×70 really shows.
The frame is the padding of a div whose background sits in a variable: oak in three tones with a grain drawn by two repeating-linear-gradients, matt black, or nothing, and then frame, mat and glass go to zero and the shadow tightens like a pinned sheet. The change goes through a short brightness flash and a scale spring.
Each print has a wrapper for GSAP that leans in rotationX and rotationY towards the pointer, up to TILT degrees, and grows by LIFT; the shadow is a separate element that moves away, blurs and shifts the other way; the glass is a band of light in a linear-gradient whose background-position slides the opposite way. On leaving, everything comes back with elastic.out.
The price is made of columns of digits from 0 to 9 that GSAP moves in yPercent, with a small delay for each digit. Add to cart fills the button, draws the tick and sends a copy of the print's SVG to the bag on an arc (linear x, y with back.in) while shrinking; the bag's number jumps on a spring.
| Name | File | Default | What it changes |
|---|---|---|---|
FRAME_MM | script.js | 22 | Frame width, in millimetres. |
MAT_MM | script.js | 48 | Width of the mat around the print, in millimetres. |
GAP_MM | script.js | 110 | Space between two frames on the wall, in millimetres. |
TILT | script.js | 8 | How many degrees the print leans towards the pointer. |
LIFT | script.js | 1.03 | How much the print grows as it leaves the wall. |
CHANGE | script.js | 0.95 | Seconds for the wall to rearrange after a new size or frame. |
ROLL | script.js | 0.6 | Seconds for the price digits to roll. |
AUTO_REST | script.js | 2.2 | Left alone, seconds of rest between two steps of the tour. |
LOOP | script.js | true | Left alone, it shows itself again and again. |
For the page of a shop selling posters, art prints, photographs or frames, for an illustrator's gallery selling their plates, or for any product chosen in several sizes and finishes while you see it change for real.
The same animation with adapted sizes: the wall rescales to the width and height of the screen, the panel stacks (title and price, the two pickers, the full-width button). Instead of hovering you tap: tap a print to pick it.
With reduced motion the prints don't lean and the wall doesn't glide: size and frame change with a fade, the price changes without rolling and no copy flies to the bag; the number just updates.
GSAP 3.15.0, 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 28 KB.
Tested on 8 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.