
The star rating
Ratings, SVG, Hover
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.
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>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
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 siteEvery 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 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.
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.
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.
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.
| Name | File | Default | What it changes |
|---|---|---|---|
START | script.js | 2481 | Your place in line as soon as you join. |
END | script.js | 2412 | The place it rolls down to as the line moves. |
AHEAD | script.js | 7 | How many marks are ahead of you in the little line. |
LEAVE | script.js | 5 | How many marks leave while the number drops. |
DROP | script.js | 2.4 | Seconds the number takes to roll down. |
HOLD | script.js | 5 | Seconds «You’re in» stays before going back to rest. |
OPEN | script.js | 292 | Width of the open pill, in pixels. |
PRESS_SCALE | script.js | 0.972 | How far the pressed button sinks. |
ACCENT | script.js | #c9f25d | The accent colour: your mark and the check. |
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.
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.
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.
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.
Tested on 11 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.