Skip to content
animorio
IT
All components

Hotel valet card

Cards, Hover, TransitionsGSAP, CSS onlyMediumCompressed weight: Demo 7.2 KBGSAP 28 KBFreeDownload the zip

The valet card in the app of Hollin House, a made-up hotel, alone on black in the premium product style. Press Request my car: the first step ticks, a small car seen from above leaves the garage and drives the road to the entrance while the brass line follows it, the wait in minutes counts down and the button becomes a quiet progress bar. At the entrance the car brakes with a little rock, its headlights come on, the door turns brass and the card says it is waiting for you; press again and you go down.

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>
<!--
  "Hotel valet card" 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 hotel valet card with the car arriving at the entrance</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 valet card of a made-up hotel app: you ask for your car, a small car drives the route from the garage
         to the entrance while the wait counts down, the steps fill, and at the door its lights come on -->
    <section class="valet" data-valet aria-label="Valet">
      <span class="valet__sheen" aria-hidden="true"></span>

      <header class="head">
        <span class="mark" aria-hidden="true">
          <svg viewBox="0 0 24 24"><path d="M7 6v12M17 6v12M7 12h10" /></svg>
        </span>
        <span class="head__txt">
          <span class="head__name" data-brand>Hollin House</span>
          <span class="head__sub">Valet parking</span>
        </span>
        <span class="ticket">Ticket <b>418</b></span>
      </header>

      <div class="carrow">
        <svg class="carrow__icon" viewBox="0 0 32 20" aria-hidden="true">
          <path d="M4 13.5v-3.2l3.4-5.1c.5-.7 1.3-1.2 2.2-1.2h11.8c.9 0 1.7.4 2.2 1.1l3.6 5.2v3.2a1.6 1.6 0 0 1-1.6 1.6H5.6A1.6 1.6 0 0 1 4 13.5Z" />
          <path d="M8.2 10h15.6M10 4.8l-1.6 5.2M22 4.8l1.6 5.2" />
          <circle cx="9.5" cy="15.6" r="2.1" /><circle cx="22.5" cy="15.6" r="2.1" />
        </svg>
        <span class="carrow__txt">
          <span class="carrow__name">Graphite estate</span>
          <span class="carrow__where" data-where>Lower level, bay 31</span>
        </span>
        <span class="plate" data-plate>LK21 ROW</span>
      </div>

      <div class="route" aria-hidden="true">
        <svg class="route__svg" viewBox="0 0 300 92" data-route>
          <defs>
            <radialGradient id="beam" cx="0" cy="0.5" r="1">
              <stop offset="0" stop-color="#f6e7c4" stop-opacity="0.55" />
              <stop offset="1" stop-color="#f6e7c4" stop-opacity="0" />
            </radialGradient>
          </defs>
          <path class="route__track" d="M50 66 C 102 66, 112 30, 160 30 S 216 50, 234 45" />
          <path class="route__done" data-done d="M50 66 C 102 66, 112 30, 160 30 S 216 50, 234 45" />
          <g class="garage" transform="translate(30 66)">
            <rect x="-13" y="-11" width="26" height="22" rx="6" />
            <path d="M-6 4V-1h12v5M-6 1h12" />
          </g>
          <g class="door" data-door transform="translate(268 40)">
            <rect x="-13" y="-13" width="26" height="26" rx="7" />
            <path d="M-5 7V-2a5 5 0 0 1 10 0v9" />
          </g>
          <g class="car" data-car>
            <g data-carbody>
              <path class="car__beam" data-beam d="M10 -2 L44 -14 L44 14 L10 2 Z" fill="url(#beam)" />
              <rect class="car__body" x="-11" y="-6.5" width="22" height="13" rx="4" />
              <rect class="car__glass" x="2" y="-4.6" width="5" height="9.2" rx="1.6" />
              <rect class="car__glass" x="-8" y="-4.6" width="4" height="9.2" rx="1.4" />
              <rect class="car__lamp" data-lamp x="9.4" y="-5" width="1.8" height="3" rx="0.9" />
              <rect class="car__lamp" data-lamp x="9.4" y="2" width="1.8" height="3" rx="0.9" />
            </g>
          </g>
        </svg>
        <div class="route__labels"><span>Garage</span><span>Main entrance</span></div>
      </div>

      <div class="status">
        <span class="status__roll" data-status><span class="status__line">Parked</span></span>
        <span class="eta" data-eta><span class="eta__num" data-etanum>4</span><span class="eta__unit" data-etaunit>min</span></span>
      </div>

      <ol class="steps" data-steps>
        <li class="step" data-step><span class="step__ring"><svg viewBox="0 0 12 12"><path d="M3 6.2 5.1 8.2 9 4" /></svg></span>Requested</li>
        <li class="step" data-step><span class="step__ring"><svg viewBox="0 0 12 12"><path d="M3 6.2 5.1 8.2 9 4" /></svg></span>On its way</li>
        <li class="step" data-step><span class="step__ring"><svg viewBox="0 0 12 12"><path d="M3 6.2 5.1 8.2 9 4" /></svg></span>At the door</li>
      </ol>

      <button class="go" type="button" data-go>
        <span class="go__fill" data-gofill aria-hidden="true"></span>
        <span class="go__face">
          <span class="go__label" data-golabel>Request my car</span>
        </span>
      </button>
    </section>

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

32 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 “Hotel valet card” 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 a black ground there is only the valet card: at the top the hotel’s brass monogram, the name, Valet parking and the dashed ticket with its number; below, the car row with the icon, the model, where it is parked and the number plate. Then the road drawn from the garage to the main entrance, dotted, with the small car seen from above waiting at the garage. Below, the status and the wait in minutes, the three steps with empty rings and the big brass button Request my car. Pressed, the Requested step ticks, the card lifts by two pixels, the status rolls to On its way and the car sets off: it follows the curve turning with it, the brass line draws behind it, the wait drops minute by minute with a small bounce and the button, now dark, slowly fills like a bar. At the entrance the car brakes with a rock, its headlights open two cones of warm light, the door lights up in brass, the wait becomes Now, the third step ticks and the button turns light again with I’m on my way down. Pressed, the card says goodbye and goes back to how it was. Left alone, a drawn pointer does the whole round.

How it works

The road

A single SVG path is the road twice: dotted grey underneath, and the same in brass on top, with the dash as long as the curve and offset by what is left, so it draws itself behind the car.

The car on the curve

The car is an SVG group placed at a fraction of the road with getPointAtLength; two points just before and after give the angle, so it turns with the curve. GSAP only animates the fraction, from 0 to 1.

The wait and the steps

The minutes come from the fraction and only roll when they change; the steps tick with a tick drawn by its stroke and a small elastic on the ring.

The arrival

The car group leans forward a pixel and a half and comes back on an elastic: the braking. Then the headlights, a cone with a radial gradient, rise in opacity and the is-ready class lights up the door and the card’s glow.

Values to change

NameFileDefaultWhat it changes
ETA_MINUTESscript.js4The wait shown when you ask for the car, in minutes.
TRIP_TIMEscript.js6.5How many seconds the car takes from the garage to the door in the demo.
SPRINGscript.js1How lively the springs are (0 none, 1.6 a lot).
LIGHTSscript.js1How bright the headlights are on arrival (0 off).
BRANDscript.js"Hollin House"The name of the hotel.
PLATEscript.js"LK21 ROW"The car’s number plate.
LOOPscript.jstrueLeft alone, the drawn pointer does the round again.

Try them in the Playground

When to use it

In the app of a hotel, a resort or a holiday home with parking, on the room services page, in a valet or car pick-up app: anywhere a guest asks for something that arrives and wants to see how long is left.

On phones

The card narrows to 92 vw and the vertical sizes use clamp with vh, so it fits the phone box; the road is an SVG that scales with the width, and below 520 pixels of height the labels under the road are hidden.

With reduced motion

No trip and no bounces: the car goes from the garage to the door halfway through the time, the states and labels change with fades, the ticks appear already drawn. The drawn pointer is not shown, the demo still repeats.

Pitfalls

  • The car’s rotation must come from nearby points on the curve, not from a derivative: getPointAtLength only gives points, and two points two units apart are enough.
  • The car’s transform is written as an SVG attribute (translate and rotate in viewBox units), not with GSAP x and y, which would work in CSS pixels and drift when the SVG scales.
  • The minutes must be rounded up and rewritten only when they change, otherwise the number bounces on every frame.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

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

Testing

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