
Stacking certificates
Hover, Images
The lookbook of Sorrel Room, a made-up hair salon: the photo of the finished work on the left, on the right the style pills (Curls, Bob, Braid, Gloss), the style name in large type, who does it, the time in the chair and the price. Picking a style, the new real photo opens from the pill's side, from the right going forward and from the left going back, and settles from a hair too large while the old one slips away; the white pill stretches over both styles, then lets go of the old one on a spring; name, note, stylist, time and price roll one after another, and the stylist's face pops when it changes. Book this look adds the style to the booking with a light sweeping the button and a tick drawing itself. Four real CC0 photos.
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>
<!--
"Salon lookbook" 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 salon lookbook with the styles to pick and the photo that opens from the right side</title>
<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>
<!-- the lookbook of Sorrel Room, a made-up hair salon: four real photos of finished styles. Picking a style pill,
the photo of that style opens from the side the pill sits on (forward from the right, back from the left) and
settles from a hair too large; the pill under the chosen style runs over on a spring; the name, the stylist,
the time in the chair and the price roll to the new ones. Book this look adds the style to the booking. -->
<main class="palco" data-palco>
<article class="libro" data-libro>
<div class="foto" data-foto aria-label="Photos of the styles">
<figure class="lastra" data-lastra><img src="ricci.webp" width="960" height="640" alt="A woman with long defined dark curls in a blue sweater, leaning on a white wall"></figure>
<figure class="lastra" data-lastra><img src="caschetto.webp" width="960" height="640" alt="A woman with a soft blonde bob sipping from a white cup by the water"></figure>
<figure class="lastra" data-lastra><img src="treccia.webp" width="1024" height="681" alt="A long loose braid of light brown hair, seen from behind"></figure>
<figure class="lastra" data-lastra><img src="lucido.webp" width="960" height="771" alt="A woman in profile running her hand through long glossy dark hair"></figure>
<span class="foto__velo" aria-hidden="true"></span>
<span class="foto__luce" data-luce aria-hidden="true"></span>
<p class="foto__etichetta"><span data-conta>Curls</span><i aria-hidden="true"></i><em>Sorrel Room</em></p>
</div>
<div class="testo">
<p class="sopra">
<svg viewBox="0 0 20 20" aria-hidden="true"><path d="M6.2 3.5c2.6 1.4 2.6 4.6 0 6m7.6-6c-2.6 1.4-2.6 4.6 0 6M4 16.5c1.8-3 4-4.5 6-4.5s4.2 1.5 6 4.5" /></svg>
Sorrel Room · Lookbook
</p>
<div class="scelte" role="tablist" aria-label="Styles" data-scelte>
<span class="scelte__segno" data-segno aria-hidden="true"></span>
<button class="scelta" type="button" role="tab" aria-selected="true" data-scelta>Curls</button>
<button class="scelta" type="button" role="tab" aria-selected="false" data-scelta>Bob</button>
<button class="scelta" type="button" role="tab" aria-selected="false" data-scelta>Braid</button>
<button class="scelta" type="button" role="tab" aria-selected="false" data-scelta>Gloss</button>
</div>
<h1 class="nome"><span class="riga" data-riga="nome"><span>Defined curls</span></span></h1>
<p class="nota"><span class="riga" data-riga="nota"><span>Curl cut, then a slow diffuse dry</span></span></p>
<dl class="dati">
<div class="dato">
<dt>Stylist</dt>
<dd class="persona"><span class="viso" data-viso>IN</span><span class="riga" data-riga="chi"><span>Ines</span></span></dd>
</div>
<div class="dato">
<dt>In the chair</dt>
<dd><span class="riga" data-riga="tempo"><span>1 h 30 min</span></span></dd>
</div>
<div class="dato">
<dt>From</dt>
<dd><span class="riga" data-riga="prezzo"><span>€85</span></span></dd>
</div>
</dl>
<button class="prenota" type="button" data-prenota>
<span class="prenota__luce" data-lucina aria-hidden="true"></span>
<span class="prenota__scritte">
<span class="prenota__scritta" data-scritta-a>Book this look</span>
<span class="prenota__scritta prenota__scritta--fatto" data-scritta-b>
<svg viewBox="0 0 16 16" aria-hidden="true"><path data-spunta d="M3.5 8.4l3 2.9 6-6.4" /></svg>
Added to your booking
</span>
</span>
<svg class="prenota__freccia" viewBox="0 0 16 16" aria-hidden="true"><path d="M3 8h9.5M8.5 4l4 4-4 4" /></svg>
</button>
</div>
</article>
<svg class="puntatore" data-puntatore viewBox="0 0 24 24" aria-hidden="true"><path d="M5 3l13.5 8.2-6.1 1.3 3.4 6.6-2.6 1.3-3.4-6.6L5 18.4z" /></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.
34 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 “Salon lookbook” from Animorio and fit it into my siteThe four photos are stacked figures in a 4/5 frame with rounded corners. The new one goes on top (z-index) and is uncovered with an inset clip-path: from inset(0 0 0 100%) to inset(0 0 0 0) going forward, from the other side going back. The image inside starts at 1.08, a little off, and settles; the old one slips 14 pixels away and is hidden only at the end.
The white pill is an element under the style buttons. First it stretches to cover the old and the new style in 0.16 seconds, slightly squashed, then lets go of the old one with a back.out: it looks like a liquid moving from one drop to the next. With the pointer over another style it leans 4 pixels towards it.
Name, note, stylist, time and price are lines with hidden overflow: the new text comes in from below going forward and from above going back, the old one leaves on the other side, and the line's width grows or shrinks with them. Each line starts 50 milliseconds after the one before.
Pressed, the button squashes and springs back, a light sweeps across, the label rises and «Added to your booking» comes in with the tick drawing itself. Changing style undoes the booking.
| Name | File | Default | What it changes |
|---|---|---|---|
REVEAL_TIME | script.js | 0.62 | Seconds for the new photo to open from the side of the chosen style. |
SETTLE | script.js | 1.08 | How large the new photo starts before it settles (1 = no settle). |
DRIFT | script.js | 14 | How many pixels the old photo slips away while the new one opens. |
PILL_SPRING | script.js | 1.7 | How much the pill under the chosen style overshoots (0 = none). |
ROLL_TIME | script.js | 0.5 | Seconds for the name, stylist, time and price to roll to the new ones. |
PARALLAX | script.js | 7 | How many pixels the photo follows the pointer. |
LIFT | script.js | 4 | How many pixels the lookbook rises with the pointer on it. |
AUTOPLAY | script.js | true | Left alone, a drawn pointer picks the styles and books one. |
For the work page of a hairdresser, a barber or a beautician, for a treatment list with photos, and for any shop selling a service you choose by looking at it: a tattoo artist, a tailor, a florist.
The same animations at adapted sizes: on the phone the photo sits on top, up to 36% of the screen tall, with the pills, the name and the details smaller underneath; everything is sized on height too.
No movement: the photos change with a cross-fade, the pill jumps into place, the lines fade to the new text and the booking shows the tick already drawn.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 8.1 KB; the libraries: GSAP 28 KB.
Tested on 14 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.