Skip to content
animorio
IT
All components

Repair quote card

Cards, Hover, Transitions, SVGGSAP, CSS onlyMediumCompressed weight: Demo 11 KBGSAP 28 KBFreeDownload the zip

The quote of a made-up garage, Fenwick Motorworks, for a brake service: every line (parts, labour, fluid, filter) has its own switch, and switched off it is struck through and narrows while the total with VAT rolls on reels to the new sum, one digit after another. Approve quote stretches into a strip where you sign with the finger or the mouse: the signature drops a blue Approved stamp on the quote, the card gives a pixel and the switches lock.

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>
<!--
  "Repair 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>The repair quote card with the rolling total and the approved 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 repair quote of Fenwick Motorworks, an invented garage: each line has its own switch, the total rolls
         on reels, and Approve quote opens a strip to sign in; the signature lands an Approved stamp on the card -->
    <section class="quote" data-quote aria-labelledby="quote-title">
      <svg class="quote__defs" aria-hidden="true" width="0" height="0">
        <filter id="ink" x="-10%" y="-20%" width="120%" height="140%">
          <feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="2" seed="7" result="n"/>
          <feDisplacementMap in="SourceGraphic" in2="n" scale="1.6" xChannelSelector="R" yChannelSelector="G" result="d"/>
          <feTurbulence type="fractalNoise" baseFrequency="1.8" numOctaves="1" seed="3" result="g"/>
          <feColorMatrix in="g" type="matrix" values="0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 -1.5 1.45" result="holes"/>
          <feComposite in="d" in2="holes" operator="in"/>
        </filter>
      </svg>

      <header class="quote__head">
        <span class="quote__logo" aria-hidden="true">
          <svg viewBox="0 0 24 24"><path d="M12 3.2l7.6 4.4v8.8L12 20.8l-7.6-4.4V7.6z"/><circle cx="12" cy="12" r="3.1"/></svg>
        </span>
        <span class="quote__meta">
          <span class="quote__brand" id="quote-title">Fenwick Motorworks</span>
          <span class="quote__sub">Q-2318 · Estate, 84,210 km</span>
        </span>
        <span class="quote__status" data-status>
          <span class="chip" data-chip>
            <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>Awaiting</span>
          </span>
          <span class="stamp" data-stamp aria-hidden="true">
            <span class="stamp__ink">
              <span class="stamp__word">Approved</span>
              <span class="stamp__date" data-stamp-date>09 Nov 2026</span>
            </span>
          </span>
        </span>
      </header>

      <ul class="lines" data-lines aria-label="Quote lines"></ul>

      <div class="sums">
        <div class="sums__row">
          <span>VAT 20%</span>
          <span class="sums__vat" data-vat>£0.00</span>
        </div>
        <div class="sums__total">
          <span class="sums__label">Total <span class="delta" data-delta aria-hidden="true"></span></span>
          <span class="reels" data-reels aria-hidden="true"></span>
          <span class="sr" data-total-text></span>
        </div>
      </div>

      <div class="approve" data-approve>
        <button class="approve__btn" type="button" data-btn>
          <span class="approve__face" data-face>
            <span class="approve__words">Approve quote</span>
            <svg class="approve__icon" viewBox="0 0 16 16" aria-hidden="true"><path d="M3.2 12.6c2.2-.2 3.4-4.6 5-4.6 1.2 0 .2 3 1.4 3 1 0 1.6-2.2 3.2-2.4"/></svg>
          </span>
        </button>
        <div class="pad" data-pad aria-hidden="true">
          <span class="pad__hint" data-hint>Sign here to approve</span>
          <span class="pad__x" aria-hidden="true"><svg viewBox="0 0 10 10"><path d="M2 2l6 6M8 2L2 8"/></svg></span>
          <span class="pad__line" aria-hidden="true"></span>
          <svg class="pad__ink" data-ink aria-label="Signature area" role="img">
            <g data-preset-g><path class="pad__path" data-preset pathLength="1" d="M4 34c6-4 10-20 16-24 4-3 5 4 2 12-3 9-7 15-4 15 4 0 9-18 14-18 3 0 1 9 3 10 3 1 6-9 9-9 2 0 1 7 4 7 3 0 5-8 8-8 2 0 1 5 3 5 4 0 8-6 12-7M10 41c22-3 46-4 74-6"/></g>
            <path class="pad__path" data-free d=""/>
          </svg>
          <span class="pad__signed" data-signed>Signed by R. Okafor · 12:32</span>
          <button class="pad__action" type="button" data-cancel>Cancel</button>
        </div>
      </div>
    </section>
    <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.

31 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 “Repair 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

A warm white card with four lines of a garage quote, the VAT and the total. Each line has a switch: the knob stretches as it runs and settles round with a pixel of bounce, the line switched off is struck through from the left, its name narrows and greys; the total rolls on reels, cents first and then the other digits, with a leading zero folding away when needed, and next to Total a chip says for a moment how much changed. Approve quote opens into a signing strip whose line draws itself; sign with the finger or the mouse and, once you lift it, the blue Approved stamp falls on the head of the card, prints over the Awaiting label and the card gives a pixel. Edit lifts the stamp and opens the quote again.

How it works

The rolling total

Each digit of the total is a window one line high holding a strip from 0 to 9; GSAP takes the strip to yPercent minus digit times 10 with back.out (ROLL_BOUNCE), cents first and the others ROLL_STAGGER later. A gradient mask fades the window at top and bottom like a drum; the leading zero folds away by bringing its window's width to zero.

The switches

Each line is a button with role switch and aria-checked. The knob moves in two steps: it runs stretching (scaleX 1.28) to a pixel past its place, then rounds up again with back.out. The strike over a line switched off is an element scaled from 0 to 1, starting from the left when it goes off and leaving to the right when it comes back.

The signing strip

Approve quote and the strip share one box: GSAP takes its height from 44 pixels to the signing height (measured on the window height) with expo.out while the button face fades and the baseline draws with scaleX. The real signature is gathered with Pointer Events and setPointerCapture and becomes an SVG path of quadratic curves through the midpoints, so the stroke stays smooth.

The stamp

The stamp is wide type (wdth 125) in a double border, run through an SVG filter: feTurbulence and feDisplacementMap make the print waver and a second turbulence punches holes in it like real ink. It falls from STAMP_SIZE with power3.in and a turn; on impact the Awaiting label goes, the card sinks a pixel and a half, then both settle with elastic.out.

The pilot

A drawn pointer switches the filter on, the fluid off, opens the strip and signs riding the saved signature path with getPointAtLength while its stroke-dashoffset falls; after the stamp it presses Edit and puts the lines back. At the first real mouse move, tap or key, the pilot stops.

Values to change

NameFileDefaultWhat it changes
VATscript.js20The VAT rate, in percent.
ROLL_TIMEscript.js0.9Seconds for a reel to reach its new digit.
ROLL_STAGGERscript.js0.06Seconds between one reel and the next, from the cents to the hundreds.
ROLL_BOUNCEscript.js1.25How far a reel passes its digit and comes back (0 none).
STAMP_SIZEscript.js1.7How big the stamp is when it starts to fall (1 lands with no fall).
SIGN_TIMEscript.js1.5Seconds the pilot takes to sign.
HOLDscript.js2Seconds the pilot stays on the approved quote.
SPEEDscript.js1Pilot speed.
LOOPscript.jstrueThe pilot starts over.

Try them in the Playground

When to use it

On the landing page of a garage, a tyre shop, a body shop or a car dealer, in the customer area where a job is approved, and in any quote signed online: maintenance, moving, home works, custom services. The customer sees the price change line by line and signs without leaving the page.

On phones

The same animation with adapted sizes: the card is 92% of the screen wide and the height of the lines, the total and the signing strip also follows the window height, so the card fits the phone box. The finger signs just like the mouse, without scrolling the page.

With reduced motion

Nothing moves: the total changes straight to the right digits, the signing strip opens as a fade, the stamp appears already in place and the card does not give; the pilot's pointer is hidden.

Pitfalls

  • The stamp had its rotation and scale in the CSS: GSAP read them back as a matrix and the fall started crooked. The starting pose is set with gsap.set and the CSS keeps only the material.
  • A stamp over the lines would have covered text: it falls on the Awaiting label in the head, which goes at the moment of impact, so no words ever stay under the ink.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

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