
The star rating
Ratings, SVG, Hover
The control of a height-adjustable desk, in a card on white: on the right a vertical rail to drag, which is the height you ask for; in the middle the desk drawn in lines, with its oak top, screen and cup, catching up at the speed of its motor and settling with a small bounce; on the left the centimetres counting. Two presets, “Sit” and “Stand”, and a pill saying whether you are sitting, standing or moving. Let go of the handle within two centimetres of a preset and it snaps onto it.
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>
<!--
"Standing desk control" 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>Standing desk control</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">
<!-- the control of a height-adjustable desk: a vertical slider is the height you ask for, the desk drawn in
lines catches up at the speed of its motor and settles; two presets, sit and stand -->
<section class="sd" data-sd aria-label="Standing desk">
<header class="sd__head">
<div class="sd__what"><strong>Oak desk</strong><span>Studio, by the window</span></div>
<span class="sd__pill" data-pill><span class="sd__clip"><span data-outpill>Sitting</span></span></span>
</header>
<div class="sd__mid">
<div class="sd__read">
<span class="sd__label">Height</span>
<strong class="sd__big"><b data-outh>72</b><i>cm</i></strong>
<span class="sd__clip sd__clip--goal"><span data-outgoal>Sit preset</span></span>
</div>
<svg class="sd__desk" viewBox="0 0 150 130" aria-hidden="true">
<ellipse class="sd__shade" data-shade cx="75" cy="124" rx="56" ry="3"></ellipse>
<path class="sd__floor" d="M6 123.500h138"></path>
<rect class="sd__inner" data-inner x="33.500" y="72" width="5" height="50"></rect>
<rect class="sd__inner" data-inner x="111.500" y="72" width="5" height="50"></rect>
<rect class="sd__outer" x="31" y="84" width="10" height="36" rx="2"></rect>
<rect class="sd__outer" x="109" y="84" width="10" height="36" rx="2"></rect>
<path class="sd__foot" d="M22 121.500h28M100 121.500h28"></path>
<g data-top>
<g data-screen>
<rect class="sd__screen" x="52" y="-31" width="46" height="26" rx="3"></rect>
<path class="sd__stand" d="M75 -5v5M66 -0.800h18"></path>
</g>
<path class="sd__cup" d="M110 -9.500v6.500a2 2 0 0 0 2 2h4a2 2 0 0 0 2 -2v-6.500z"></path>
<rect class="sd__board" x="10" y="0" width="130" height="6.500" rx="3.250"></rect>
<rect class="sd__beam" x="26" y="6.500" width="98" height="3.500" rx="1.500"></rect>
</g>
</svg>
<div class="sd__rail" data-rail role="slider" tabindex="0" aria-orientation="vertical" aria-label="Desk height" aria-valuemin="62" aria-valuemax="127" aria-valuenow="72" aria-valuetext="72 centimetres">
<i class="sd__fill" data-fill></i>
<i class="sd__mark" data-mark="sit"></i>
<i class="sd__mark" data-mark="stand"></i>
<span class="sd__knob" data-knob><i></i></span>
</div>
</div>
<div class="sd__presets">
<button type="button" class="sd__preset" data-preset="sit" aria-pressed="true"><strong>Sit</strong><span data-outsit>72 cm</span></button>
<button type="button" class="sd__preset" data-preset="stand" aria-pressed="false"><strong>Stand</strong><span data-outstand>112 cm</span></button>
</div>
<p class="sd__footline"><span class="sd__clip"><span data-outfoot>Sitting for 48 min. Time to stand</span></span></p>
</section>
<span class="live" aria-live="polite" data-live></span>
<svg class="ghost" data-ghost viewBox="0 0 24 24" aria-hidden="true"><path d="M5 3.200 19.200 11l-6.300 1.600-3.300 5.900Z"></path></svg>
</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.
23 values to change
Works with Claude, Claude Code, ChatGPT, Cursor, VS Code, Windsurf, Codex, Gemini CLI
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 “Standing desk control” from Animorio and fit it into my siteThe one asked for (the handle) and the real one (the desk). The handle goes at once where you put it; the desk reaches it in a time that is the distance divided by the motor’s speed.
From the real height come the y of the top, the height of the inner legs reaching the floor, the width of the shadow and the centimetres written.
At the end of the trip the top goes a pixel and a half too far and springs back, and the screen turns two degrees around its stand and comes to rest.
The two buttons ask for a height just as the handle would. Let it go two centimetres or less from a preset and the handle lands on it.
| Name | File | Default | What it changes |
|---|---|---|---|
ACCENT | script.js | #2f6fed | The colour of standing: the pill, the chosen preset, the fill of the rail. |
SIT | script.js | 72 | The sitting height, in centimetres (62 to 127). |
STAND | script.js | 112 | The standing height, in centimetres (62 to 127). |
SPEED | script.js | 38 | How many centimetres a second the desk’s motor does. |
LOOP | script.js | true | Left alone, the demo’s pointer raises the desk, adjusts it by hand and lowers it again. |
In the app of a motorised desk or an office furniture brand, in a smart home panel, on a product page that lets you try the control; the same pattern, what is asked and the real thing catching up, carries a roller shutter, a blind, an adjustable bed, a car seat back or a room’s volume.
The card is at most 348 pixels wide and about 300 tall. The rail is 30 pixels wide and 130 tall, all of it touchable, with `touch-action: none` so dragging does not scroll the page. Under 350 pixels the desk drawing narrows to 132 and the number goes down to 38 pixels.
No trip or bounces: handle, desk and centimetres go straight to the height asked for and the texts change without rolling. The demo’s pointer does not start.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 7.1 KB; the libraries: GSAP 28 KB.
Tested on 3 December 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.
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.