Skip to content
animorio
IT
All components

Raise hand button

Buttons, HoverGSAP, CSS onlyEasyCompressed weight: Demo 5.4 KBGSAP 28 KBFreeDownload the zip

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.

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>
<!--
  "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>

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.

11 values to change

Works with Claude, Claude Code, ChatGPT, Cursor, VS Code, Windsurf, Codex, Gemini CLI

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 “Raise hand 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, a light grey pill 60 pixels tall: a white disc with a drawn hand and “Raise hand”. Bring the pointer near and the hand tilts a little. Pressed, the pill gives and springs back, turns amber and widens; the hand rises, waves four times from the wrist and settles; the label rolls to “Hand raised”, “2 people ahead of you” appears below and on the right the discs with the initials of those ahead come in one after the other. Every two seconds or so whoever was speaking is done: their disc lifts and vanishes, the other slides into its place, the line below rolls to “1 person ahead of you” and the pill tightens. When no one is left the pill goes dark, the label says “You’re up”, an amber line runs one full lap round the edge and the hand gives a hop. A tap at any time lowers the hand: the pill goes back grey and narrow.

How it works

The hand waves from the wrist

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

The queue is a real list

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.

Three states, three variables

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.

The line that does a lap

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.

Values to change

NameFileDefaultWhat it changes
ACCENTscript.js#ffc531The button’s colour with the hand raised.
AHEADscript.js2How many people raised their hand first (0 to 3).
WAITscript.js2.2How many seconds until each person ahead is done speaking.
WAVEscript.js16How many degrees the hand waves by when it goes up.
LOOPscript.jstrueLeft alone, the demo’s pointer raises the hand, waits for its turn and lowers it.

Try them in the Playground

When to use 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.

On phones

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.

With reduced motion

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.

Pitfalls

  • The people in the queue and the timings are made up: in a real call the queue comes from the server and the button only shows it.
  • The queue is told in real numbers (“2 people ahead of you”), not as a rank: it is data, not decoration.
  • The hand tilting on approach and the waving hand share one element: earlier tweens are killed before the wave’s timeline starts, or the two rotations add up badly.
  • The line’s rectangle takes the pill’s measures at the moment of the turn, once the width is decided: measured earlier, it would lap a wider pill.

Libraries

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.

Testing

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