
The star rating
Ratings, SVG, Hover
The booking button of a vet clinic: a dark green pill with a paw and the first free time. Pressed, the label steps aside and a line of paw prints crosses the pill, one step after the other, from the paw to the time, which lights up; the paw becomes a tick and the label says the visit is booked.
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>
<!--
"Vet visit booking 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>Book a vet visit button with the paw prints that walk to the time</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 booking button of a vet clinic: pressed, the label steps aside and a line of paw prints walks across the
pill, from the paw on the left to the time on the right, which lights up; then the label says it is booked -->
<button class="vet" type="button" data-vet>
<span class="vet__body" aria-hidden="true"><span class="vet__light"></span></span>
<span class="vet__edge" aria-hidden="true"></span>
<span class="seat" data-seat aria-hidden="true">
<svg viewBox="0 0 24 24">
<g data-paw><ellipse cx="6.2" cy="10.4" rx="1.55" ry="2.05" transform="rotate(-18 6.2 10.4)"></ellipse><ellipse cx="9.7" cy="6.9" rx="1.65" ry="2.2" transform="rotate(-6 9.7 6.9)"></ellipse><ellipse cx="14.3" cy="6.9" rx="1.65" ry="2.2" transform="rotate(6 14.3 6.9)"></ellipse><ellipse cx="17.8" cy="10.4" rx="1.55" ry="2.05" transform="rotate(18 17.8 10.4)"></ellipse><path d="M12 12.3c-2.7 0-4.8 2.1-4.8 4.2 0 1.6 1.3 2.4 2.7 2.4.8 0 1.4-.35 2.1-.35s1.3.35 2.1.35c1.4 0 2.7-.8 2.7-2.4 0-2.1-2.1-4.2-4.8-4.2Z"></path></g>
<path class="seat__tick" data-tick pathLength="1" d="M7.6 12.4 10.6 15.3 16.4 9"></path>
</svg>
</span>
<span class="trail" data-trail aria-hidden="true"></span>
<span class="label" data-label>
<span class="label__main"><span data-word>Book a vet visit</span></span>
<span class="label__sub"><span data-sub>Next slot today</span></span>
</span>
<span class="tag" data-tag aria-hidden="true"><span data-time>16:30</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.
15 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 “Vet visit booking button” from Animorio and fit it into my siteThe prints are spans created by the script inside a layer that covers the label’s area: the horizontal position is a percentage (from 4 to 96), the vertical one alternates above and below the middle, and each is rotated 90 degrees plus or minus 14, like a left and a right foot.
One timeline: each print starts PACE seconds after the previous one, comes in from scale 1.5 to 1 with back.out, drops to 32% opacity and disappears two and a half steps later. So at any moment only the last three prints are visible, and the line seems to walk.
At the instant of the last step the tag makes an elastic bounce and a class on the button gives it the full colour; the paw scales to zero, the tick draws itself with stroke-dashoffset and the label comes back from the left with the new text.
| Name | File | Default | What it changes |
|---|---|---|---|
SLOT | script.js | 16:30 | The free time the button books. |
DOCTOR | script.js | Dr. Okafor | Who does the visit (invented name). |
STEPS | script.js | 6 | How many prints cross the pill. |
PACE | script.js | 0.15 | How many seconds between one step and the next. |
ACCENT | script.js | #7df0b8 | The colour of the prints and of the booked time. |
HOLD | script.js | 2.6 | On its own: how many seconds it stays on “Visit booked” before going back. |
LOOP | script.js | true | Left alone, a pointer tries it by itself. |
For the site of a vet clinic, a groomer, a dog boarding or a pet shop: the button that books the first free time without opening a form. In a real product the time comes from the diary and the button stays on “Visit booked”.
The same button: the pill takes at most the screen width minus the margins; it is pressed with a finger and there is no light under the pointer.
No steps or bounces: the prints appear and disappear all together with a fade, then label, tick and the time’s colour change without moving.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 5.7 KB; the libraries: GSAP 28 KB.
Tested on 15 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.