
The inchworm menu
Menus, Hover, Transitions
The button to ask for the room to be made up in a made-up hotel, the Hotel Verenne: fresh towels and a made bed, asked for from the phone. In the little window of the dark pill sits a folded terry towel, cream with a woven champagne band. On the tap the window grows on a spring, the towel opens out (first the top fold, then the right half), gets a shake like fresh linen and a light passes over it; then it folds itself again, right over left and top over bottom, the moving half darkening as it stands up, presses down by a pixel and a champagne paper band wraps round it. The pill warms by a shade and says Housekeeping · Today 14:00. Another tap cancels: the band slides off and the towel lies back at its tilt.
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>
<!--
"Housekeeping request button" 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 Request housekeeping button with the towel that folds itself and the paper band</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">
<!-- one gesture: ask for the room to be made up. Pressed, the little folded towel in the pill opens out,
gets a shake like fresh linen, then folds itself crisply in half and in half again; a champagne paper band
wraps it and the pill says when housekeeping will come. Another press takes the request back -->
<div class="frame" data-wrap>
<button class="k" type="button" data-btn data-autoclic aria-describedby="k-note">
<span class="k__shell" data-shell aria-hidden="true">
<span class="k__skin"></span>
<span class="k__done" data-donebg></span>
<span class="k__glow" data-glow></span>
<span class="k__sheen" data-sheen></span>
<span class="k__grain"></span>
<span class="k__rim" data-rim></span>
</span>
<span class="k__win" data-win aria-hidden="true">
<span class="tw" data-towel>
<span class="tw__shadow" data-shadow></span>
<span class="tw__tilt" data-tilt>
<!-- the sheet open, folding right over left -->
<span class="tw__a" data-a>
<span class="face face--front tw__al"></span>
<span class="tw__ar" data-ar>
<span class="face face--front"></span>
<span class="face face--back"></span>
<span class="tw__dim" data-dim1></span>
</span>
</span>
<!-- the half sheet, folding top over bottom -->
<span class="tw__b" data-b>
<span class="face face--back tw__bb"></span>
<span class="tw__bt" data-bt>
<span class="face face--back face--top"></span>
<span class="face face--back face--under"></span>
<span class="tw__dim" data-dim2></span>
</span>
</span>
<span class="tw__band" data-band></span>
<span class="tw__sheen" data-tsheen></span>
</span>
</span>
</span>
<span class="k__labels" data-labels>
<span class="k__label" data-l="idle">Request housekeeping</span>
<span class="k__label" data-l="wait">Folding fresh towels</span>
<span class="k__label" data-l="done">Housekeeping<span class="k__sep">·</span><span class="k__sum" data-time>Today 14:00</span></span>
</span>
</button>
<p class="note" id="k-note" aria-live="polite">
<span class="note__line" data-n="idle">Hotel Verenne · Room <span data-room>412</span> · Towels and a made bed</span>
<span class="note__line" data-n="done">We will knock first · Tap again to cancel</span>
</p>
</div>
</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.
24 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 “Housekeeping request button” from Animorio and fit it into my siteThe two folds are two different builds: the open towel (the left half still, the right half turning with rotationY around its left edge) and the half towel (the bottom half still, the top half turning with rotationX around its bottom edge). Between the folds the script swaps the two builds with visibility in the same frame: they show the same face in the same place, so the swap cannot be seen.
Each turning half has two faces with backface-visibility hidden, the back one already turned 180 degrees and a warmer cream: the terry is a fine-ribbed repeating-linear-gradient, the woven band a linear-gradient with stops in pixels. The parent has perspective: 80px, so the half that stands up grows towards the viewer.
Inside the turning half sits a dark veil with opacity keyframes 0, 0.5, 0.05: darkest while the half stands edge-on to the light, almost clear again as it lays down. The shadow underneath narrows with scaleX together with the towel.
The shake is skewY and scaleY keyframes on the tilted element, with the origin at the top like a cloth held by its corners. The band is a rectangle with a brass gradient and two threads of light on its sides, dropping with scaleY from the top on a back.out; on cancel the origin moves to the bottom and it slides away.
| Name | File | Default | What it changes |
|---|---|---|---|
TIME | script.js | "Today 14:00" | When housekeeping will come, written in the pill once requested. |
ROOM | script.js | 412 | The room number, in the line under the pill. |
FOLD | script.js | 0.38 | The seconds of each fold of the towel. |
SHAKE | script.js | 1 | How much the open towel shakes, like fresh linen. |
TILT | script.js | 7 | How many degrees the folded towel is tilted at rest. |
BOUNCE | script.js | 1.5 | How much the pill, the label and the band bounce. |
MIN_HOLD | script.js | 2.4 | The minimum seconds the autopilot leaves the finished request in view. |
--champagne | style.css | #ecd5a4 | The colour of the time and of the woven band’s light. |
--telo | style.css | #f3ede1 | The cream of the towel’s terry. |
In the app or site of a hotel, a serviced apartment or a holiday home, on the page of the current stay: the guest asks for fresh towels and a made bed without calling the front desk, and the towel folding itself says in one gesture that the request has gone through.
The pill drops to 56 pixels and the label tightens by a point; the finger taps like the mouse. Without hover the shell does not swell and the towel does not straighten, but the folds are the same.
No towel opening and folding, no bounces: the window stays still, the label changes with a fade and the band fades in on the folded towel; on cancel it fades away.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 7.3 KB; the libraries: GSAP 28 KB.
Tested on 16 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.