Skip to content
animorio
IT
All components

Moving quote card

Cards, HoverGSAP, CSS onlyMediumCompressed weight: Demo 5.3 KBGSAP 28 KBFreeDownload the zip

The quote of a moving company in a card: three counters (rooms, boxes, big items) fill the load bar. Past its capacity the van changes size, the bar rescales to the new capacity on a spring, the name rolls and the price is recounted.

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>
<!--
  "Moving quote 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>Moving quote card with the rooms to count and the van's load that fills up</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 quote of a moving company: three counters (rooms, boxes, big items) fill the load of the van; past its
         capacity the van changes size, the bar rescales and the price is recounted -->
    <section class="mv" data-mv aria-label="Moving quote">
      <header class="mv__head">
        <span class="mv__title">Moving quote</span>
        <span class="mv__brand">Carry &amp; Co.</span>
      </header>

      <div class="mv__rows" data-rows></div>

      <div class="load" data-load>
        <div class="load__top">
          <span class="load__van"><span data-van>Medium van</span></span>
          <span class="load__price"><span data-price></span></span>
        </div>
        <div class="load__bar" aria-hidden="true"><span class="load__fill" data-fill><span class="load__shine"></span></span><i></i><i></i><i></i></div>
        <div class="load__foot">
          <span><b data-vol></b> of <b data-cap></b> m³</span>
          <span data-crew></span>
        </div>
      </div>
      <p class="sr" data-live aria-live="polite"></p>
    </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.

18 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 “Moving quote 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 white, a card: three rows (Rooms, Boxes, Big items) each with its pill counter, minus and plus, and below a warm grey panel with the van’s name, the large price, an orange bar with three notches and a line with the cubic metres and the crew. On opening the bar and the numbers rise from zero. Tapping plus or minus, the number leaves in the direction of the count and the new one comes in with a bounce, the cubic metres and the price count, the bar settles on a spring. When the volume exceeds the capacity the van changes (“Medium van” becomes “Large truck”): the name rolls, the bar rescales to the new capacity with a longer spring and the whole panel takes a small push. At zero the minus switches off.

How it works

A single calculation

Every tap calls the same function: it adds up the volume (each item has its cubic metres), picks the first van that holds it, works out price, hours and crew. Everything else is showing that result.

Numbers and bar, two motions

Cubic metres, capacity and price count with power2.out, no spring: a count never overshoots. The bar (scaleX from the left) uses back.out, and elastic.out when the van changes, because there the full scale changes too.

The counter

The number leaves by 70% in the direction of the count in 0.1 seconds and the new one comes in with back.out(2.4). The buttons have a real disabled at both ends.

Values to change

NameFileDefaultWhat it changes
ROOMSscript.js2How many rooms at the start.
BOXESscript.js20How many boxes at the start.
BIGscript.js3How many big items at the start.
RATEscript.js12The price per cubic metre, in euros (made up).
ACCENTscript.js#f26a2eThe colour of the load.
PAUSEscript.js1.25Alone: how many seconds between one tap and the next.
LOOPscript.jstrueLeft alone, a pointer changes the counts.

Try them in the Playground

When to use it

On the site of a moving or van hire company, a self storage, any quote where different quantities add up to one measure that triggers a tier (shipping, catering, scaffolding).

On phones

The same card, as wide as the screen; the counter’s buttons are 30 pixels wide inside a 36 pixel pill. In short windows the rows drop to 42 pixels.

With reduced motion

The numbers change without rolling or counting, the bar goes straight to its size and the van’s name changes without motion.

Pitfalls

  • When the van changes the bar can go down even though the load grows (the capacity is larger): that is why the change has the rolling name and the panel’s push, otherwise it looks like a mistake.
  • Two tweens on the same object with different properties (the numbers and the bar): only the first has overwrite, the other starts after it.
  • The price has a fixed height with clipping: the number’s small hop must not move the bar below.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

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

Testing

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