
The dash relief
WebGL, 3D, Hover
A made-up brand’s smartwatch in 3D: an aluminium case with soft sides, a curved glass that catches a band of light, a knurled crown with an orange ring. You spin it with a finger and it keeps going by inertia until a spring brings it back to face you; a tap on the screen or a turn of the crown changes the watch face (analogue, activity rings, time and weather) and the swatches below change the band with a small snap. Morphin style with Libraries.dev light.
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>
<!--
"Spinning smartwatch" 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>Kairn One</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/mona-sans@5.3.0/index.css">
<link rel="stylesheet" href="style.css">
<script type="importmap">
{ "imports": {
"three": "https://cdn.jsdelivr.net/npm/three@0.178.0/build/three.module.min.js",
"three/addons/": "https://cdn.jsdelivr.net/npm/three@0.178.0/examples/jsm/"
} }
</script>
</head>
<body>
<!-- a made-up brand, Kairn, and its watch in 3D: drag spins it with inertia and a spring brings it back to face you,
a tap on the screen or a turn of the crown changes the watch face, the swatches change the band -->
<main class="palco" data-palco>
<header class="testa" data-testa>
<span class="etichetta">Kairn One</span>
<span class="sotto"><span class="rullo" data-quadrante>Essential</span></span>
</header>
<div class="scena" data-scena>
<canvas class="tela" data-tela role="img" aria-label="A smartwatch turning in 3D, with three watch faces and four band colours"></canvas>
<!-- if WebGL is missing: a flat watch -->
<div class="ripiego" data-ripiego aria-hidden="true"><span>10:09</span></div>
</div>
<div class="piede" data-piede>
<div class="cinturini" role="radiogroup" aria-label="Band colour">
<button class="campione attivo" type="button" role="radio" aria-checked="true" data-cinturino="0" aria-label="Fog band"><span style="--c: var(--fog)"></span></button>
<button class="campione" type="button" role="radio" aria-checked="false" data-cinturino="1" aria-label="Clay band"><span style="--c: var(--clay)"></span></button>
<button class="campione" type="button" role="radio" aria-checked="false" data-cinturino="2" aria-label="Moss band"><span style="--c: var(--moss)"></span></button>
<button class="campione" type="button" role="radio" aria-checked="false" data-cinturino="3" aria-label="Ink band"><span style="--c: var(--ink)"></span></button>
</div>
<p class="nome-cinturino"><span class="rullo" data-nome-cinturino>Fog sport band</span></p>
</div>
<!-- the fake pointer of the autopilot -->
<svg class="puntatore" data-puntatore viewBox="0 0 24 24" aria-hidden="true">
<path d="M5 3l14 8-6.2 1.6L10 19z"/>
</svg>
</main>
<script src="https://cdn.jsdelivr.net/npm/gsap@3.15.0/dist/gsap.min.js"></script>
<script type="module" 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.
22 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 “Spinning smartwatch” from Animorio and fit it into my siteThe case is an ExtrudeGeometry of a rounded rectangle with a wide bevel, in an aluminium with metalness 1 and RoomEnvironment’s room as the reflection. The glass is the same shape, thinner, in a transparent MeshPhysicalMaterial with clearcoat; on top sits an additive blended plane with a band of light drawn on a canvas, which slides with the texture offset as the watch turns.
The screen is a ShapeGeometry with its UVs remapped from 0 to 1 and a 720 pixel CanvasTexture, redrawn every frame while it changes and four times a second at rest. Each face is a function that takes the time and an appearance from 0 to 1: the change draws both, one leaving and one arriving, with a crossfade and a vertical slide.
Dragging adds degrees to the spin and keeps an average of the speed; on release the speed, capped at MAX_SPIN, decays with exp(-FRICTION·dt) and below 160 degrees per second a spring of stiffness SPRING takes it to the nearest multiple of 360. A click without movement casts a ray: if it hits the crown it turns it, if it hits the screen or the glass it changes the face; the wheel and the arrow keys turn the crown too.
Each half of the band is three RoundedBoxGeometry pieces in a row bending backwards, with a shared rubbery material: choosing a swatch moves the colour toward the new one and squeezes the band by 3.5 percent, which comes back with an elastic return.
| Name | File | Default | What it changes |
|---|---|---|---|
TILT | script.js | 12 | How many degrees the watch leans toward the pointer. |
FRICTION | script.js | 1.8 | How fast a thrown spin slows down (higher = sooner). |
MAX_SPIN | script.js | 900 | The fastest spin a throw can give, in degrees per second. |
SPRING | script.js | 60 | How firm the spring that brings it back to face you is. |
GLARE | script.js | 1 | How bright the band of light on the glass is. |
IDLE_SWAY | script.js | 1 | How much the watch sways by itself at rest (0 = still). |
AUTO_PILOT | script.js | 1 | 1 shows the gestures with a fake pointer when nobody touches the watch, 0 turns it off. |
For the page of a smartwatch, a fitness tracker or another wrist piece: in an electronics shop or a product launch page, where you want people to turn it in their hand, try the colours and see what the screen shows.
The same watch, smaller: it spins as you drag with a finger, a tap on the screen or the crown changes the face, and the swatches stay below within thumb reach.
The watch stays still, slightly tilted, without sway or spring: dragging brings it straight back to face you, and faces and bands change without sliding or snapping.
Three.js 0.178.0, GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 14 KB; the libraries: GSAP 28 KB, Three.js + RoomEnvironment 176 KB.
Tested on 28 October 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.