
Stacking certificates
Hover, Images
A hover animation for a watch shop: three cards with real photos of wristwatches on a warm dark page. Passing over a card a soft light follows the pointer over its glass, a long slanted reflection slides the other way and the 1px rim lights up near the light; the card tilts a little on a spring, rises on layered shadows and the model's name and price come in underneath. The other two step back and dim a little.
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>
<!--
"Watch window cards" 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 watch product cards in the window with the light sliding over the glass</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>
<main class="stage" data-stage>
<!-- the autumn window of Hallberg, a made-up watchmaker: three cards with real photos of wristwatches on a warm
dark page. Passing over a card a soft specular light follows the pointer over its glass, the card tilts a
little on a spring and rises on layered shadows, its name and price come in underneath; the other two step
back and dim. Left alone, a pilot walks over the three by itself -->
<header class="head" data-head>
<p class="brand">
<svg class="brand__mark" viewBox="0 0 20 20" aria-hidden="true">
<circle cx="10" cy="10" r="8.2" />
<path d="M10 4.6v5.6l3.4 2.1" />
</svg>
Hallberg
</p>
<p class="head__note">The autumn window</p>
</header>
<ul class="row" data-row>
<li class="card" data-card data-name="Linden 38">
<div class="card__body" data-body>
<span class="card__shadow card__shadow--rest" aria-hidden="true"></span>
<span class="card__shadow card__shadow--lift" data-shadow aria-hidden="true"></span>
<div class="card__frame">
<img class="card__photo card__photo--linden" src="linden.webp" width="683" height="1024" alt="A wristwatch with a light wooden case and a pale wood dial on a wrist in warm sunlight" data-photo>
<span class="card__vignette" aria-hidden="true"></span>
<span class="card__glare" aria-hidden="true"></span>
<span class="card__streak" aria-hidden="true"><i></i></span>
<span class="card__grain" aria-hidden="true"></span>
<span class="card__rim" aria-hidden="true"></span>
</div>
</div>
<div class="card__info">
<span class="card__rule" data-rule aria-hidden="true"></span>
<p class="card__line"><span class="card__name" data-in>Linden 38</span></p>
<p class="card__line card__line--price">
<span class="card__price" data-in>$690</span>
<span class="card__view" data-in>View
<svg viewBox="0 0 12 12" aria-hidden="true"><path d="M2 6h7.4M6.2 2.8 9.4 6 6.2 9.2" /></svg>
</span>
</p>
</div>
</li>
<li class="card" data-card data-name="Onyx 39">
<div class="card__body" data-body>
<span class="card__shadow card__shadow--rest" aria-hidden="true"></span>
<span class="card__shadow card__shadow--lift" data-shadow aria-hidden="true"></span>
<div class="card__frame">
<img class="card__photo card__photo--onyx" src="onyx.webp" width="960" height="1439" alt="An all black watch with a plain black dial and white hands on a wrist against a black sweater" data-photo>
<span class="card__vignette" aria-hidden="true"></span>
<span class="card__glare" aria-hidden="true"></span>
<span class="card__streak" aria-hidden="true"><i></i></span>
<span class="card__grain" aria-hidden="true"></span>
<span class="card__rim" aria-hidden="true"></span>
</div>
</div>
<div class="card__info">
<span class="card__rule" data-rule aria-hidden="true"></span>
<p class="card__line"><span class="card__name" data-in>Onyx 39</span></p>
<p class="card__line card__line--price">
<span class="card__price" data-in>$1,240</span>
<span class="card__view" data-in>View
<svg viewBox="0 0 12 12" aria-hidden="true"><path d="M2 6h7.4M6.2 2.8 9.4 6 6.2 9.2" /></svg>
</span>
</p>
</div>
</li>
<li class="card" data-card data-name="Nocturne 40">
<div class="card__body" data-body>
<span class="card__shadow card__shadow--rest" aria-hidden="true"></span>
<span class="card__shadow card__shadow--lift" data-shadow aria-hidden="true"></span>
<div class="card__frame">
<img class="card__photo card__photo--nocturne" src="nocturne.webp" width="960" height="638" alt="A thin steel watch with a dark dial on a wrist resting on a table" data-photo>
<span class="card__vignette" aria-hidden="true"></span>
<span class="card__glare" aria-hidden="true"></span>
<span class="card__streak" aria-hidden="true"><i></i></span>
<span class="card__grain" aria-hidden="true"></span>
<span class="card__rim" aria-hidden="true"></span>
</div>
</div>
<div class="card__info">
<span class="card__rule" data-rule aria-hidden="true"></span>
<p class="card__line"><span class="card__name" data-in>Nocturne 40</span></p>
<p class="card__line card__line--price">
<span class="card__price" data-in>$1,920</span>
<span class="card__view" data-in>View
<svg viewBox="0 0 12 12" aria-hidden="true"><path d="M2 6h7.4M6.2 2.8 9.4 6 6.2 9.2" /></svg>
</span>
</p>
</div>
</li>
</ul>
<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.
25 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 “Watch window cards” from Animorio and fit it into my siteEach card is a stack: two shadows (one at rest, one that grows as the card rises), then the frame with the photo, a vignette, the light on the glass, the slanted reflection, a fine grain and the 1px rim. The script only writes CSS variables on the card (--l, --d, --g, --gx, --gy, --sx) and the body's transform; the CSS does the rest.
Two radial gradients centred on the pointer: a wide one in soft-light that warms the photo, a small one in screen for the bright point. The long reflection is a slanted gradient in screen moved opposite to the pointer; the rim is a radial gradient cut by an xor mask, so it only lights up near the light.
Tilt, rise, intensity and the light's position each have their own spring, integrated by hand in two steps per frame. The light's spring is a little slower than the tilt, so it lags a moment like a reflection; the rise is softer and passes the mark by a pixel before it settles.
The words sit in lines that clip what spills out: they rise from below with expo.out, staggered by 0.06 s, while the hairline stretches, and leave upwards when the pointer moves to another card. Between two cards the nearest one always wins, so the hover never drops in the gap.
A GSAP timeline moves a fake pointer in row coordinates (0 on the left, 1 on the right): it passes over the first card, presses the second, glides over the third and leaves. The real pointer or a finger pauses it, and it starts again by itself after a few seconds.
| Name | File | Default | What it changes |
|---|---|---|---|
TILT | script.js | 7 | How far a card tilts towards the pointer, in degrees. |
LIFT | script.js | 10 | How many pixels the card under the pointer rises. |
DIM | script.js | 0.75 | How much the other two dim: 0 not at all, 1 fully. |
GLARE | script.js | 1 | How bright the light on the glass is. |
STIFFNESS | script.js | 190 | The spring of the tilt and the light: higher is quicker. |
DAMPING | script.js | 16 | Lower lets the card pass the mark and come back. |
SPEED | script.js | 1 | 2 = the walk on its own twice as fast, 0.5 = half. |
LOOP | script.js | true | Repeats the walk over the cards. |
For the window of a watchmaker or a jeweller, for the product cards of a luxury shop (glasses, bags, perfumes), for the season's collection on a home page: wherever a photo should feel like a real object behind glass.
The same animation with adapted sizes: the three cards stay in a row and shrink with the width and the height, and under narrow cards ‘View’ keeps only its arrow. Touching a card lights it up and the light goes where the finger touches; after a few seconds the walk starts again by itself.
The cards neither tilt nor rise: the light on the glass stays still at the top right and fades in, the other cards dim with a fade, and the name and price appear without rising.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 7.9 KB; the libraries: GSAP 28 KB.
Tested on 6 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.