Skip to content
animorio
IT
All components

Vet visit booking button

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

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.

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

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.

15 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 “Vet visit booking 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

In the centre, on white, a dark green pill 60 pixels tall whose edge catches the light: on the left, in a round seat, a light green paw, then two lines (“Book a vet visit” and below “Next slot today”) and on the right a tag with the time, 16:30. Pressed, the paw shakes, the label slides away with a fade and in its place six paw prints cross the pill to the right, left and right foot alternating: each lands a little big, settles, fades and disappears while the next ones arrive. When the last one touches the tag, the tag bounces and fills with light green, the seat does the same, the paw closes and a tick draws itself in its place; the label comes back and says “Visit booked”, with “Today with Dr. Okafor” below. After a couple of seconds it goes back.

How it works

The prints

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

The step

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.

The arrival

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.

Values to change

NameFileDefaultWhat it changes
SLOTscript.js16:30The free time the button books.
DOCTORscript.jsDr. OkaforWho does the visit (invented name).
STEPSscript.js6How many prints cross the pill.
PACEscript.js0.15How many seconds between one step and the next.
ACCENTscript.js#7df0b8The colour of the prints and of the booked time.
HOLDscript.js2.6On its own: how many seconds it stays on “Visit booked” before going back.
LOOPscript.jstrueLeft alone, a pointer tries it by itself.

Try them in the Playground

When to use it

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

On phones

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.

With reduced motion

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.

Pitfalls

  • The prints pass where the label sits: the label leaves before the first one arrives and comes back only after the last, so no text is ever covered.
  • The prints’ position is a percentage of the layer, not pixels: the pill narrows on a phone and the line still reaches the tag.
  • While booking the button takes no other press (aria-busy) and a line for screen readers says when the visit is booked and with whom.

Libraries

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.

Testing

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