
Stacking certificates
Hover, Images
A strip of stamps glides under a round lens: outside it is blurred and dim, inside the lens it is sharp, bright and larger. It slows down under the mouse, and it can be dragged and thrown.
Rebuilt from scratch studying readingstones.com by : the idea is theirs; code, copy and images are ours. Read how it’s made
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>
<!--
"The lens on the strip" 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="it">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>La lente sul nastro</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/mona-sans@5.3.0/standard.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<main class="album">
<p class="nota" data-nota>Passa sopra il nastro e rallenta; trascinalo per portare un francobollo sotto la lente.</p>
<!-- il nastro: dietro una copia sfocata e spenta, dentro la lente la stessa copia nitida e ingrandita -->
<section class="nastro" data-nastro tabindex="0" aria-label="Nastro di francobolli: con le frecce ne porti uno sotto la lente">
<div class="binario" data-binario aria-hidden="true"></div>
<div class="lente" data-lente aria-hidden="true">
<div class="lente__vetro">
<div class="binario binario--lente" data-binario-lente></div>
</div>
<span class="lente__riflesso"></span>
</div>
</section>
<p class="didascalia" data-didascalia>
<span class="didascalia__nome" data-nome>Il faro</span>
<span class="didascalia__valore" data-valore>25</span>
</p>
<p class="nascosto" aria-live="polite" data-annuncio></p>
</main>
<!-- la dentellatura e la cornice del disegno, uguali per tutti i francobolli -->
<svg class="nascosto" aria-hidden="true" focusable="false">
<defs>
<mask id="dentelli" maskUnits="userSpaceOnUse" x="0" y="0" width="100" height="125" data-dentelli>
<rect width="100" height="125" fill="#fff" />
</mask>
<clipPath id="vignetta"><rect x="8" y="8" width="84" height="94" /></clipPath>
</defs>
</svg>
<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.
40 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 “The lens on the strip” from Animorio and fit it into my siteThe strip exists twice, with the same stamps in the same order: one behind, full width, with filter: blur(3px) brightness(0.5) saturate(0.55); one inside the lens, a circle made with clip-path: circle(50%), sharp. The same number moves both, so they cannot fall out of step.
A point of the strip that sits at x behind must sit at c + s × (x − c) inside the lens, where c is the lens centre and s the magnification, 1.18. With transform-origin at the top left one transform is enough: translate(r + s × (x − c), r + s × (top − cy)) scale(s), where r is the lens radius.
One loop is the whole set: twelve stamps times their pitch. The strip holds as many copies as it takes to cover the screen, plus one, and the drawn position is x − ⌈x / loop⌉ × loop, always between minus one loop and zero: the number grows without limit, the strip does not.
Every frame the speed chases its target with 1 − e^(−2.4 × dt): 46 pixels a second, 9 with the mouse over it. Dragging measures the speed of the gesture’s last tenth of a second; letting go, the strip starts from it and returns to its pace by itself, with no hand-written curve. The stamp under the lens is round((c − x − half a stamp) / pitch), modulo twelve.
| Name | File | Default | What it changes |
|---|---|---|---|
FRANCOBOLLI | script.js | 12 francobolli | Name, value and drawing of each stamp: the drawing is a piece of SVG in an 84 × 94 frame, inside a 100 × 125 sheet that is already perforated. |
PASSO, LENTO | script.js | 46, 9 | Pixels per second of the strip, on its own and with the mouse over it. |
INGRANDISCE | script.js | 1.18 | How much the lens enlarges: with the lens one and a half times as wide as the stamp, a whole stamp fits inside up to about 1.2. |
--fb | style.css | clamp(128px, 24vh, 232px) | The height of a stamp: strip, lens and caption follow from it. |
For a collection to browse without hurry: products, covers, labels, works. The lens says where to look and the strip hints that there are more.
Smaller stamps and lens; a sideways finger drags and throws the strip, a vertical one scrolls the page.
The strip stands still, with the first stamp under the lens: it only moves by dragging or with the arrow keys, without inertia and without the name’s jump.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 7.5 KB; the libraries: GSAP 28 KB.
Tested on 27 September 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.