Skip to content
animorio
IT
All components

Call the showroom button

Buttons, Hover, TransitionsGSAP, CSS onlyMediumCompressed weight: Demo 9.9 KBGSAP 28 KBFreeDownload the zip

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.

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

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.

24 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 “Call the showroom 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 pure white a single pill button 60 pixels tall, in satin graphite: lighter at the top, with a very fine grain, a hairline of light on the upper edge and a soft shadow on the white under it. On the left a dark recessed disc with the handset, in the middle Call the showroom with Ardmore Motors · Sales desk under it. With the mouse over it a soft light follows the pointer, the pill lifts by a pixel and the handset leans towards you on a spring. Pressed, the pill sinks and springs back; the disc lights up signal orange and the handset rings twice: it rocks fast left and right and settles, two thin waves flick beside it, the pill buzzes by half a pixel and at every ring three thin rings leave the disc and widen over the white until they vanish, while the words become Connecting with a band of light passing through them. Then the disc goes dark again, an orange ring starts closing around the handset and the number, 555 014 2290, arrives digit by digit: every digit is a little reel that spins one whole turn, slightly blurred, and stops on its digit with a one pixel bounce. Under it Open till 19:00 appears, a diagonal reflection crosses the graphite and the glass Copy number chip springs out on the right. Touched, the chip squeezes, turns orange, its words slide up and give way to Copied, the chip shortens to the new word, the two sheets of the icon close and a check draws itself, and the digits nod one after the other. After a while the digits roll away upwards, the Copied chip folds back, the orange ring finishes its turn and fades, and Call the showroom is back. Until someone touches it, the button goes round by itself.

How it works

Graphite in layers

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

The ring

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.

The digit reels

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 chip that measures itself

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.

Copied and the way back

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.

Values to change

NameFileDefaultWhat it changes
NUMBERscript.js555 014 2290The showroom number: digits and spaces (every digit becomes a reel).
DEALERscript.jsArdmore MotorsThe dealership, in the small line at rest.
CLOSESscript.js19:00When the showroom closes today, under the number.
RINGSscript.js2How many times the handset rings.
SPINscript.js1How many whole turns each reel makes before it stops.
STAGGERscript.js0.06How many seconds pass between one digit and the next.
SPRINGscript.js1How springy the moves are: 0.4 calm, 2 very bouncy.
SHOWscript.js4.2How many seconds the number stays before going back, if nobody copies it.
HOLDscript.js1.8How many seconds Copied stays before going back.
AUTOscript.jstrueThe button goes round by itself until someone touches it.

Try them in the Playground

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

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.

With reduced motion

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.

Pitfalls

  • The Copy number button cannot sit inside the main button (a <button> inside another is invalid and the click goes to the parent): they are two siblings, the big one below and the chip on top with a higher z-index.
  • The two labels of the chip in the same grid cell were both stretched to the longest and scrollWidth gave the same measure: with justify-self: start each keeps its real width.
  • The rings of the ring, scaled up, became almost 2 pixels thick: with vector-effect: non-scaling-stroke the line stays at 1 pixel.
  • Putting svgOrigin in the same tween as the keyframes did not move the pivot: the handset’s centre is set once with gsap.set, and every rotation after that uses it.
  • The loop started when the script was read, and the poster landed on different moments: it starts from the page’s load event.

Libraries

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.

Testing

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