Skip to content
animorio
IT
All components

Volunteer shift sign-up

Lists, HoverGSAP, CSS onlyMediumCompressed weight: Demo 5.3 KBGSAP 28 KBFreeDownload the zip

The shifts of a food drive that need covering: every row has the job, the time, the places already taken by avatars and the free ones. With “Sign up” your avatar drops into the first free place and settles, the row takes on colour, the button becomes “You’re in” with a tick and at the top the count of places left goes down by one.

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>
<!--
  "Volunteer shift sign-up" 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>Volunteer shifts</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 volunteer shifts of a charity's food drive: every shift shows who is in and the places
         still open; Sign up drops your avatar into the free place and the count of places goes down -->
    <section class="vs" data-vs aria-label="Volunteer shifts">
      <header class="vs__head"><span class="vs__title"><strong>Saturday food drive</strong><span>Riverside Hall, 6 December</span></span><span class="vs__left"><span class="vs__roll"><b data-outleft>3</b></span><span data-outword>places left</span></span></header>
      <ul class="vs__list">
        <li class="vs__row" data-row data-size="4" data-in="AK:#f2b84b,MO:#7cc6a4,JS:#9db4f5">
          <span class="vs__what"><strong>Sorting donations</strong><span>9:00 to 11:00</span></span>
          <span class="vs__slots" data-slots></span>
          <button class="vs__btn" type="button" data-sign aria-pressed="false"><span class="vs__face" data-face="ask">Sign up</span><span class="vs__face" data-face="in"><svg viewBox="0 0 16 16" aria-hidden="true"><path pathLength="1" d="m3.600 8.300 2.900 2.900 5.900-6.500"></path></svg>You’re in</span><span class="vs__face" data-face="full">Full</span></button>
        </li>
        <li class="vs__row" data-row data-size="3" data-in="LE:#e58a7b">
          <span class="vs__what"><strong>Packing boxes</strong><span>11:00 to 13:00</span></span>
          <span class="vs__slots" data-slots></span>
          <button class="vs__btn" type="button" data-sign aria-pressed="false"><span class="vs__face" data-face="ask">Sign up</span><span class="vs__face" data-face="in"><svg viewBox="0 0 16 16" aria-hidden="true"><path pathLength="1" d="m3.600 8.300 2.900 2.900 5.900-6.500"></path></svg>You’re in</span><span class="vs__face" data-face="full">Full</span></button>
        </li>
        <li class="vs__row" data-row data-size="2" data-in="TN:#c9a4e8,RB:#8fd0d8">
          <span class="vs__what"><strong>Driving deliveries</strong><span>13:00 to 15:00</span></span>
          <span class="vs__slots" data-slots></span>
          <button class="vs__btn" type="button" data-sign aria-pressed="false"><span class="vs__face" data-face="ask">Sign up</span><span class="vs__face" data-face="in"><svg viewBox="0 0 16 16" aria-hidden="true"><path pathLength="1" d="m3.600 8.300 2.900 2.900 5.900-6.500"></path></svg>You’re in</span><span class="vs__face" data-face="full">Full</span></button>
        </li>
      </ul>
    </section>
    <span class="live" aria-live="polite" data-live></span>

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

27 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 “Volunteer shift sign-up” 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: “Saturday food drive”, the place and the day, and on the right “3 places left” with the number in orange. Below, three rounded rows. “Sorting donations”, from 9 to 11, has three coloured avatars with initials, one empty place and the dark “Sign up” button; “Packing boxes” has one person and two empty places; “Driving deliveries” is full and its button, grey, says “Full”. Tapping “Sign up” makes an orange “You” circle drop from above into the first free place, bounce and stop exactly on the empty ring; the row takes a pale orange background and border, the button squeezes, turns orange and shows “You’re in” with its tick drawing itself, and at the top the number of places rolls from 3 to 2. A second shift is taken the same way, and when a single place is left the words become “place left”. Tapping “You’re in” sends your avatar back up and away, and the place is free again.

How it works

The script writes the places

Every row says in the HTML how many places it has and who is already in. The script draws a ring per place and puts an avatar on the taken ones: changing a shift only takes changing two attributes.

The falling avatar

Your avatar is born inside the first free place, already centred by CSS, and GSAP brings it in from above on a spring: at the end it is exactly on the ring, with no sums.

The count of places

The places left are the sum of the free places of all rows, worked out again on every tap: the number rolls down when you sign up and up when you leave.

Values to change

NameFileDefaultWhat it changes
ACCENTscript.js#e4572eThe colour of your avatar, of the shift you took and of the places count.
DROPscript.js26From how many pixels above your avatar drops.
SPRINGscript.js1How much the avatar and the button bounce.

Try them in the Playground

When to use it

On the site of a charity, a parish, a school or a festival looking for volunteers for an event; with other words it carries the slots of a residents’ meeting, the places on a course, the tables of a community dinner or who brings what to a party.

On phones

The list is at most 344 pixels wide and about 290 tall, and narrows with the screen: the shift’s name shortens with an ellipsis, the button stays 98 pixels wide and 40 tall. In a very short window the rows move closer. Everything is thumb-sized and nothing depends on hover.

With reduced motion

Your avatar appears already in its place, without dropping; the button cross-fades to its new words with the tick already drawn and the number of places changes without rolling. The demo’s pointer does not start.

Pitfalls

  • Every button is a real toggle (aria-pressed): a second tap leaves the shift. The one of a full shift is really disabled, not just grey.
  • The avatar is centred on its place by CSS and GSAP only moves where it starts from: this way it cannot stop off the ring.
  • A free place is not told by the empty ring alone: the count at the top and the button’s words say it too, and every change is read out in an aria-live region.
  • People, shifts and places are invented: in a real product the places come from the server, and a place can be taken by someone else while you look.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

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

Testing

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