Skip to content
animorio
IT
Back to the library

Watch window cards

Hover, ImagesGSAP, CSS onlyMediumCompressed weight: Demo 7.9 KBGSAP 28 KBFreeDownload the zip

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.

The code

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>

Playground

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

Or ask your AI assistant for it

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 site
Platform licenseFree on your sites and your clients’ sites. Want it inside a website builder, a template platform or a client dashboard? There’s a license for agencies and platforms.

What it does

On a warm near black page, with an amber glow in the middle, three vertical cards with round corners rise one after the other: above them the made-up maker Hallberg with its dial mark and, on the right, ‘The autumn window’. In the cards three real photos of wristwatches: one in pale wood with a wooden dial on a wrist in the sun, an all black one with a black dial and white hands against a black sweater, a slim steel one with a dark dial on a wrist resting on a table. Under each there is only a short golden hairline. When the pointer passes over a card, a soft honey light turns on over the glass and follows it a moment late, like a real reflection; a long slanted reflection, like a window on a watch glass, slides the opposite way, and the 1px rim lights up only near the light. The card tilts towards the pointer on a spring, rises ten pixels on a long layered shadow and grows a touch; the hairline underneath stretches to the full width and the model's name, the price and ‘View’ with its arrow rise into place. The other two cards sink a few pixels and lose light and colour. Pressing a card it gives under the finger and comes back on a spring, the glass flashes once and the arrow nudges. On its own the demo walks over the three cards, presses the middle one and leaves; on a phone a finger does the same with a touch.

How it works

A layered card

Each 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.

The specular light

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.

Hand-made springs

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 name and the price

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.

The pilot

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.

Values to change

NameFileDefaultWhat it changes
TILTscript.js7How far a card tilts towards the pointer, in degrees.
LIFTscript.js10How many pixels the card under the pointer rises.
DIMscript.js0.75How much the other two dim: 0 not at all, 1 fully.
GLAREscript.js1How bright the light on the glass is.
STIFFNESSscript.js190The spring of the tilt and the light: higher is quicker.
DAMPINGscript.js16Lower lets the card pass the mark and come back.
SPEEDscript.js12 = the walk on its own twice as fast, 0.5 = half.
LOOPscript.jstrueRepeats the walk over the cards.

Try them in the Playground

When to use it

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.

On phones

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.

With reduced motion

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.

Pitfalls

  • The blend modes (soft-light, screen) must be closed inside the frame with isolation: isolate, or the light also mixes with the page and the shadows.
  • GSAP moves the card's body, not the row item: so the row's measurements stay right while the card is tilted and the hover area does not shake.
  • With three separate targets, the hover drops and comes back in the gap between two cards: here the nearest card always wins while the pointer is inside the row.

Libraries

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.

Testing

Tested on 6 November 2026

  • Desktop: Done
  • Phone: Done
  • Reduced motion: Done
  • Safari on iPhone: To do

License

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.

All animations