
The liquid grid
Hover, Transitions
The shop window of a made-up art print shop, Halden Editions: six abstract prints of ours, framed in oak, in a grid on a warm gallery white. On hover a band of gallery light slides across the glass and the frame lifts a little off the wall; pick a print and it leaves the grid with a FLIP and flies to its own page, growing, while the passe-partout widens, a pencil signature writes itself on the mat, the others step back and fade, and the artist, the title, the sizes, the price and the measuring rules arrive. «All prints» puts it back in its place in the grid. Premium minimal style.
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 grid transition" 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 print grid that becomes the print page, with the mat that widens</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 shop window of a made-up print studio, Halden Editions: six framed abstract prints of ours in a grid. Hover one
and a band of gallery light slides across its glass; pick one and the print leaves the grid (FLIP), flies to the
page of the print, its mat widens to a deep passe-partout, the others step back and fade, and the title, the
artist, the sizes and the price arrive. All prints puts it back in its place in the grid -->
<header class="top">
<span class="brand">
<svg class="brand__mark" viewBox="0 0 20 20" aria-hidden="true">
<rect x="3" y="2.5" width="14" height="15" rx="0.6" />
<rect x="6.2" y="5.7" width="7.6" height="8.6" />
</svg>
<span class="brand__name">Halden</span>
<span class="brand__sub">Editions</span>
</span>
<nav class="nav" aria-label="Shop">
<span class="nav__item nav__item--on">Prints</span>
<span class="nav__item">Artists</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__count"><span class="bag__num" data-count>0</span></span>
</span>
</nav>
</header>
<section class="grid" data-grid aria-label="Prints"></section>
<section class="detail" data-detail aria-label="Print" aria-hidden="true">
<div class="detail__stage">
<div class="slot" data-slot>
<span class="rule rule--w" data-rule-w aria-hidden="true">
<span class="rule__line"></span>
<span class="rule__label" data-rule-w-label>30 cm</span>
</span>
<span class="rule rule--h" data-rule-h aria-hidden="true">
<span class="rule__line"></span>
<span class="rule__label" data-rule-h-label>40 cm</span>
</span>
</div>
</div>
<div class="panel" data-panel>
<p class="eyebrow" data-in><span data-artist>Anouk Varel</span><span class="eyebrow__year" data-year>2025</span></p>
<h2 class="title"><span class="title__line"><span class="title__in" data-title>Three Arches</span></span></h2>
<p class="desc" data-in>Giclée on 310 gsm cotton rag. Edition of 50, signed and numbered by hand.</p>
<div class="sizes" role="radiogroup" aria-label="Size" data-in data-sizes>
<span class="sizes__pill" data-pill aria-hidden="true"></span>
<button class="size" type="button" role="radio" aria-checked="true" data-size="0">30 × 40</button>
<button class="size" type="button" role="radio" aria-checked="false" data-size="1" data-autoclic>50 × 70</button>
<button class="size" type="button" role="radio" aria-checked="false" data-size="2">70 × 100</button>
</div>
<div class="buy" data-in>
<span class="price" aria-live="polite"><span class="price__cur">€</span><span class="price__digits" data-price></span></span>
<button class="add" type="button" data-add data-autoclic>
<span class="add__bg" aria-hidden="true"></span>
<span class="add__sheen" aria-hidden="true"></span>
<span class="add__text" data-add-text>Add to bag</span>
<svg class="add__tick" viewBox="0 0 16 16" aria-hidden="true"><path d="M3.5 8.4 6.6 11.4 12.6 4.8" /></svg>
</button>
</div>
<p class="ship" data-in>Framed in oak, ready to hang. Ships in 4 days.</p>
<!-- last in the page, so the autopilot clicks it after the size and the bag; CSS puts it on top -->
<button class="back" type="button" data-back data-autoclic>
<svg viewBox="0 0 16 16" aria-hidden="true"><path d="M10 3.5 5.5 8l4.5 4.5" /></svg>
<span>All prints</span>
</button>
</div>
</section>
</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.
39 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 grid transition” from Animorio and fit it into my siteEach print is an SVG on a 120 by 160 sheet with preserveAspectRatio slice, inside three boxes: the frame (the oak padding with its grain in a repeating-linear-gradient), the passe-partout (the paper coloured padding) and the bevelled cut (two one pixel box-shadows). Every size is a share of the frame width, in a --w variable, and the passe-partout is --w times --matk.
On click the frame in the grid is measured (the first position) and so is the empty place of the page (the last), the frame is cloned into a layer above everything, set exactly on the first, the original is hidden and GSAP brings left, top, width, height and --w to the last with expo.inOut. No scale: the frame really grows, so the wood stays thin and does not stretch.
In the same flight --matk goes from 0.075 to 0.15 of the width, starting a little later: the print inside gets smaller while the frame grows, and it reads as a margin opening up. Near the end the pencil signature writes itself with stroke-dashoffset, and on arrival the frame rises two pixels and drops back with elastic.out.
For every other print the distance in cells from the chosen one is worked out: it shrinks to 0.86, moves ten pixels per cell away from it, fades and blurs, with a delay that grows with the distance. On the way back the same in reverse, with back.out(1.5) and the farthest first, so they all land together with the print.
The title rises from a slit (overflow hidden and yPercent), the artist and the lines arrive staggered, the rules draw themselves with scale from zero and the size pill is a single element GSAP moves under the chosen button. The price digits are columns from zero to nine that roll with a small delay from right to left.
Over the print sits a glass with a still diagonal reflection and a skewed band of light with mix-blend-mode screen: on hover GSAP slides it from left to right, while the frame lifts with back.out and leans towards the pointer with a rotationX and rotationY of a few degrees.
| Name | File | Default | What it changes |
|---|---|---|---|
OPEN | script.js | 1.05 | Seconds for the print to fly from the grid to its page (and back). |
MAT_GRID | script.js | 0.075 | Width of the mat in the grid, as a share of the frame. |
MAT_PAGE | script.js | 0.15 | Width of the passe-partout on the page of the print. |
STEP_BACK | script.js | 0.86 | How small the other prints get as they step back. |
BLUR | script.js | 6 | Blur of the other prints as they fade, in pixels. |
STAGGER | script.js | 0.05 | Seconds between two prints stepping back or coming forward. |
GLINT | script.js | 0.95 | Seconds for the light to slide across the glass. |
LIFT | script.js | 4 | How far a hovered print comes off the wall, in pixels. |
PANEL_DELAY | script.js | 0.55 | Seconds after the flight starts when the words of the page arrive. |
For the step from the shop window to a product page in a shop of prints, posters, paintings, photographs or ceramics; for the gallery of an artist, a photographer or a museum opening a work; for a portfolio where the project leaves the grid and becomes its own page without losing the thread.
The same animation with adapted sizes: grid, frames, the place on the page and the type are measured on the width and on the height (min of vw and vh), and on a phone held upright the page puts the print on top and the words under it. The flight is measured on click, and if the window changes size while the page is open the print goes back onto its place. On touch there is no hover light: the light passes over the glass as the print leaves.
No flight and no movement: the grid fades out, the print appears already large on its page with the wide mat and the signature, and the words fade in; on the way back the same in reverse. The price changes with a fade.
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 12 KB; the libraries: GSAP 28 KB.
Tested on 12 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.