
The liquid grid
Hover, Transitions
A page transition for an invented independent bookshop, Vellmont Books: a shelf of ten cloth and paper spines, their titles set upright in a variable serif. On hover a spine comes out by a few pixels and takes the light; on a click it slides off, turns like a flat board to show its cover and grows into the cover of the book's page, while the others step aside and fade and the title, author, price and ‘Reserve a copy’ rise in their masks. ‘Back to the shelf’ makes the journey backwards and the book drops in with a one pixel settle.
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>
<!--
"Shelf to book page" 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>Shelf to book page</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/wdth.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<main class="stage" data-stage>
<!-- Vellmont Books, an independent bookshop. The first page is a shelf of cloth and paper spines; a click pulls one
out, turns it to its cover and grows it into the cover of the book's page while the others step aside -->
<header class="bar">
<span class="bar__mark">Vellmont <em>Books</em></span>
<span class="bar__slot">
<span class="bar__label" data-label>Autumn shelf</span>
<button class="back" type="button" data-back tabindex="-1">
<span class="back__face">
<svg class="back__icon" viewBox="0 0 16 16" aria-hidden="true"><path d="M13 8H4M7.6 4.2L3.8 8l3.8 3.8"/></svg>
<span class="back__words">Back to the shelf</span>
</span>
</button>
</span>
</header>
<section class="shelf" data-shelf aria-label="Autumn shelf">
<div class="shelf__row" data-row>
<span class="shelf__board" data-board aria-hidden="true"></span>
<span class="shelf__note" data-note>Ten new books, chosen by the people at the counter</span>
</div>
</section>
<section class="page" data-page aria-hidden="true">
<span class="page__cover" data-slot aria-hidden="true"></span>
<div class="page__info">
<p class="m"><span class="m__in page__genre" data-f="genre">Fiction</span></p>
<h1 class="m page__title"><span class="m__in" data-f="title">Title</span></h1>
<p class="m"><span class="m__in page__author">by <span data-f="author">Author</span></span></p>
<p class="m"><span class="m__in page__meta" data-f="meta">Hardback</span></p>
<p class="m"><span class="m__in page__price" data-f="price">$0</span></p>
<span class="page__rule" data-rule aria-hidden="true"></span>
<p class="m"><span class="m__in page__stock">
<svg class="page__shop" viewBox="0 0 16 16" aria-hidden="true"><path d="M2.5 6.5h11M3.2 6.5l.9-3h7.8l.9 3M3.5 6.5v6.5h9V6.5M6.5 13V9.5h3V13"/></svg>
In stock at the shop</span></p>
<div class="m m--btn"><span class="m__in">
<button class="reserve" type="button" data-reserve tabindex="-1">
<span class="reserve__face" data-reserve-face>
<span class="reserve__words" data-reserve-words>Reserve a copy</span>
<svg class="reserve__icon" viewBox="0 0 16 16" aria-hidden="true">
<path class="reserve__check" data-check pathLength="1" d="M3.6 8.4l2.9 2.9 5.9-6.4"/>
</svg>
</span>
</button>
</span></div>
</div>
</section>
<div class="flyer" data-flyer aria-hidden="true">
<div class="flyer__turn" data-turn>
<div class="face face--spine" data-face-spine></div>
<div class="face face--cover" data-face-cover></div>
</div>
</div>
<p class="sr" aria-live="polite" data-live></p>
</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.
28 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 “Shelf to book page” from Animorio and fit it into my siteThe shelf and the book's page sit on top of each other in the same stage. The page already holds a place for the cover, an empty box: that is where the book has to land.
The travelling book is a single element with two faces: the spine in front and the cover behind, turned 180 degrees, with backface-visibility hidden. Turning it on Y, halfway it is edge on and then the cover appears. The cover is sized in container units (cqw), so it grows with the board.
The spine on the shelf and the cover box on the page are measured; GSAP only moves one number from 0 to 1 and every frame works out position, width, height and rotation. On resize both are measured again and the book is recalculated even halfway through.
First the spine rises by 16 pixels (it slides off), then the turn starts. The others move sideways, further the further they are, and fade with a delay that grows with distance; the page's lines rise in their staggered masks.
The book's shadow depends on how far it is pulled out and how far into the flight: it lengthens and softens halfway and shortens as it lands. On the way back the book drops one pixel below its place and comes back up: that is the settle.
| Name | File | Default | What it changes |
|---|---|---|---|
SPEED | script.js | 1 | 2 = the whole journey twice as fast, 0.5 = half. |
TURN | script.js | 1.15 | Seconds the book takes to turn and grow into the cover. |
PULL | script.js | 16 | Pixels the spine slides up off the shelf before it turns. |
SPREAD | script.js | 44 | Pixels the other spines step aside. |
SETTLE | script.js | 1 | Pixels the book drops past its place before it settles. |
HOLD | script.js | 3.4 | Seconds the autopilot stays on the book's page. |
FEATURED | script.js | 5 | Which book the autopilot opens, from 1 (the left) to 10. |
LOOP | script.js | true | Opens and closes a book again and again until the page is touched. |
For the site of a bookshop, a publisher, a magazine or a stationery shop: the move from the product list to the single product page, with the object itself bridging the two pages.
The same animation with adapted sizes: the shelf takes the height and width there is, the cover and the words shrink with the height and stay side by side; a finger opens the book and goes back.
No journey and no turn: the shelf fades, the cover appears already in its place with a fade together with the words, and on the way back the same in reverse.
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 11 KB; the libraries: GSAP 28 KB.
Tested on 17 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.