Skip to content
animorio
IT
All components

Garage booking form

Forms, Hover, TransitionsGSAP, CSS onlyMediumCompressed weight: Demo 13 KBGSAP 28 KBFreeDownload the zip

The «Book a service» form of a made-up garage, Corvel Garage, in three steps inside one white card. Pick the service from four pills (full service, tyres, brakes, air con) and a dark mark slides under your choice on a spring; then drag the strip of days, with inertia, a rubber edge and a snap, and pick a free time. Once confirmed, the card recomposes into the summary: the ticket comes in, the values roll into place, the estimate counts up to the price and an orange inked stamp falls and settles. The step bar on top fills a little at every choice.

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>
<!--
  "Garage booking form" 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 garage service booking form in three steps with the confirmation stamp</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" data-stage>
    <!-- the booking card of Corvel Garage, an invented car workshop: choose the service, the day and the time, and the
         same card recomposes into the booking with an inked stamp; the step bar on top fills as you go -->
    <form class="bk" data-card aria-labelledby="bk-title" novalidate>
      <header class="bk__head">
        <button class="bk__back" type="button" data-back aria-label="Back" tabindex="-1">
          <svg viewBox="0 0 20 20" aria-hidden="true"><path d="M11.5 5.5 7 10l4.5 4.5"/></svg>
        </button>
        <span class="bk__logo" aria-hidden="true">
          <svg viewBox="0 0 24 24"><path d="M14.6 4.2a4.6 4.6 0 0 0-5.9 5.9l-4.6 4.6a1.9 1.9 0 0 0 2.7 2.7l4.6-4.6a4.6 4.6 0 0 0 5.9-5.9l-2.6 2.6-2.3-.4-.4-2.3z"/></svg>
        </span>
        <span class="bk__meta">
          <span class="bk__brand">Corvel Garage</span>
          <span class="bk__title" id="bk-title">Book a service</span>
        </span>
        <span class="bk__open"><svg viewBox="0 0 16 16" aria-hidden="true"><circle cx="8" cy="8" r="5.6"/><path d="M8 5v3.2l2 1.3"/></svg><span>Open till 18:00</span></span>
      </header>

      <div class="bk__steps" aria-hidden="true">
        <div class="bk__step" data-seg><span class="bk__bar"><span class="bk__fill" data-fill></span><span class="bk__sheen"></span></span><span class="bk__slabel">Service</span></div>
        <div class="bk__step" data-seg><span class="bk__bar"><span class="bk__fill" data-fill></span><span class="bk__sheen"></span></span><span class="bk__slabel">Day &amp; time</span></div>
        <div class="bk__step" data-seg><span class="bk__bar"><span class="bk__fill" data-fill></span><span class="bk__sheen"></span></span><span class="bk__slabel">Confirm</span></div>
      </div>

      <div class="bk__body" data-body>
        <!-- the service -->
        <fieldset class="panel" data-panel>
          <legend class="panel__q">What does the car need?</legend>
          <div class="svc" data-svc role="radiogroup" aria-label="Service">
            <span class="svc__mark" data-svc-mark aria-hidden="true"></span>
            <button class="svc__pill" type="button" role="radio" aria-checked="false" data-service="full" data-price="189" data-label="Full service">
              <svg viewBox="0 0 20 20" aria-hidden="true"><circle cx="10" cy="10" r="6.2"/><circle cx="10" cy="10" r="2.2"/><path d="M10 3.8v2M10 14.2v2M3.8 10h2M14.2 10h2"/></svg>
              <span class="svc__txt"><span class="svc__name">Full service</span><span class="svc__price">from €189</span></span>
            </button>
            <button class="svc__pill" type="button" role="radio" aria-checked="false" data-service="tyres" data-price="64" data-label="Tyre change">
              <svg viewBox="0 0 20 20" aria-hidden="true"><circle cx="10" cy="10" r="6.8"/><circle cx="10" cy="10" r="3.4"/><path d="M10 3.2v3.4M10 13.4v3.4M3.2 10h3.4M13.4 10h3.4"/></svg>
              <span class="svc__txt"><span class="svc__name">Tyres</span><span class="svc__price">from €64</span></span>
            </button>
            <button class="svc__pill" type="button" role="radio" aria-checked="false" data-service="brakes" data-price="95" data-label="Brake check">
              <svg viewBox="0 0 20 20" aria-hidden="true"><circle cx="10" cy="10" r="6.6"/><path d="M5.6 6.2a6 6 0 0 0 0 7.6M14.4 6.2a6 6 0 0 1 0 7.6"/><circle cx="10" cy="10" r="1.6"/></svg>
              <span class="svc__txt"><span class="svc__name">Brakes</span><span class="svc__price">from €95</span></span>
            </button>
            <button class="svc__pill" type="button" role="radio" aria-checked="false" data-service="air" data-price="79" data-label="Air con refill">
              <svg viewBox="0 0 20 20" aria-hidden="true"><path d="M10 3.5v13M4.4 6.75l11.2 6.5M4.4 13.25l11.2-6.5"/><path d="M8.3 4.6 10 6l1.7-1.4M8.3 15.4 10 14l1.7 1.4"/></svg>
              <span class="svc__txt"><span class="svc__name">Air con</span><span class="svc__price">from €79</span></span>
            </button>
          </div>
          <div class="car">
            <svg class="car__icon" viewBox="0 0 32 16" aria-hidden="true"><path d="M2.5 11.5V9.2c0-.8.5-1.4 1.3-1.6l3.4-.8 3.2-3.2c.5-.5 1.1-.7 1.8-.7h8.4c.8 0 1.5.4 1.9 1l2.4 3.1 2.6.6c.8.2 1.4.9 1.4 1.7v2.2"/><path d="M6 11.5h20.5M10 6.8h14.5"/><circle cx="9" cy="11.8" r="2.1"/><circle cx="23.5" cy="11.8" r="2.1"/></svg>
            <span class="car__txt"><span class="car__name">Silver estate · 2019</span><span class="car__sub">48,200 mi · last service in May</span></span>
            <span class="car__edit">Change</span>
          </div>
        </fieldset>

        <!-- the day and the time -->
        <fieldset class="panel" data-panel>
          <legend class="panel__q"><span>Pick a day</span><span class="panel__month">November</span></legend>
          <div class="days" data-days>
            <div class="days__track" data-track role="radiogroup" aria-label="Day">
              <span class="days__mark" data-day-mark aria-hidden="true"></span>
            </div>
          </div>
          <p class="panel__q panel__q--small"><span>Drop-off time</span><span class="panel__note" data-slots-note>4 left</span></p>
          <div class="slots" data-slots role="radiogroup" aria-label="Time"></div>
        </fieldset>

        <!-- the booking, recomposed -->
        <section class="panel panel--ticket" data-panel aria-live="polite">
          <div class="ticket">
            <div class="ticket__top">
              <div>
                <p class="ticket__kicker">Booking confirmed</p>
                <h2 class="ticket__title">You're booked in</h2>
                <p class="ticket__ref">Ref <span data-ref>CV-48K2</span></p>
              </div>
            </div>
            <dl class="ticket__rows">
              <div class="ticket__row"><dt>Service</dt><dd><span class="roll" data-r-service>Brake check</span></dd></div>
              <div class="ticket__row"><dt>When</dt><dd><span class="roll" data-r-when>Thu 12 Nov · 10:00</span></dd></div>
              <div class="ticket__row"><dt>Car</dt><dd><span class="roll">Silver estate · 2019</span></dd></div>
            </dl>
            <div class="ticket__cut" aria-hidden="true"></div>
            <div class="ticket__total"><span>Estimate</span><strong>€<span data-total>0</span></strong></div>
            <svg class="stamp" data-stamp viewBox="0 0 120 120" aria-hidden="true">
              <defs>
                <filter id="ink" x="-10%" y="-10%" width="120%" height="120%">
                  <feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="2" seed="7" result="n"/>
                  <feDisplacementMap in="SourceGraphic" in2="n" scale="1.4" xChannelSelector="R" yChannelSelector="G" result="d"/>
                  <feTurbulence type="fractalNoise" baseFrequency="0.35" numOctaves="3" seed="3" result="m"/>
                  <feColorMatrix in="m" type="matrix" values="0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 -2.4 1.9" result="mask"/>
                  <feComposite in="d" in2="mask" operator="in"/>
                </filter>
                <path id="ring" d="M60 60m-40 0a40 40 0 1 1 80 0a40 40 0 1 1-80 0"/>
              </defs>
              <g filter="url(#ink)">
                <circle cx="60" cy="60" r="54" class="stamp__line"/>
                <circle cx="60" cy="60" r="48.5" class="stamp__thin"/>
                <circle cx="60" cy="60" r="31" class="stamp__thin"/>
                <text class="stamp__ring"><textPath href="#ring" startOffset="0" textLength="252" lengthAdjust="spacing">CORVEL GARAGE · SERVICE BOOKED ·</textPath></text>
                <path class="stamp__tick" d="M47 60.5 56 69.5 74 50.5"/>
              </g>
            </svg>
          </div>
        </section>
      </div>

      <button class="cta" type="button" data-cta disabled>
        <span class="cta__bg" aria-hidden="true"></span>
        <span class="cta__label" data-cta-label>Choose a service</span>
        <svg class="cta__arrow" viewBox="0 0 20 20" aria-hidden="true"><path d="M5 10h9.5M10.5 5.5 15 10l-4.5 4.5"/></svg>
        <svg class="cta__spin" viewBox="0 0 20 20" aria-hidden="true"><circle cx="10" cy="10" r="6.5"/></svg>
      </button>
    </form>
    <svg class="pointer" viewBox="0 0 24 24" aria-hidden="true" data-pointer><path d="M5 3.5 18.5 12 12.4 13.6 9.4 19.6z"/></svg>
    <p class="sr" aria-live="polite" data-live></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.

55 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 “Garage booking form” 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

A warm white card with a fine grain: on top the garage brand and the step bar (Service, Day & time, Confirm), below the current step and the black button. The four service pills have an icon and a price: when chosen, a dark mark slides under with a pixel of bounce, the name widens and the icon turns half a turn. In the second step the strip of days drags with a finger or the mouse, leans a little with its speed, keeps going with inertia and snaps to a day; each day has a short line that says how busy it is, Sundays are closed. Full times are struck through. Once confirmed, the button spins, the card recomposes into the ticket with the summary and the stamp falls, presses the card slightly and settles.

How it works

Three panels in one card

The three steps are absolutely positioned panels inside a body var(--corpo) tall, also measured in vh so the card fits the phone box. Changing step, the old one leaves sideways as a fade and the new one comes from the other side, its children staggered on back.out; the back button and the brand slide along.

The mark that slides under the choice

Chosen pills are transparent: under them sits a single dark absolutely positioned mark that GSAP takes to the pill's offsetLeft, offsetTop and size with back.out(MARK_SPRING), plus an elastic squash. Same trick for the day, with the mark inside the strip so it moves with it.

The day strip with inertia

Pointer Events with setPointerCapture: under 4 pixels it is a tap and picks the day, above it is a drag with a rubber edge (movement past the limits counts a third). The speed is measured on the last 90 ms; let go, the strip travels speed times FLING, rounds to one day's step and gets there with back.out(SNAP_SPRING). A quickTo leans the strip with its speed.

The step bar

Each segment fills by degrees with scaleX: service chosen 0.6, day chosen 0.45, time chosen 0.8, next step 1, with a sheen crossing it when full.

The summary and the stamp

The ticket comes in on a spring, the values rise from below (yPercent) inside rows that clip them, the estimate counts up to the price. The stamp is an SVG with text on a circle and a filter (feTurbulence, feDisplacementMap and a noise mask) that makes the ink uneven: it falls from STAMP_SIZE with power4.in, squashes 3% and the card drops a pixel and a half.

The pilot

A drawn pointer picks brakes, goes on, drags the day strip, picks a Monday and the first free time, confirms and starts over after the stamp. At the first real mouse move, tap or key it stops.

Values to change

NameFileDefaultWhat it changes
MARK_SPRINGscript.js1.6How far the dark mark overshoots when it slides under a choice (0 none).
STEP_TIMEscript.js0.42Seconds for one step to leave and the next to come in.
FLINGscript.js0.22How far the day strip keeps going after a flick (0 stops where you let go).
SNAP_SPRINGscript.js1.3How far the strip overshoots its day when it snaps (0 none).
STAMP_SIZEscript.js1.9How big the stamp is when it starts to fall (1 lands with no fall).
STAMP_TILTscript.js-9Degrees the stamp lands at.
HOLDscript.js2.4Seconds the pilot stays on the confirmed booking.
SPEEDscript.js1Pilot speed.
LOOPscript.jstrueThe pilot starts over.

Try them in the Playground

When to use it

On the site of a garage, a tyre shop, a car wash, a hairdresser or any business that takes appointments: the whole booking in one card, without leaving the page. It also works on the home screen of a service app or in a dashboard, to book a delivery or a visit.

On phones

The same animation with adapted sizes: the card is 92% of the screen wide, the body, the pills, the days and the times also follow the window height, and under 470 pixels of height the mileage line and the opening time go away. The day strip drags with a finger without blocking the page's vertical scroll.

With reduced motion

Nothing moves: the steps change as a fade, the marks appear already under the choice, the day strip snaps with no spring, the estimate is already at the price and the stamp fades in; the pilot's pointer is hidden.

Pitfalls

  • The dark mark is a single element outside the pills: measured with offsetLeft and offsetTop inside the grid it must be put back on resize, because the pills change size with the window.
  • With setPointerCapture on the strip the click goes to the strip, not to the day: the touched day is remembered on pointerdown and picked on pointerup if the finger did not move; the real click is kept for the keyboard only (event.detail equal to 0).
  • The stamp sits over the summary: the title keeps an empty space as wide as the stamp on its right, so the ink never covers any text.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

Compressed with gzip, the three demo files weigh 13 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