
The inchworm menu
Menus, Hover, Transitions
The Call the showroom button on the landing page of a made-up car dealership, Ardmore Motors, in satin graphite on white like a Dribbble shot. Pressed, the handset inside the disc rings twice, rocking like a phone on a desk, and thin signal orange rings leave the disc and go out over the white. Then the showroom number rolls in digit by digit on little reels, a reflection crosses the graphite and a Copy number chip springs out on the right; copied, the chip turns orange, its two sheets give way to a check and the digits nod. After a while the digits roll away and the button goes back to rest by itself.
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>
<!--
"Call the showroom 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 call the showroom button with the number that rolls in</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 Call the showroom button of a made-up car dealership, graphite on white. Pressed, the handset inside the
disc rings twice with thin rings leaving it; then the showroom number rolls in digit by digit on little reels
and a Copy number chip springs out on the right. Copied, the chip turns signal orange and a check draws
itself. After a while everything rolls away and the button is back at rest -->
<div class="cs" data-wrap>
<span class="cs__floor" data-floor aria-hidden="true"></span>
<svg class="cs__rings" data-rings viewBox="0 0 120 120" aria-hidden="true">
<circle cx="60" cy="60" r="24"/>
<circle cx="60" cy="60" r="24"/>
<circle cx="60" cy="60" r="24"/>
</svg>
<div class="cs__body" data-body>
<span class="cs__fill" aria-hidden="true"></span>
<span class="cs__grain" aria-hidden="true"></span>
<span class="cs__shine" data-shine aria-hidden="true"></span>
<span class="cs__sweep" aria-hidden="true"><span class="cs__sweep-band" data-sweep></span></span>
<span class="cs__edge" aria-hidden="true"></span>
<button class="cs__main" type="button" data-btn data-autoclic aria-label="Call the showroom: show the number"></button>
<span class="cs__row" aria-hidden="true">
<span class="cs__disc" data-disc>
<span class="cs__well" data-well></span>
<span class="cs__well-hot" data-hot></span>
<svg class="cs__live" viewBox="0 0 44 44"><circle data-live-ring cx="22" cy="22" r="20.5" pathLength="1" transform="rotate(-90 22 22)"/></svg>
<svg class="cs__phone" data-phone viewBox="0 0 24 24">
<g class="cs__waves" data-waves>
<path d="M14.6 5.2a4.6 4.6 0 0 1 4.2 4.2"/>
<path d="M14.9 2.2a7.6 7.6 0 0 1 6.9 6.9"/>
</g>
<g data-handset>
<path class="cs__handset" d="M6.9 3.4h1.9c.4 0 .8.3.9.7l.9 3.1c.1.4 0 .8-.3 1l-1.5 1.2a11.2 11.2 0 0 0 5.3 5.3l1.2-1.5c.3-.3.7-.4 1-.3l3.1.9c.4.1.7.5.7.9v1.9c0 1.2-1 2.1-2.2 2A15.7 15.7 0 0 1 4.9 5.6c-.1-1.2.8-2.2 2-2.2z"/>
</g>
</svg>
</span>
<span class="cs__text">
<span class="cs__state" data-state>
<span class="cs__title" data-t>Call the showroom</span>
<span class="cs__sub" data-s>Ardmore Motors · Sales desk</span>
</span>
<span class="cs__state" data-state>
<span class="cs__title cs__title--busy" data-t>Connecting</span>
<span class="cs__sub" data-s>Finding the sales desk</span>
</span>
<span class="cs__state cs__state--num" data-state>
<span class="cs__num" data-num></span>
<span class="cs__sub" data-s>Open till 19:00</span>
</span>
</span>
</span>
<button class="cs__copy" type="button" data-copy tabindex="-1" aria-label="Copy the showroom number">
<span class="cs__copy-fill" data-copy-fill aria-hidden="true"></span>
<svg class="cs__copy-icon" viewBox="0 0 16 16" aria-hidden="true">
<g data-sheets>
<rect x="5.4" y="5.4" width="7.6" height="7.6" rx="1.8"/>
<path d="M3.2 10.4V4.8c0-.9.7-1.6 1.6-1.6h5.6"/>
</g>
<path class="cs__copy-check" data-tick pathLength="1" d="M3.6 8.4l2.9 2.9 5.9-6.2"/>
</svg>
<span class="cs__copy-labels" aria-hidden="true">
<span class="cs__copy-label" data-label>Copy number</span>
<span class="cs__copy-label" data-label>Copied</span>
</span>
</button>
</div>
</div>
<p class="sr" aria-live="polite" data-say></p>
</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.
24 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 “Call the showroom button” from Animorio and fit it into my siteThe button is a single box (moved only by GSAP) with absolute layers: the graphite fill with a gradient from the top, the SVG grain with mix-blend-mode overlay, the light under the pointer driven by two CSS variables through gsap.quickTo, the reflection band and on top the 1 pixel inner shadows. Over them sits a transparent <button> as big as the pill and, beside it, the Copy number <button>: two sibling buttons, never one inside the other.
Each ring is a piece of timeline: the handset rotates with GSAP keyframes (0, -18, 15, -15, 12, -10, 7, -3, 0 degrees) around its centre, set once with svgOrigin; the two waves flick with a stagger; three 1 pixel circles with vector-effect: non-scaling-stroke widen from 0.92 to 1.72 and fade, so the line stays thin as it grows; the pill buzzes in x by half a pixel.
For every digit the script builds a column of (SPIN + 1) × 10 digits inside a window 1.18 em tall with a mask that fades at the top and bottom. The reel moves with yPercent down to row SPIN × 10 + digit, with back.out for the one pixel bounce and a blur from 0.7 to 0 pixels for the motion; the digits start STAGGER seconds apart. On the way out every reel moves on by one row and fades.
The two labels Copy number and Copied share one grid cell, aligned to the start (with justify-self: start, otherwise the cell stretched both to the longest). The script measures the real width of each with scrollWidth, once the typeface is in and on every resize, and the chip goes from one width to the other on a spring; the same measure gives the number the room it needs on the right through a CSS variable.
On a real click the number goes to the clipboard with navigator.clipboard.writeText; the chip takes the signal orange, the sheets shrink and the check draws itself with strokeDashoffset (pathLength 1), the digits rise by 2 pixels one after the other and spring back. A delayedCall of SHOW or HOLD seconds, restarted by every pointer move over it, brings everything back to rest.
| Name | File | Default | What it changes |
|---|---|---|---|
NUMBER | script.js | 555 014 2290 | The showroom number: digits and spaces (every digit becomes a reel). |
DEALER | script.js | Ardmore Motors | The dealership, in the small line at rest. |
CLOSES | script.js | 19:00 | When the showroom closes today, under the number. |
RINGS | script.js | 2 | How many times the handset rings. |
SPIN | script.js | 1 | How many whole turns each reel makes before it stops. |
STAGGER | script.js | 0.06 | How many seconds pass between one digit and the next. |
SPRING | script.js | 1 | How springy the moves are: 0.4 calm, 2 very bouncy. |
SHOW | script.js | 4.2 | How many seconds the number stays before going back, if nobody copies it. |
HOLD | script.js | 1.8 | How many seconds Copied stays before going back. |
AUTO | script.js | true | The button goes round by itself until someone touches it. |
For the landing or contact page of a car dealership, a garage, a car rental or any shop that wants to be called: instead of showing the number straight away, the button hands it over with a little moment and lets you copy it with one touch, handy on a computer where a tel: link does not call.
On the phone the pill is at most 92% of the screen wide and below 300 pixels the number and the words shrink by a point; there is no hover, so the light under the finger turns on at the touch and the rest is the same.
Nothing moves: the handset does not rock and the rings do not leave, the disc lights up and goes dark with a fade, the number appears already set on its digits, the Copy number chip fades in and Copied, the orange and the check change in place.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 9.9 KB; the libraries: GSAP 28 KB.
Tested on 9 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.