Skip to content
animorio
IT
All components

Join the waitlist button

Buttons, Hover, SVGGSAP, CSS onlyMediumCompressed weight: Demo 9.6 KBGSAP 28 KBFreeDownload the zip

The button to join the waitlist of an upcoming product, on white: an ink pill that, pressed, opens on your place in line, #2,481. The number rolls down digit by digit like an odometer while, beside it, the little line of marks ahead of your green mark gets shorter: the one at the front leaves, the others step forward with a bounce. Then «You’re in · #2,412» arrives with the check drawing itself, and «Share to move up» below copies the invite link.

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>
<!--
  "Join the waitlist 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 Join the waitlist button with the place in line that rolls down</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" data-stage>
    <!-- the waitlist button of a product on its way: the pill opens on your place in line,
         the number rolls down while the little line ahead of you gets shorter, then You're in -->
    <div class="unit">
      <button class="btn" type="button" data-btn data-autoclic>
        <span class="btn__light" aria-hidden="true"></span>
        <span class="btn__sheen" aria-hidden="true"></span>

        <!-- rest -->
        <span class="rest" data-rest>
          <span class="rest__label" data-label>Join the waitlist</span>
          <svg class="rest__arrow" data-arrow viewBox="0 0 16 16" aria-hidden="true">
            <path d="M3 8h9.2M8.6 4.2 12.4 8l-3.8 3.8"/>
          </svg>
        </span>

        <!-- your place: the rolling number and the line ahead of you -->
        <span class="place" data-place aria-hidden="true">
          <span class="line" data-line></span>
        </span>

        <span class="num" data-num aria-hidden="true"></span>

        <!-- done -->
        <span class="done" data-done aria-hidden="true">
          <span class="done__words" data-words>You’re in <span class="done__dot">·</span></span>
          <span class="done__slot" data-slot></span>
          <svg class="check" data-check viewBox="0 0 24 24" aria-hidden="true">
            <circle class="check__disc" data-disc cx="12" cy="12" r="11"/>
            <path class="check__tick" data-tick d="M7.2 12.4l3.2 3.1 6.4-6.9"/>
          </svg>
        </span>
      </button>

      <button class="share" type="button" data-share aria-hidden="true" tabindex="-1">
        <svg class="share__icon" viewBox="0 0 16 16" aria-hidden="true">
          <g data-links>
            <path d="M6.6 9.4l2.8-2.8"/>
            <path d="M7.3 4.6l1-1a2.6 2.6 0 0 1 3.7 3.7l-1 1"/>
            <path d="M8.7 11.4l-1 1a2.6 2.6 0 0 1-3.7-3.7l1-1"/>
          </g>
          <path class="share__ok" data-ok d="M3.6 8.4l2.9 2.8 5.9-6.2"/>
        </svg>
        <span class="share__words">
          <span class="share__label" data-share-idle>Share to move up</span>
          <span class="share__label" data-share-done aria-hidden="true">Link copied</span>
        </span>
      </button>
    </div>
    <p class="sr" data-live aria-live="polite"></p>

    <svg class="ghost" data-ghost viewBox="0 0 24 24" aria-hidden="true"><path d="M5 3.2 19.2 11l-6.3 1.6-3.3 5.9Z"></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.

22 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 “Join the waitlist 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

In the middle of a white page an ink pill 60 pixels tall, with a thread of light on its top edge and a soft layered shadow: «Join the waitlist» and a thin arrow. On hover (or with the Tab key) the pill lifts a pixel, the shadow lengthens, a pale light follows the pointer, the label widens on the wdth axis and the arrow leans forward; pressed, it sinks a hair. On click the label rises and fades, the arrow slips off to the right, the pill opens wide with a small bounce and a sheen crosses it once. On the left your place appears, #2,481; on the right a little line: seven thin grey marks on a base line and at the end yours, taller, lime green. The marks sway a touch, like people waiting. Then the number rolls down, each digit in its own little window, and as it drops the first mark of the line shrinks and leaves, the others and yours step forward one after the other with a bounce, yours leaning and straightening; it happens five times. At #2,412 the number stops with a one pixel settle, the last marks and the line fade, the pill narrows to the right size and the number slides right: «You’re in · #2,412» with a lime disc where the check draws itself. Below appears «Share to move up» with the link icon: on click it copies the invite link, the chain links spin away, a check draws in their place and the label rolls to «Link copied». A few seconds later (or with another click on the pill) everything goes back to rest.

How it works

An odometer per digit

Every digit is a 24 pixel window with a 0-9-0 strip inside. A single value v falls from START to END; the units follow v mod 10 continuously, the higher digits stay still and only roll in the last stretch, when the digit below goes from 9 to 0: pos = floor(v/10^p) mod 10 + max(0, v mod 10^p − (10^p − 1)). A gradient mask fades the top and bottom of the window.

The line that gets shorter

The marks sit on fixed places 11 pixels apart. Every exit removes the first mark (scaleY to zero and seven pixels back) and brings each remaining mark to the place before, with back.out and a 30 ms delay from front to back, so the step forward runs along the line.

Exits tied to the number

The number drops with power2.inOut; the exit times are found by inverting the same curve with a binary search, so each mark leaves when the number has covered its share of the way: slow at first, dense in the middle, slow again at the end.

From number to confirmation

At the end the pill narrows to the measured width of «You’re in ·», the number and the check, and the number is not rebuilt: it slides with a computed x to its place in the sentence. The check is a path with stroke-dashoffset inside a disc that arrives with back.out.

States and pilot

Rest, a hover with the light and the lengthening shadow, focus, pressed, in progress with aria-busy, done with an aria-live announcement, and the second action that copies the link (navigator.clipboard, or a textarea where it is missing). A drawn pointer joins, waits for the line, copies the link and starts again; at the first real touch it stops and starts again after six quiet seconds.

Values to change

NameFileDefaultWhat it changes
STARTscript.js2481Your place in line as soon as you join.
ENDscript.js2412The place it rolls down to as the line moves.
AHEADscript.js7How many marks are ahead of you in the little line.
LEAVEscript.js5How many marks leave while the number drops.
DROPscript.js2.4Seconds the number takes to roll down.
HOLDscript.js5Seconds «You’re in» stays before going back to rest.
OPENscript.js292Width of the open pill, in pixels.
PRESS_SCALEscript.js0.972How far the pressed button sinks.
ACCENTscript.js#c9f25dThe accent colour: your mark and the check.

Try them in the Playground

When to use it

On the page of a product or an app that is not out yet, on a launch landing page, for a drop or an invite-only beta: the button that puts you in line and shows your place at once. «Share to move up» fits where invites move you up the list.

On phones

The same animation: the open pill is at most the screen width minus 32 pixels and the line stays 118. A tap is hover and click together; the widths are worked out again if the window changes.

With reduced motion

Nothing moves: the pill changes width in one step, the number goes from #2,481 to #2,412 with a fade instead of rolling, the marks leave by fading, the number reaches its place in the sentence with a fade and the check appears already drawn; the pilot’s pointer is hidden.

Pitfalls

  • The check stroke, hidden only by the disc opacity, stayed visible over the arrow at rest: the stroke now starts hidden in CSS with stroke-dasharray and stroke-dashoffset.
  • With every digit spinning together the number became a blur: only the units spin continuously, the others move only when the digit below goes from 9 to 0, as in a real odometer.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

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

Testing

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