Skip to content
animorio
IT
Back to the library

Watch reservation panel

Hover, TransitionsGSAP, CSS onlyMediumCompressed weight: Demo 11 KBGSAP 28 KBFreeDownload the zip

The reservation panel of Velde, a made-up Swiss watchmaker: it slides in from the right over the page, the drawn Meridian 38 turns when you drag it sideways with a «Drag» label following the pointer, the three dial colours send it out to the left and back in from the right, the currency list opens and the price rolls digit by digit, and «Reserve» becomes «Reservation received» with a check that draws itself. Minimal style, inspired by the Prägen Hätlen site.

Rebuilt from scratch studying pragenhatlen.com by cher ami: the idea is theirs; code, copy and images are ours. Read how it’s made

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 reservation panel" 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>Reserve your Meridian · Velde</title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/manrope@5.3.0/index.css">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/red-hat-mono@5.3.0/index.css">
  <link rel="stylesheet" href="style.css">
</head>
<body>
  <!-- The reservation panel of Velde, a made-up Swiss watchmaker from La Chaux-de-Fonds. The panel slides in from the
       right; the Meridian 38 turns when you drag it sideways, changes dial colour by leaving to the left and coming
       back from the right, the currency list opens and the price rolls digit by digit, and Reserve becomes
       Reservation received. -->
  <main class="palco" data-palco>
    <div class="griglia" aria-hidden="true"></div>
    <div class="fondo-testo" aria-hidden="true">
      <p class="marchio">Velde</p>
      <p class="etichetta">[ Meridian 38 ]</p>
    </div>
    <button class="apri" type="button" data-apri aria-haspopup="dialog">
      <span class="apri-faccia"><span class="mono">[+]</span> Reserve</span>
    </button>
    <div class="velo" data-velo aria-hidden="true"></div>

    <section class="pannello" data-pannello role="dialog" aria-modal="false" aria-labelledby="titolo">
      <header class="testa">
        <div>
          <p class="mono piccolo">[ Your timepiece ]</p>
          <h1 id="titolo">Reserve your Meridian</h1>
        </div>
        <button class="chiudi mono" type="button" data-chiudi aria-label="Close the panel">[X] Close</button>
      </header>

      <div class="vetrina" data-vetrina>
        <div class="ombra" data-ombra aria-hidden="true"></div>
        <div class="orologio" data-orologio>
          <svg class="cassa" data-cassa viewBox="0 0 200 240" role="img" aria-label="Velde Meridian 38 watch">
            <defs>
              <radialGradient id="raggi" cx="50%" cy="42%" r="62%">
                <stop offset="0" stop-color="#fff" stop-opacity=".34"/>
                <stop offset=".55" stop-color="#fff" stop-opacity=".06"/>
                <stop offset="1" stop-color="#000" stop-opacity=".28"/>
              </radialGradient>
              <linearGradient id="acciaio" x1="0" y1="0" x2="1" y2="1">
                <stop offset="0" stop-color="#f7f7f5"/>
                <stop offset=".45" stop-color="#b9bcc0"/>
                <stop offset=".7" stop-color="#e9eaeb"/>
                <stop offset="1" stop-color="#8d9196"/>
              </linearGradient>
              <linearGradient id="anse" x1="0" y1="0" x2="1" y2="0">
                <stop offset="0" stop-color="#9fa3a8"/>
                <stop offset=".5" stop-color="#eef0f1"/>
                <stop offset="1" stop-color="#8b8f94"/>
              </linearGradient>
              <linearGradient id="cinturino" x1="0" y1="0" x2="1" y2="0">
                <stop offset="0" stop-color="#20262b"/>
                <stop offset=".5" stop-color="#3a4249"/>
                <stop offset="1" stop-color="#1b2024"/>
              </linearGradient>
              <linearGradient id="luce" x1="0" y1="0" x2="0" y2="1">
                <stop offset="0" stop-color="#fff" stop-opacity=".55"/>
                <stop offset="1" stop-color="#fff" stop-opacity="0"/>
              </linearGradient>
              <clipPath id="quadrante-clip"><circle cx="100" cy="120" r="57"/></clipPath>
            </defs>
            <!-- strap and lugs -->
            <path d="M74 0h52v52H74z" fill="url(#cinturino)"/>
            <path d="M74 188h52v52H74z" fill="url(#cinturino)"/>
            <g stroke="#ffffff" stroke-opacity=".14" stroke-width=".6" stroke-dasharray="2 2.6" fill="none">
              <path d="M78 0v50M122 0v50M78 190v50M122 190v50"/>
            </g>
            <path d="M70 44c2-8 8-10 14-10h32c6 0 12 2 14 10l4 20H66z" fill="url(#anse)"/>
            <path d="M70 196c2 8 8 10 14 10h32c6 0 12-2 14-10l4-20H66z" fill="url(#anse)"/>
            <!-- crown -->
            <rect x="170" y="112" width="9" height="16" rx="2.2" fill="url(#anse)"/>
            <path d="M172 113.5v13M174.2 113.5v13M176.4 113.5v13" stroke="#7d8186" stroke-width=".7"/>
            <!-- case -->
            <circle cx="100" cy="120" r="72" fill="url(#acciaio)"/>
            <circle cx="100" cy="120" r="72" fill="none" stroke="#6f7378" stroke-opacity=".5" stroke-width=".8"/>
            <!-- bezel that turns -->
            <g data-lunetta>
              <circle cx="100" cy="120" r="66.5" fill="none" stroke="#2a2f34" stroke-width="9"/>
              <g data-tacche stroke="#e6e7e8" stroke-linecap="round"></g>
              <path d="M100 55.2l-3 4.8h6z" fill="var(--accento)"/>
            </g>
            <circle cx="100" cy="120" r="61.8" fill="none" stroke="#c9cccf" stroke-width="1.4"/>
            <!-- dial -->
            <g clip-path="url(#quadrante-clip)">
              <circle cx="100" cy="120" r="57" fill="var(--quadrante)" data-quadrante/>
              <circle cx="100" cy="120" r="57" fill="url(#raggi)"/>
              <g data-raggiera stroke="#fff" stroke-opacity=".05" stroke-width=".5"></g>
            </g>
            <g data-minuteria stroke="#f2f2ee" stroke-opacity=".55" stroke-width=".55"></g>
            <g data-indici fill="#f4f3ef"></g>
            <text x="100" y="95" text-anchor="middle" class="logo-quadrante">VELDE</text>
            <text x="100" y="101.5" text-anchor="middle" class="sotto-quadrante">SWISS · MERIDIAN 38</text>
            <!-- date window -->
            <rect x="133.5" y="114.5" width="12" height="11" rx="1.2" fill="#f7f6f1" stroke="#a9adb1" stroke-width=".6"/>
            <text x="139.5" y="122.6" text-anchor="middle" class="data" data-data>3</text>
            <!-- small seconds -->
            <circle cx="100" cy="146" r="11" fill="#000" fill-opacity=".14"/>
            <circle cx="100" cy="146" r="11" fill="none" stroke="#fff" stroke-opacity=".25" stroke-width=".5"/>
            <g data-sec-tacche stroke="#fff" stroke-opacity=".5" stroke-width=".5"></g>
            <line data-secondi x1="100" y1="148" x2="100" y2="136.5" stroke="var(--accento)" stroke-width=".9" stroke-linecap="round"/>
            <circle cx="100" cy="146" r="1.2" fill="var(--accento)"/>
            <!-- hands -->
            <g data-ore>
              <path d="M97.6 124 L98.6 88 Q100 84.6 101.4 88 L102.4 124 Z" fill="#eceeef" stroke="#8d9196" stroke-width=".4"/>
              <path d="M99.3 112 L99.4 92 Q100 90 100.6 92 L100.7 112 Z" fill="#dfe9d9"/>
            </g>
            <g data-minuti>
              <path d="M98.3 126 L99.2 70 Q100 67 100.8 70 L101.7 126 Z" fill="#eceeef" stroke="#8d9196" stroke-width=".4"/>
              <path d="M99.5 112 L99.6 74 Q100 72.4 100.4 74 L100.5 112 Z" fill="#dfe9d9"/>
            </g>
            <circle cx="100" cy="120" r="3.1" fill="#d5d8db" stroke="#80858a" stroke-width=".5"/>
            <circle cx="100" cy="120" r="1" fill="#6b7075"/>
            <!-- glass light that moves with the drag -->
            <g clip-path="url(#quadrante-clip)">
              <path data-luce d="M48 96 C66 64 120 54 150 74 L150 84 C118 66 72 74 52 104 Z" fill="url(#luce)" opacity=".5"/>
            </g>
            <circle cx="100" cy="120" r="57" fill="none" stroke="#000" stroke-opacity=".25" stroke-width="1.2"/>
          </svg>
        </div>
        <p class="trascina mono" data-trascina aria-hidden="true">[ Drag ]</p>
      </div>

      <div class="scelte">
        <div class="colori" role="radiogroup" aria-label="Dial colour">
          <button class="colore" type="button" role="radio" aria-checked="true" data-colore="0" style="--c:#636d90"><span class="tondo"></span><span class="nome-colore">Slate</span></button>
          <button class="colore" type="button" role="radio" aria-checked="false" data-colore="1" style="--c:#265d44"><span class="tondo"></span><span class="nome-colore">Forest</span></button>
          <button class="colore" type="button" role="radio" aria-checked="false" data-colore="2" style="--c:#262626"><span class="tondo"></span><span class="nome-colore">Onyx</span></button>
        </div>

        <div class="prezzo-riga">
          <div class="valuta" data-valuta>
            <button class="valuta-tasto mono" type="button" data-valuta-tasto aria-haspopup="listbox" aria-expanded="false">
              <span data-valuta-nome>CHF</span>
              <span class="freccia"><svg viewBox="0 0 12 12" aria-hidden="true"><path d="M3 4.6 6 7.6l3-3"/></svg></span>
            </button>
            <ul class="valuta-lista mono" data-valuta-lista role="listbox" aria-label="Currency">
              <li><button type="button" role="option" data-v="CHF" aria-selected="true">CHF</button></li>
              <li><button type="button" role="option" data-v="USD" aria-selected="false">USD</button></li>
              <li><button type="button" role="option" data-v="EUR" aria-selected="false">EUR</button></li>
              <li><button type="button" role="option" data-v="GBP" aria-selected="false">GBP</button></li>
            </ul>
          </div>
          <p class="prezzo" data-prezzo aria-live="polite"></p>
        </div>

        <button class="prenota" type="button" data-prenota>
          <span class="prenota-dentro">
            <span class="prenota-faccia" data-faccia-a>Reserve</span>
            <span class="prenota-faccia fatto" data-faccia-b aria-hidden="true">
              <svg viewBox="0 0 16 16" aria-hidden="true"><path data-spunta pathLength="1" d="M3.4 8.4 6.6 11.4 12.8 4.8"/></svg>
              Reservation received
            </span>
          </span>
        </button>
        <p class="nota mono">Reserving takes no payment. The atelier will write to you.</p>
      </div>
    </section>
  </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.

39 values to change

Works with Claude, Claude Code, ChatGPT, Cursor, VS Code, Windsurf, Codex, Gemini CLI

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 reservation panel” 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 grey ground with a grid of hairlines sit the Velde wordmark and a «[+] Reserve» pill. From the right comes the light panel with a soft shadow: at the top «[ Your timepiece ]», the title «Reserve your Meridian» and «[X] Close» in typewriter letters. In the middle the drawn Meridian 38: steel case, black bezel with its marks, sunburst dial, baton indices, hands with lume, small seconds that really turn, a date window with today's date. Dragging it sideways turns the bezel, slides the light across the glass, leans the watch by a few degrees and shifts the shadow; let go and it carries on with inertia. When the pointer passes, a «[ Drag ]» label follows it with a slight lag. Below, three colour pills, Slate, Forest and Onyx: picking one sends the watch out to the left and back in from the right with the new dial. The currency pill opens a list with CHF, USD, EUR and GBP, and the price changes digit by digit, each in its own rolling column. The blue-grey «Reserve» button turns black with «Reservation received» and a check that draws itself.

How it works

The panel from the right

The panel starts at xPercent 100 plus 24 pixels, off screen, and reaches zero in 1 second with power2.out; the dark veil behind rises in 0.5 seconds. Closing sends it back out in 0.6 seconds with power2.in. The rows inside rise by 14 pixels, 0.06 seconds apart.

One number for the turn

Dragging writes a single value, from 0 to 1 per turn: the pointer's distance divided by 80% of the window width. From that value come the bezel rotation, the light on the glass, the lean through a sine and the shift of the shadow; on release, the speed of the last moves carries on for 1.1 seconds with power3.out.

The label that follows

«[ Drag ]» moves with two quickTo of 0.25 seconds and power2.out, so it trails slightly behind the pointer; pressing shrinks it to 0.88 and letting go brings it back with a bounce.

The colour leaves and returns

The watch goes to xPercent -100 in 0.5 seconds with power1.in, the dial variable changes halfway, then it starts again from xPercent 100 and arrives in 1 second with power2.out; the shadow fades out and back.

The price in columns

Each digit is a column from 0 to 9 inside a window one line tall: it moves by yPercent minus ten times the digit, with back.out(1.25) and 0.05 seconds between columns, right to left. The currency list opens to its natural height in 0.4 seconds with power3.out and closes in 0.3 with power2.inOut.

Values to change

NameFileDefaultWhat it changes
PANEL_INscript.js1Seconds for the panel to slide in from the right.
PANEL_OUTscript.js0.6Seconds for the panel to slide out.
TURN_WIDTHscript.js0.8How much of the window width makes one full turn.
TILTscript.js7How many degrees the watch leans while it turns.
SWAP_OUTscript.js0.5Seconds for the old dial to leave to the left.
SWAP_INscript.js1Seconds for the new dial to come in from the right.
ROLLscript.js0.7Seconds for each digit of the price to roll.
ACCENTscript.js#bdc4d4The accent: the bezel triangle, the small seconds and the check.

Try them in the Playground

When to use it

For the page of a luxury or limited-edition product, a configurator (watches, jewellery, bikes, eyewear), a reservation or register-interest panel instead of a cart, or a shop that sells in several currencies.

On phones

The panel takes the full width minus 12 pixels a side and the full height; the watch is sized on the height left between the title and the choices, so it fits in a short box too. Below 460 pixels of height the note and the label above the title go away. With a finger you drag the same way; the «Drag» label only follows the mouse.

With reduced motion

The panel and the veil fade in, the dial changes with a fade in place, the price and currency change at once, the list opens without motion and the turn has no inertia; the hands still keep the time.

Pitfalls

  • The bezel and the light live inside the svg: they turn with svgOrigin at the true centre of the case in the viewBox (100 120); the whole svg, which leans, turns with transformOrigin 50% 50%, never with svgOrigin.
  • The two button labels sit on top of each other with position absolute and inset 0: «Reservation received», longer and nowrap, does not widen the button or push the check off centre.
  • The price always has the same number of digits in every currency, so the columns are reused; if it changed, they are rebuilt without animation.
  • A button pressed by the autopilot gets the premuto class, not a GSAP tween: the CSS transition on transform would make every GSAP frame lag.
  • The autoRound line at the top: without it GSAP rounds the check's strokeDashoffset and it appears all at once.

Libraries

GSAP 3.15.0, Manrope (font variabile) 5.3.0, Red Hat Mono (font variabile) 5.3.0.

Compressed with gzip, the three demo files weigh 11 KB; the libraries: GSAP 28 KB.

Testing

Tested on 3 December 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