
The elastic button
Buttons, Hover, Text
The Raise hand button of a video call, on white: pressed, it turns amber, the hand goes up and waves from the wrist, and the people who raised theirs first appear beside it. They leave one by one; when your turn comes the pill goes dark and a line runs round it. Another tap lowers the hand.
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>
<!--
"Raise hand 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>Raise hand button</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 Raise hand button of a video call: the hand goes up and waves, the people ahead leave one by one,
and when it is your turn a line runs round the pill; press again to lower it -->
<button class="rh" type="button" data-rh aria-pressed="false">
<svg class="rh__ring" data-ring aria-hidden="true"><rect data-ring-rect pathLength="1"></rect></svg>
<span class="rh__disc" aria-hidden="true">
<span class="rh__wave" data-hand><svg class="rh__hand" viewBox="0 0 24 24">
<path class="rh__palm" d="M6.300 12.400h12.900v3.300a6.450 6.450 0 0 1-12.900 0Z"></path>
<path class="rh__fingers" d="M8 13V6.400M11.300 12.500V4.300M14.600 12.500V4.900M17.900 13V7.300M6.400 16.200 4.300 13.600"></path>
</svg></span>
</span>
<span class="rh__text">
<span class="rh__roll rh__label"><span data-label>Raise hand</span></span>
<span class="rh__roll rh__sub"><span data-sub></span></span>
</span>
<span class="rh__queue" data-queue aria-hidden="true"></span>
</button>
<p class="say" data-say aria-live="polite"></p>
<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.
11 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 “Raise hand button” from Animorio and fit it into my siteA wrapper round the svg turns, with its origin at 50% and 92%: the pivot sits where the wrist would be. A timeline lifts it, swings it back and forth on a sine and lets it settle on an elastic spring.
Each person ahead is an element: on leaving it lifts and fades, and the others move up a place with a small bounce. The pill’s width is recomputed from the number of discs left.
Ground, text and glow are CSS variables tweened together: grey at rest, amber while waiting, dark when it is your turn. The button is a real toggle, with aria-pressed, and the state is also read in an aria-live region.
An SVG rectangle with pathLength 1 and a dash a fifth of the edge long: taking stroke-dashoffset from 0.22 to −1 is enough for one lap. With autoRound off, or GSAP rounds it and the dash jumps.
| Name | File | Default | What it changes |
|---|---|---|---|
ACCENT | script.js | #ffc531 | The button’s colour with the hand raised. |
AHEAD | script.js | 2 | How many people raised their hand first (0 to 3). |
WAIT | script.js | 2.2 | How many seconds until each person ahead is done speaking. |
WAVE | script.js | 16 | How many degrees the hand waves by when it goes up. |
LOOP | script.js | true | Left alone, the demo’s pointer raises the hand, waits for its turn and lowers it. |
In the control bar of a video call, a webinar, an online class, an audio room: wherever you ask to speak. The same button suits joining any queue: support chat, a restaurant table, a service desk.
The same button by finger, 60 pixels tall; the widest pill, with two people ahead, is never wider than the screen. The hand’s tilt on approach exists only with a mouse.
The hand neither waves nor hops, the pill changes width and colour at once, the discs appear and vanish without moving and the line round the edge does not run. Labels and states stay the same.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 5.4 KB; the libraries: GSAP 28 KB.
Tested on 20 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.
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.