
The elastic button
Buttons, Hover, Text
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.
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>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
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 siteThe 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.
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 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.
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.
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.
| Name | File | Default | What it changes |
|---|---|---|---|
ACCENT | script.js | #c9a46c | The brass of the booked time. |
LABEL | script.js | Book a chair | The button’s words at rest. |
SLOT | script.js | Sat 11:00 | The time the scissors leave behind. |
NOTE | script.js | Marlow Barbers · Theo · 45 min | The small line under the button. |
NOTE_BUSY | script.js | Holding Theo’s chair | The line below while the scissors cut. |
NOTE_DONE | script.js | Confirmed · reminder set | The line below once the chair is booked. |
SNIPS | script.js | 4 | How many snips it takes to cross the pill. |
OPEN | script.js | 24 | How far the blades open, in degrees. |
SPRING | script.js | 1 | How springy the pill and the disc are: 0.4 calm, 2 very bouncy. |
SPEED | script.js | 1 | The speed of everything: 2 twice as fast, 0.5 half. |
HOLD | script.js | 2.2 | How many seconds it stays booked when the button plays by itself. |
AUTO | script.js | true | The button plays the gesture by itself until someone touches 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 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.
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.
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.
Tested on 10 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.