
Stacking certificates
Hover, Images
«Shop the room» for Hallam & Rye, a made-up furniture shop: a real photo of a bright lounge with coral armchairs, and on top four plus points in a glass ring. Tap a point and the plus turns into an x, a hairline draws from the point to a small card with the kind of piece, the name, the material, the price and View; the room dims around the point and leans in a touch. Tap another point and the card glides there while the line redraws.
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>
<!--
"Shop the room hotspots" 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>Shop the room hotspots</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>
<!-- Shop the room for Hallam & Rye, a made-up furniture shop: a real photo of a lounge with four plus points.
Touch a point and a hairline draws from it to a small card with the piece, the price and View; the room
dims around the point and leans in a touch. Another point moves the card there. -->
<main class="stage">
<header class="bar">
<p class="brand">Hallam <span>& Rye</span></p>
<p class="room">Shop the room <span class="room__count" data-count>4 pieces</span></p>
</header>
<figure class="frame" data-frame>
<div class="scene" data-scene>
<img class="photo" src="salotto.webp" width="2048" height="1536" alt="A bright lounge with coral armchairs, grey loveseats, white coffee tables and pendant lamps by arched windows" data-photo>
<div class="dim" data-dim aria-hidden="true"></div>
<button class="spot" type="button" data-spot="0" aria-label="Armchair, Wren Wingback" aria-expanded="false">
<span class="spot__ring" data-ring></span>
<span class="spot__core" data-core>
<svg class="spot__plus" data-plus viewBox="0 0 12 12" width="12" height="12" aria-hidden="true"><path d="M6 1.5v9M1.5 6h9" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round"/></svg>
</span>
</button>
<button class="spot" type="button" data-spot="1" aria-label="Coffee table, Linnet" aria-expanded="false">
<span class="spot__ring" data-ring></span>
<span class="spot__core" data-core>
<svg class="spot__plus" data-plus viewBox="0 0 12 12" width="12" height="12" aria-hidden="true"><path d="M6 1.5v9M1.5 6h9" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round"/></svg>
</span>
</button>
<button class="spot" type="button" data-spot="2" aria-label="Pendant lamp, Harbour" aria-expanded="false">
<span class="spot__ring" data-ring></span>
<span class="spot__core" data-core>
<svg class="spot__plus" data-plus viewBox="0 0 12 12" width="12" height="12" aria-hidden="true"><path d="M6 1.5v9M1.5 6h9" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round"/></svg>
</span>
</button>
<button class="spot" type="button" data-spot="3" aria-label="Loveseat, Arden" aria-expanded="false">
<span class="spot__ring" data-ring></span>
<span class="spot__core" data-core>
<svg class="spot__plus" data-plus viewBox="0 0 12 12" width="12" height="12" aria-hidden="true"><path d="M6 1.5v9M1.5 6h9" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round"/></svg>
</span>
</button>
</div>
<svg class="wire" data-wire aria-hidden="true"><path data-path pathLength="1" d="M0 0"/></svg>
<aside class="tag" data-tag aria-live="polite">
<div class="tag__in" data-tag-in>
<p class="tag__kind" data-kind>Armchair</p>
<p class="tag__name" data-name>Wren Wingback</p>
<p class="tag__meta" data-meta>Coral bouclé, oiled oak legs</p>
<div class="tag__foot">
<span class="tag__price" data-price>$1,180</span>
<a class="tag__view" href="#" data-view>
<span>View</span>
<svg viewBox="0 0 12 12" width="11" height="11" aria-hidden="true"><path d="M3 9l6-6M4.5 3H9v4.5" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>
</a>
</div>
</div>
</aside>
</figure>
<p class="caption">The Harbour Lounge, styled by Hallam & Rye</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.
26 values to change
Works with Claude, Claude Code, ChatGPT, Cursor, VS Code, Windsurf, Codex, Gemini CLI
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 “Shop the room hotspots” from Animorio and fit it into my siteThe photo uses object-fit: cover, so the points cannot be placed in percentages: the script computes the photo’s scale (the larger of frame width and height divided by the photo’s), the offset of the cropped edges, and places each point in pixels; a point that lands in the cropped part is hidden. It is computed again on resize, even mid-animation.
The scene (photo, shade and points) has its transformOrigin in the centre; to lean in by LEAN keeping point p still it moves by (p minus the centre) times (1 minus LEAN). Between points scale and offset are interpolated together, with no jumps.
Over the photo sits a dark veil with a radial-gradient mask: transparent up to 54 pixels from the point, full from 210. GSAP moves the --mx and --my variables in pixels, so the clear circle slides from one piece to the next.
The card goes to the side of the photo with room, GAP pixels from the point, kept inside the frame; if it does not fit beside, above or below. The line is a path with pathLength 1 from the edge of the point to the nearest point of the card (the point clamped into the card’s rectangle); it draws with stroke-dashoffset from 1 to 0 and pulls back to −1. autoRound is off, otherwise the line appears all at once.
| Name | File | Default | What it changes |
|---|---|---|---|
SPEED | script.js | 1 | The speed of everything. |
LEAN | script.js | 1.035 | How much the room leans in towards the open point. |
SHADE | script.js | 1 | How much the room dims around the point (0 none). |
GAP | script.js | 96 | The distance in pixels between the point and the card. |
DRAW | script.js | 0.55 | Seconds of the line drawing itself. |
MOVE | script.js | 0.7 | Seconds of the card moving from one point to another. |
STEP | script.js | 2.6 | Seconds on each point in the self-running tour. |
SHOP | script.js | "Hallam & Rye" | The shop name. |
On the page of a furniture shop, a design brand or a hotel that sells its furniture: a styled photo where every piece can be bought, a lookbook, a collection’s «shop the look» page.
On phones you tap: the points are a little smaller, the card more compact, and if it does not fit beside the point it goes above or below. The frame is sized on the height too (calc on 100vh), so photo, points and card fit in the box.
No movement: the room does not lean in, the line and the card fade in in place, the plus becomes an x without turning and the shade fades in.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 7.4 KB; the libraries: GSAP 28 KB.
Tested on 3 December 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.
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.