Skip to content
animorio
IT
All components

Call a plumber button

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

The emergency button of a plumbing service. On the right it says the usual wait; pressed, the wrench in the disc tightens the nut in ratchet strokes while someone nearby is found, then the tick draws itself, the text says who is coming and the minutes count down to the real estimate.

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 a plumber 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>Call a plumber button with the wrench that tightens and the minutes to arrival</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 emergency button of a plumbing service: pressed, the wrench ratchets three times on the nut while a
         plumber is found, then a tick draws itself and the tag says in how many minutes they arrive -->
    <button class="pl" type="button" data-pl>
      <span class="pl__body" aria-hidden="true"><span class="pl__wash" data-wash></span><span class="pl__light"></span></span>
      <span class="pl__edge" aria-hidden="true"></span>

      <span class="seat" data-seat aria-hidden="true">
        <svg viewBox="0 0 24 24">
          <g transform="translate(9.500 14.500)">
            <g data-tool>
              <g data-nut><polygon class="seat__nut" points="3.400,0 1.700,2.940 -1.700,2.940 -3.400,0 -1.700,-2.940 1.700,-2.940"></polygon><circle class="seat__hole" r="1.050"></circle></g>
              <g data-wrench><path class="seat__jaw" d="M3.600 -3.600a5.100 5.100 0 1 0 0 7.200"></path><path class="seat__handle" d="M4.300 -4.300l6.200 -6.200"></path></g>
            </g>
            <path class="seat__tick" data-tick pathLength="1" d="M-1.500 -2.500 1.200 0.100 6.200 -5.400"></path>
          </g>
        </svg>
      </span>

      <span class="label">
        <span class="label__main"><span data-word>Call a plumber</span></span>
        <span class="label__sub"><span data-sub>Emergency, day and night</span></span>
      </span>
      <span class="tag" aria-hidden="true"><span data-left></span></span>
    </button>
    <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.

16 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 a plumber 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 white, a dark pill 60 pixels high: on the left a light disc with a hexagonal nut and a blue wrench around it, in the middle “Call a plumber” and below it “Emergency, day and night”, on the right a tag with “~25 min”. On hover the light follows the pointer and the wrench swings back, ready to pull. Pressed: a blue tint leaves the disc, the texts roll to “Finding a plumber”, and the wrench makes three ratchet strokes: it goes back free, then pulls and the nut turns with it, a little less each time, with a knock at the end of the stroke. Then everything turns green, the wrench dims, the tick draws itself, the text says “Dario is on the way” and in the tag the minutes go down from 25 to 18. After a few seconds it goes back.

How it works

The ratchet

Two SVG groups with the same centre: the wrench goes back alone (power2.out, 0.16 seconds), then wrench and nut rotate together by the same angle (power3.in, 0.2 seconds). The nut accumulates rotation with “+=”, the wrench always returns to zero. Each pull is eight degrees shorter.

Drawn around zero

Nut, wrench and tick sit in a group translated to the nut’s centre and have coordinates around (0, 0): the rotations are written into the transform attribute from three animated numbers, and always turn on the nut’s centre, even with zoom.

The minutes

At the confirmation the tag rolls to the usual minutes and then counts to the real estimate with power2.out: you see the good news arrive.

Values to change

NameFileDefaultWhat it changes
NAMEscript.js"Dario"Who is coming (made-up name).
USUALscript.js25The usual wait in minutes, shown at rest.
ETAscript.js18The minutes to arrival once the plumber is found.
STROKESscript.js3How many times the wrench tightens while searching.
ACCENTscript.js#2a8cffThe colour of the wrench.
OKscript.js#17b877The colour once the plumber is found.
HOLDscript.js2.8Alone: how many seconds the confirmation stays before going back.
LOOPscript.jstrueLeft alone, a pointer tries it by itself.

Try them in the Playground

When to use it

In the hero of the site of a plumber, an electrician or a locksmith with an emergency service, in a home services app, on a building’s help page. In a real product name and minutes come from dispatch.

On phones

The same pill, at most as wide as the screen minus the margins; there is no hover, the tap does the same job.

With reduced motion

The wrench does not move: after a moment the texts change without rolling, the tick appears and the tag says the real minutes at once.

Pitfalls

  • The nut turns with “+=”: if the button is pressed several times the rotation adds up, and that is fine (a hexagon at 120 degrees equals itself).
  • During the search the button has aria-busy and ignores clicks; the state is also said in words in a line for screen readers.
  • The tick has opacity 0 at rest and autoRound is off at the top of the script: with pathLength 1 GSAP would draw it all at once.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

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

Testing

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