Skip to content
animorio
IT
All components

Used car warranty card

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

The warranty card of a used car at an invented dealer, Kestrel Lane: five covered parts tick one after another and with every tick the shield beside the title fills a little more with an emerald liquid that rocks and ripples before it settles on a spring. With all five ticked the shield seals with a white check, a band of light crosses it and a sheen runs over the card. Hovering a row rolls its detail to the limit of the cover; Show what's not covered turns the card over in 3D onto the exclusions and Back to coverage turns it back.

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>
<!--
  "Used car warranty 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 used car warranty card with the shield that fills</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 warranty card of a used car at Kestrel Lane, an invented dealer: the covered parts tick one by one while
         the shield fills like a liquid; Show what's not covered turns the card over -->
    <section class="warranty" data-warranty aria-labelledby="w-title">
      <div class="warranty__shadow" aria-hidden="true" data-shadow></div>
      <div class="warranty__flip" data-flip>

        <div class="face face--front" data-front>
          <span class="face__glow" aria-hidden="true"></span>
          <span class="face__sheen" aria-hidden="true" data-sheen></span>
          <header class="w-head">
            <button class="shield" type="button" data-shield aria-label="Check the coverage again">
              <svg viewBox="0 0 64 72" aria-hidden="true">
                <defs>
                  <clipPath id="shield-clip"><path d="M32 3.5 56.6 11.6c1.7.6 2.9 2.2 2.9 4V33c0 16.8-11.6 29.4-27.5 35.6C16.1 62.4 4.5 49.8 4.5 33V15.6c0-1.8 1.2-3.4 2.9-4z"/></clipPath>
                  <linearGradient id="shield-liquid" x1="0" y1="0" x2="0" y2="1">
                    <stop offset="0" stop-color="#3cc58f"/>
                    <stop offset="1" stop-color="#0d6e4c"/>
                  </linearGradient>
                  <linearGradient id="shield-rim" x1="0" y1="0" x2="1" y2="1">
                    <stop offset="0" stop-color="#ffffff" stop-opacity="0.95"/>
                    <stop offset="0.45" stop-color="#0e7a54" stop-opacity="0.35"/>
                    <stop offset="1" stop-color="#0b5a3e" stop-opacity="0.7"/>
                  </linearGradient>
                  <linearGradient id="shield-band" x1="0" y1="0" x2="1" y2="0">
                    <stop offset="0" stop-color="#fff" stop-opacity="0"/>
                    <stop offset="0.5" stop-color="#fff" stop-opacity="0.7"/>
                    <stop offset="1" stop-color="#fff" stop-opacity="0"/>
                  </linearGradient>
                </defs>
                <path class="shield__base" d="M32 3.5 56.6 11.6c1.7.6 2.9 2.2 2.9 4V33c0 16.8-11.6 29.4-27.5 35.6C16.1 62.4 4.5 49.8 4.5 33V15.6c0-1.8 1.2-3.4 2.9-4z"/>
                <g clip-path="url(#shield-clip)">
                  <path class="shield__back" data-wave-back d=""/>
                  <path class="shield__liquid" data-wave d=""/>
                  <rect class="shield__band" data-band x="-30" y="-10" width="22" height="100" transform="rotate(18)"/>
                  <path class="shield__gloss" d="M9 16.5 30.5 9.3v52C17 54 9 44.5 9 32.5z"/>
                </g>
                <path class="shield__rim" d="M32 3.5 56.6 11.6c1.7.6 2.9 2.2 2.9 4V33c0 16.8-11.6 29.4-27.5 35.6C16.1 62.4 4.5 49.8 4.5 33V15.6c0-1.8 1.2-3.4 2.9-4z"/>
                <path class="shield__tick" data-shield-tick d="M21.5 36.5 28.6 43.4 43 28.6"/>
              </svg>
            </button>
            <div class="w-meta">
              <span class="w-eyebrow">Kestrel Lane Certified</span>
              <h2 class="w-title" id="w-title">24-month warranty</h2>
              <span class="w-sub">Arden GT Estate · until Nov 2028</span>
            </div>
          </header>

          <ul class="w-list" data-list aria-label="What is covered">
            <li class="item" tabindex="0" data-item>
              <span class="check" aria-hidden="true"><svg viewBox="0 0 20 20"><circle class="check__ring" cx="10" cy="10" r="8.4"/><circle class="check__fill" cx="10" cy="10" r="8.4"/><path class="check__tick" d="M6.3 10.3 8.8 12.8 13.8 7.5"/></svg></span>
              <span class="item__name">Engine and turbo</span>
              <span class="item__right"><span class="item__roll"><span>Parts + labour</span><span>Up to $6,000</span></span></span>
            </li>
            <li class="item" tabindex="0" data-item>
              <span class="check" aria-hidden="true"><svg viewBox="0 0 20 20"><circle class="check__ring" cx="10" cy="10" r="8.4"/><circle class="check__fill" cx="10" cy="10" r="8.4"/><path class="check__tick" d="M6.3 10.3 8.8 12.8 13.8 7.5"/></svg></span>
              <span class="item__name">Gearbox and clutch</span>
              <span class="item__right"><span class="item__roll"><span>Parts + labour</span><span>Up to $4,500</span></span></span>
            </li>
            <li class="item" tabindex="0" data-item>
              <span class="check" aria-hidden="true"><svg viewBox="0 0 20 20"><circle class="check__ring" cx="10" cy="10" r="8.4"/><circle class="check__fill" cx="10" cy="10" r="8.4"/><path class="check__tick" d="M6.3 10.3 8.8 12.8 13.8 7.5"/></svg></span>
              <span class="item__name">Steering and suspension</span>
              <span class="item__right"><span class="item__roll"><span>Parts + labour</span><span>Up to $3,000</span></span></span>
            </li>
            <li class="item" tabindex="0" data-item>
              <span class="check" aria-hidden="true"><svg viewBox="0 0 20 20"><circle class="check__ring" cx="10" cy="10" r="8.4"/><circle class="check__fill" cx="10" cy="10" r="8.4"/><path class="check__tick" d="M6.3 10.3 8.8 12.8 13.8 7.5"/></svg></span>
              <span class="item__name">Electrics and screen</span>
              <span class="item__right"><span class="item__roll"><span>Parts + labour</span><span>Up to $2,500</span></span></span>
            </li>
            <li class="item" tabindex="0" data-item>
              <span class="check" aria-hidden="true"><svg viewBox="0 0 20 20"><circle class="check__ring" cx="10" cy="10" r="8.4"/><circle class="check__fill" cx="10" cy="10" r="8.4"/><path class="check__tick" d="M6.3 10.3 8.8 12.8 13.8 7.5"/></svg></span>
              <span class="item__name">Roadside assistance</span>
              <span class="item__right"><span class="item__roll"><span>24 hours</span><span>Tow to 50 mi</span></span></span>
            </li>
          </ul>

          <footer class="w-foot">
            <div class="w-cover">
              <span class="w-cover__label">Coverage</span>
              <span class="w-cover__pct"><span data-pct>0</span>%</span>
              <span class="w-cover__track"><span class="w-cover__fill" data-cover-fill></span></span>
            </div>
            <button class="turn" type="button" data-show>
              <span class="turn__face"><span>Show what's not covered</span>
                <svg viewBox="0 0 20 20" aria-hidden="true"><path d="M4.5 8.2a6 6 0 0 1 10.6-1.7"/><path d="M15.6 3.6v3.2h-3.2"/><path d="M15.5 11.8a6 6 0 0 1-10.6 1.7"/><path d="M4.4 16.4v-3.2h3.2"/></svg>
              </span>
            </button>
          </footer>
        </div>

        <div class="face face--back" data-back aria-hidden="true">
          <header class="w-head">
            <span class="badge" aria-hidden="true">
              <svg viewBox="0 0 64 72"><path class="badge__shape" d="M32 3.5 56.6 11.6c1.7.6 2.9 2.2 2.9 4V33c0 16.8-11.6 29.4-27.5 35.6C16.1 62.4 4.5 49.8 4.5 33V15.6c0-1.8 1.2-3.4 2.9-4z"/><path class="badge__x" d="M24.5 28.5 39.5 43.5M39.5 28.5 24.5 43.5"/></svg>
            </span>
            <div class="w-meta">
              <span class="w-eyebrow">The small print</span>
              <h2 class="w-title">Not covered</h2>
              <span class="w-sub">Parts that wear out with use</span>
            </div>
          </header>
          <ul class="w-list w-list--out" aria-label="What is not covered">
            <li class="item item--out" data-out>
              <span class="cross" aria-hidden="true"><svg viewBox="0 0 20 20"><path d="M7 7l6 6M13 7l-6 6"/></svg></span>
              <span class="item__name">Tyres and wiper blades</span>
              <span class="item__tag">Wear</span>
            </li>
            <li class="item item--out" data-out>
              <span class="cross" aria-hidden="true"><svg viewBox="0 0 20 20"><path d="M7 7l6 6M13 7l-6 6"/></svg></span>
              <span class="item__name">Brake pads and discs</span>
              <span class="item__tag">Wear</span>
            </li>
            <li class="item item--out" data-out>
              <span class="cross" aria-hidden="true"><svg viewBox="0 0 20 20"><path d="M7 7l6 6M13 7l-6 6"/></svg></span>
              <span class="item__name">Paint, dents and glass</span>
              <span class="item__tag">Body</span>
            </li>
            <li class="item item--out" data-out>
              <span class="cross" aria-hidden="true"><svg viewBox="0 0 20 20"><path d="M7 7l6 6M13 7l-6 6"/></svg></span>
              <span class="item__name">Servicing and fluids</span>
              <span class="item__tag">Routine</span>
            </li>
            <li class="item item--out item--note" data-out>
              <span class="cross cross--info" aria-hidden="true"><svg viewBox="0 0 20 20"><path d="M10 9v5"/><path d="M10 6.2v.1"/></svg></span>
              <span class="item__name">No excess to pay on a claim</span>
              <span class="item__tag item__tag--good">$0</span>
            </li>
          </ul>
          <footer class="w-foot w-foot--back">
            <button class="turn turn--back" type="button" data-hide>
              <span class="turn__face">
                <svg viewBox="0 0 20 20" aria-hidden="true"><path d="M11.5 5.5 7 10l4.5 4.5"/></svg>
                <span>Back to coverage</span>
              </span>
            </button>
          </footer>
        </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.

54 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 “Used car warranty 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 white card with an empty shield beside the title 24-month warranty. The five covered parts (engine, gearbox, steering, electrics, roadside assistance) tick one at a time: the dotted circle fills with a bounce, the check draws itself, the name turns from grey to black and Parts + labour comes in on the right. With each tick the liquid in the shield rises a fifth, tilts, rocks and ripples; below, the percentage counts and the cover line grows. At five out of five the shield seals: a white check, a small elastic pop, a band of light across it and a sheen over the card. Hovering a row rolls its detail to the limit (Up to $6,000). Show what's not covered turns the card over in 3D, five degrees past and back, onto the exclusions (tyres, brakes, bodywork, servicing) and the zero excess; Back to coverage turns it back.

How it works

The liquid redrawn on every frame

Inside the shield, clipped to its shape by a clipPath, two SVG waves: on every frame a requestAnimationFrame rebuilds their path as a row of points with two sines on top of each other plus a tilt. The level follows a spring (FILL_SPRING) towards the ticks divided by five; the tilt is a damped pendulum and the ripples fade by themselves. When everything is still and the surface is out of sight the loop stops.

The ticks one at a time

A timeline calls tick(i) every TICK_GAP seconds: the dotted circle fades, the full one grows with back.out and the check draws itself with stroke-dashoffset. Each tick gives the liquid a push (SLOSH), counts the percentage and grows the cover line.

The seal

At five out of five the shield's white check draws itself, the shield gives an elastic pop, a band of light slides inside the clipPath by moving its x attribute and a soft-light sheen crosses the card.

The card that turns over

The two faces sit in a container with preserve-3d and hidden backface-visibility; GSAP turns it 180 degrees plus OVERSHOOT and then back to the right angle, while the card dips a little and the shadow below narrows. The hidden face is inert, so Tab never goes into it.

The pilot

A drawn pointer waits for the ticks, passes over two rows to roll the limits, presses Show what's not covered, stays on the back, turns it back, then the shield drains and it all starts again. At the first real mouse move, tap or key it stops, and any ticks still missing complete.

Values to change

NameFileDefaultWhat it changes
TICK_GAPscript.js0.42Seconds between one tick and the next.
SLOSHscript.js1How much the liquid rocks and ripples at each tick (0 still).
FILL_SPRINGscript.js70The spring that lifts the liquid to its new level: higher is quicker.
FLIP_TIMEscript.js0.9Seconds for the card to turn over.
OVERSHOOTscript.js5Degrees past the end before the card settles.
HOLDscript.js2.2Seconds the pilot stays on the back.
SPEEDscript.js1Pilot speed.
LOOPscript.jstrueThe pilot starts over.

Try them in the Playground

When to use it

On the page of a used car at a dealer or a garage, on a product page with a warranty (appliances, bikes, refurbished phones), in a checkout when a protection plan is added, or as an info card on a landing page: what is covered shows at a glance and the exclusions sit on the back, without leaving the page.

On phones

The same animation with adapted sizes: the card is 92% of the screen wide, rows, shield and buttons also follow the window height, so the whole card fits the phone box. A tap on the button turns the card over and a tap on the shield runs the ticks again.

With reduced motion

Nothing moves: ticks appear already drawn, the liquid reaches its level without waves, the card fades from one face to the other instead of turning; the pilot's pointer is hidden.

Pitfalls

  • GSAP's inline transform on the turning container would wipe the CSS one: the back's 180 degree rotation lives on the face, GSAP turns only the container.
  • With backface-visibility but no -webkit- prefix Safari shows the back mirrored through the front: both are needed.
  • The liquid loop kept redrawing a full, still shield for nothing: it stops when the surface is out of sight and everything is still, and wakes at every tick.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

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