Skip to content
animorio
IT
All components

Housekeeping request button

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

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.

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>
<!--
  "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">&middot;</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 &middot; Room <span data-room>412</span> &middot; Towels and a made bed</span>
        <span class="note__line" data-n="done">We will knock first &middot; 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>

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.

24 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 “Housekeeping request button” 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 white ground sits the dark Request housekeeping pill with, on the left, a little window holding a folded, slightly tilted towel: cream terry with fine ribs, a woven champagne band near the hem and a soft shadow underneath. Under the pill, the grey line with the hotel, the room number and what is being asked. On hover the pill’s shell swells a few pixels on a spring, the label widens on the wdth axis, a warm light follows the pointer and the towel straightens and lifts a pixel, as if picked up; pressed, the pill squashes slightly. On the tap the label becomes Folding fresh towels and the window grows with a bounce: the top fold lifts, the right half opens and the whole towel, twice as wide, shakes from the top like fresh linen while a light runs over it. Then it folds again: the right half stands up, darkens as it does and lays down on the left; the top half does the same onto the bottom, the shadow narrows with it, the towel presses down a pixel and a champagne paper band drops round it with a bounce. The window closes on the banded towel, the pill warms by a shade with a thread of light on its rim, swells a hair, a sheen crosses it and the label says Housekeeping · Today 14:00; the line below becomes We will knock first · Tap again to cancel. Another tap cancels: the band slides down and the towel lies back at its tilt with a small sway.

How it works

Two towels that look like one

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

Front and back faces

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.

The fold that catches shadow

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 and the band

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.

Values to change

NameFileDefaultWhat it changes
TIMEscript.js"Today 14:00"When housekeeping will come, written in the pill once requested.
ROOMscript.js412The room number, in the line under the pill.
FOLDscript.js0.38The seconds of each fold of the towel.
SHAKEscript.js1How much the open towel shakes, like fresh linen.
TILTscript.js7How many degrees the folded towel is tilted at rest.
BOUNCEscript.js1.5How much the pill, the label and the band bounce.
MIN_HOLDscript.js2.4The minimum seconds the autopilot leaves the finished request in view.
--champagnestyle.css#ecd5a4The colour of the time and of the woven band’s light.
--telostyle.css#f3ede1The cream of the towel’s terry.

Try them in the Playground

When to use it

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.

On phones

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.

With reduced motion

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.

Pitfalls

  • The bottom half of the half towel had top: 12px, but the faces rule (inset: 0) came later and put it back at the top: at rest you saw two half towels stacked instead of one folded towel. It needs a stronger selector.
  • To fold towards the viewer the rotations must be negative (rotationY -180 for right over left, rotationX -180 for top over bottom): with the CSS y axis pointing down, the positive sign folds away.
  • Front and back halves rounded on every side left a cut down the middle of the open towel: corners are rounded only on the outer edges.
  • The autopilot clicks every 2.8 seconds, and without MIN_HOLD the next click cancelled the request before the time could be read.

Libraries

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.

Testing

Tested on 16 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 components