
The elastic button
Buttons, Hover, Text
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.
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 & 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>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
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 siteEvery 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.
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 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.
| Name | File | Default | What it changes |
|---|---|---|---|
ROOMS | script.js | 2 | How many rooms at the start. |
BOXES | script.js | 20 | How many boxes at the start. |
BIG | script.js | 3 | How many big items at the start. |
RATE | script.js | 12 | The price per cubic metre, in euros (made up). |
ACCENT | script.js | #f26a2e | The colour of the load. |
PAUSE | script.js | 1.25 | Alone: how many seconds between one tap and the next. |
LOOP | script.js | true | Left alone, a pointer changes the counts. |
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).
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.
The numbers change without rolling or counting, the bar goes straight to its size and the van’s name changes without motion.
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.
Tested on 16 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.