
The star rating
Ratings, SVG, Hover
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.
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>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
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 siteTwo 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.
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.
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.
| Name | File | Default | What it changes |
|---|---|---|---|
NAME | script.js | "Dario" | Who is coming (made-up name). |
USUAL | script.js | 25 | The usual wait in minutes, shown at rest. |
ETA | script.js | 18 | The minutes to arrival once the plumber is found. |
STROKES | script.js | 3 | How many times the wrench tightens while searching. |
ACCENT | script.js | #2a8cff | The colour of the wrench. |
OK | script.js | #17b877 | The colour once the plumber is found. |
HOLD | script.js | 2.8 | Alone: how many seconds the confirmation stays before going back. |
LOOP | script.js | true | Left alone, a pointer tries it by itself. |
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.
The same pill, at most as wide as the screen minus the margins; there is no hover, the tap does the same job.
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.
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.
Tested on 16 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.