
Stacking certificates
Hover, Images
The ‘New this week’ shelf of an invented online bookshop: nine cloth spines with their titles stamped in gold, in a row on a plank. The book under the pointer comes out of the row towards you and turns three quarters on a spring, showing its glossy cover (abstract shapes and type) with a band of light sweeping over it; the neighbours lean a little into the gap. On a click the book moves to the middle and opens halfway: on the first page the price and ‘Add to bag’, which gives under the finger, comes back with a check and makes the bag count one more.
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>
<!--
"New arrivals shelf" 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 new arrivals shelf with books that turn to their cover</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>
<!-- the new arrivals shelf of an online bookshop: a row of cloth spines. The book under the pointer comes out of
the row and turns three quarters to show its glossy cover; a click opens it halfway on its price and the
Add to bag button -->
<header class="head">
<span class="brand">
<svg class="brand__mark" viewBox="0 0 20 20" aria-hidden="true"><path d="M3 4.5h5.2c1 0 1.8.8 1.8 1.8V16c0-.8-.7-1.4-1.5-1.4H3z"/><path d="M17 4.5h-5.2c-1 0-1.8.8-1.8 1.8V16c0-.8.7-1.4 1.5-1.4H17z"/></svg>
Harrow Lane Books
</span>
<span class="head__label">New this week</span>
<span class="bag" data-bag>
<svg class="bag__icon" viewBox="0 0 20 20" aria-hidden="true"><path d="M4.2 7h11.6l-.9 9.2c-.1.7-.6 1.2-1.3 1.2H6.4c-.7 0-1.2-.5-1.3-1.2z"/><path d="M7.2 7V5.8a2.8 2.8 0 0 1 5.6 0V7"/></svg>
<span class="bag__count"><span data-count>0</span></span>
</span>
</header>
<section class="shelf" data-shelf aria-label="New arrivals">
<div class="shelf__row" data-row></div>
<div class="shelf__plank" aria-hidden="true"></div>
</section>
<footer class="info" aria-live="polite">
<span class="info__window"><span class="info__title" data-title>Nine new books</span></span>
<span class="info__window"><span class="info__meta" data-meta>Point at a spine to see the cover</span></span>
</footer>
</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.
113 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 “New arrivals shelf” from Animorio and fit it into my siteEach book is a small CSS 3D box: spine, fore edge of the pages, back, first page and the cover on a hinge (an element with its transform origin on the left edge and two faces, outside and inside). Each sits in its own slot with its own perspective, so the pulled book can pass in front of the others with a plain z-index.
At rest the box is turned 90 degrees and only the spine shows. Pulled, it comes forward in Z by a quarter of its height, rises and turns to 32 degrees with back.out: spine and cover show together. Its position is clamped so it never leaves the shelf.
GSAP does not animate the elements but one state object per book (x, y, z, rotation, cover, light, lean); a ticker writes the transforms. So the shadow on the plank, the darkening of the cover seen edge on and the hidden inner faces follow the same number.
Over the cover sits a banded gradient in soft-light, moved by a CSS variable: it sweeps left to right as the book turns, then follows the pointer. Spine and cloth are only gradients: the one pixel weave and the curve of light and shade.
On a click the book moves to the middle of the shelf and the cover turns 148 degrees on its hinge. The button squashes in 0.11 s and comes back with elastic.out, the check draws itself with pathLength and the bag's number leaves upwards and comes back from below.
| Name | File | Default | What it changes |
|---|---|---|---|
BOOKS | script.js | nove libri | The books: title, author, price, pages, cloth colour, second colour and ink of the cover, thickness, height and the shapes on the cover. |
CURRENCY | script.js | £ | The sign before the price. |
TURN | script.js | 58 | How far the book turns to show its cover, in degrees. |
PULL | script.js | 0.26 | How far it comes out of the row towards you, as a share of its height. |
OPEN | script.js | 148 | How far the cover opens, in degrees. |
LEAN | script.js | 2.4 | How far the neighbours lean, in degrees. |
SPRING | script.js | 1.3 | How much the book passes the mark as it turns. |
SPEED | script.js | 1 | 2 = the walk on its own twice as fast, 0.5 = half. |
LOOP | script.js | true | Repeats the walk when nobody points. |
For the new arrivals of an online bookshop, a publisher or a record and magazine shop: a row of narrow products you browse with the pointer and buy without leaving the page.
The same animation with adapted sizes: the shelf shrinks to the width and height of the box, the first tap pulls the book out, the second opens it, the button is pressed with a finger and a tap outside puts it back in the row.
The books do not fly: each state (pulled, open, added) appears already in place with a fade of the row, and the words change with a fade.
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 12 KB; the libraries: GSAP 28 KB.
Tested on 11 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.