Skip to content
animorio
IT
All components

Book a chair button

Buttons, HoverGSAP, CSS onlyMediumCompressed weight: Demo 6.0 KBGSAP 28 KBFreeDownload the zip

The black «Book a chair» button of an invented barbershop, alone on white: on the left a steel disc with a pair of scissors pointing at the words. On hover the blades part and a glint crosses the metal; on click the scissors cross the pill snip by snip, cutting «Book a chair» away and leaving the booked time behind them, «Sat 11:00 · Booked». At the far end the scissors turn into a check and the steel turns to brass.

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>
<!--
  "Book a chair 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 Book a chair button with the scissors cutting the label</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 button, one gesture: a pair of steel scissors snips its way across the pill, cutting the old words away and leaving the booked time behind -->
    <div class="chair" data-chair>
      <button class="chair__btn" type="button" data-btn aria-label="Book a chair" aria-pressed="false" data-autoclic>
        <span class="chair__body" data-body>
          <span class="chair__sheen" aria-hidden="true"></span>
          <span class="chair__trail" data-trail aria-hidden="true"></span>
          <span class="chair__label chair__label--ask" data-ask aria-hidden="true"><span class="chair__text" data-ask-text>Book a chair</span></span>
          <span class="chair__label chair__label--done" data-done aria-hidden="true"><span class="chair__text" data-done-text><span class="chair__day" data-day>Sat 11:00</span><span class="chair__sep"> · </span><span data-booked>Booked</span></span></span>
          <span class="chair__chip" data-chip aria-hidden="true">
            <span class="chair__steel"></span>
            <span class="chair__brass" data-brass></span>
            <span class="chair__glint" data-glint></span>
            <svg class="chair__icon" viewBox="0 0 24 24">
              <g class="chair__shears" data-shears>
                <g data-blade="a">
                  <path class="chair__blade" d="M10.4 12 C14 13.15 18 13.05 22 12 C18 12.35 14 12.3 10.4 12 Z"/>
                  <path class="chair__handle" d="M11 12 L7.25 9.55"/>
                  <circle class="chair__ring" cx="5.3" cy="8.1" r="2.35"/>
                </g>
                <g data-blade="b">
                  <path class="chair__blade" d="M10.4 12 C14 10.85 18 10.95 22 12 C18 11.65 14 11.7 10.4 12 Z"/>
                  <path class="chair__handle" d="M11 12 L7.25 14.45"/>
                  <circle class="chair__ring" cx="5.3" cy="15.9" r="2.35"/>
                </g>
                <circle class="chair__screw" cx="11" cy="12" r="0.95"/>
              </g>
              <path class="chair__check" data-check d="M7.4 12.3 10.5 15.3 16.8 8.8"/>
            </svg>
          </span>
        </span>
      </button>
      <p class="chair__note" aria-live="polite">
        <span class="chair__noteline" data-note="ask">Marlow Barbers · Theo · 45 min</span>
        <span class="chair__noteline" data-note="busy">Holding Theo’s chair</span>
        <span class="chair__noteline" data-note="done">Confirmed · reminder set</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.

25 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 “Book a chair 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 white, alone in the middle, there is a black pill 60 pixels tall reading «Book a chair» and, on its left, a brushed steel disc holding a pair of black scissors that point at the words; below it, a small grey line with the invented barbershop, the barber and the length, «Marlow Barbers · Theo · 45 min». On hover the pill leans in a touch, the blades part on a spring, the disc steps forward by three pixels and a narrow glint crosses the metal. On click the pill gives and comes back, the blades snap shut, and the scissors set off: they open on the spot and close as they move forward, four times, and at every snip the disc squashes slightly and the scissors jolt by half a pixel. Everything they leave behind is cut away from «Book a chair», and in its place «Sat 11:00 · Booked» is left, with the time in brass; behind the disc a warm light follows it. The line below reads «Holding Theo’s chair» while it cuts. At the other end the scissors fold away as they turn, the steel turns to brass, a check draws itself inside going a pixel too far and settling, the time taps down once and the line below becomes «Confirmed · reminder set». On a second click the check slides away, the brass goes back to steel, the scissors return and the disc slides back to the left in a single move, sewing the old words back in behind it. Until someone touches it, the button plays the gesture by itself.

How it works

One number for the whole cut

The disc’s position is a number from 0 to 1 animated by GSAP; on every frame render() turns it into the disc’s x and the two clip-paths of the labels, which sit on top of each other: «Book a chair» is clipped to the right of the disc’s right edge, the time to the left of its left edge. The disc sits in between, so the cut is never seen.

Open on the spot, close moving forward

Every snip is three overlapping tweens: the blades open in 150 milliseconds with power2.out, then close with power3.in while the disc moves on by a quarter with power2.inOut. The cut lands as the blades meet: there the disc squashes to 95% and the scissors drop half a pixel, then come back on an elastic.

The blades turn round the screw

The two halves of the scissors are two SVG groups sharing one svgOrigin, the screw at (11, 12): one turns by plus degrees, the other by minus. The blades are two filled arcs, the handles a line and a ring: closed, they overlap and read as a single object.

Steel and brass

The metal is a conic-gradient under a radial-gradient of light from the top left; the brass is the same drawing in other colours, on a layer above that goes from opacity 0 to 1. The hover glint is a soft-light band sliding with xPercent.

A pill as wide as it needs

The script works out the width from the longer of the two labels, measured with offsetWidth (which ignores the press scale), plus room for the disc at one end and the margin at the other; it is worked out again on resize and when the font arrives, even halfway through a cut, because everything comes from the same number.

Values to change

NameFileDefaultWhat it changes
ACCENTscript.js#c9a46cThe brass of the booked time.
LABELscript.jsBook a chairThe button’s words at rest.
SLOTscript.jsSat 11:00The time the scissors leave behind.
NOTEscript.jsMarlow Barbers · Theo · 45 minThe small line under the button.
NOTE_BUSYscript.jsHolding Theo’s chairThe line below while the scissors cut.
NOTE_DONEscript.jsConfirmed · reminder setThe line below once the chair is booked.
SNIPSscript.js4How many snips it takes to cross the pill.
OPENscript.js24How far the blades open, in degrees.
SPRINGscript.js1How springy the pill and the disc are: 0.4 calm, 2 very bouncy.
SPEEDscript.js1The speed of everything: 2 twice as fast, 0.5 half.
HOLDscript.js2.2How many seconds it stays booked when the button plays by itself.
AUTOscript.jstrueThe button plays the gesture by itself until someone touches it.

Try them in the Playground

When to use it

For the main button of the app or site of a barber, a hairdresser or a beauty studio: the gesture of the trade becomes the wait for the booking, and the time stays written on the button.

On phones

On the phone the pill stays 60 pixels tall and as wide as the longer label, never wider than the screen; there is no hover, so on tap the blades snap shut and the scissors set off at once.

With reduced motion

No travelling scissors and no springs: the disc and the words fade out and come back at the other end, already brass with the check, and the lines below swap with a fade.

Pitfalls

  • With a clip-path on the disc’s exact edge, for a frame a sliver of letter showed between the disc and the cut: both cuts sit two pixels under the disc, on either side.
  • The pill has to be measured with offsetWidth and not getBoundingClientRect: during the press it is at 96.5% and the label came out shorter, with its last letter under the disc on arrival.
  • If the mouse stayed on while the disc went home, the hover did not restart and the blades stayed shut: at the end of the return the hover state is applied again.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

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

Testing

Tested on 10 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