Skip to content
animorio
IT
All components

Order confirmation card

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

The order confirmation card of Ostra Ceramics, a made-up pottery shop: the check draws itself in a green circle, «Thank you, Ana», the order number in mono with a Copy button that turns into Copied with a tick, three pieces arriving in a row with their drawn thumbnails, the total rolling digit by digit, the estimated delivery and the steps line filling up to Confirmed with the marker moving on towards Packed. Track order has an arrow that slides and a sheen that passes. On white, with a single green accent.

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>
<!--
  "Order confirmation 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>Order confirmation card</title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/mona-sans@5.3.0/wdth.css">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/jetbrains-mono@5.3.0/index.css">
  <link rel="stylesheet" href="style.css">
</head>
<body>
  <main class="stage">
    <!-- the order confirmation card of Ostra Ceramics, a made-up pottery shop: the check that draws itself in a circle,
         the order number to copy, the three pieces arriving in a row, the total that rolls,
         the delivery window and the steps line that fills up to Confirmed, then Track order -->
    <section class="card" data-card aria-label="Order confirmed, Ostra Ceramics">
      <span class="card__edge" aria-hidden="true"></span>
      <span class="card__glow" aria-hidden="true" data-glow></span>

      <header class="top">
        <span class="seal" data-seal aria-hidden="true">
          <span class="seal__halo" data-halo></span>
          <svg class="seal__svg" viewBox="0 0 48 48">
            <circle class="seal__ring" cx="24" cy="24" r="21" pathLength="1" data-seal-ring/>
            <path class="seal__tick" d="M15.6 24.6 21.4 30.2 32.6 18.6" pathLength="1" data-seal-tick/>
          </svg>
        </span>
        <div class="top__txt" data-in>
          <h1 class="title">Thank you, Ana</h1>
          <p class="sub">Your order is confirmed. The receipt is on its way to your inbox.</p>
        </div>
      </header>

      <div class="order" data-in>
        <div class="order__txt">
          <p class="lab">Order number</p>
          <p class="num" data-num>OST-48217</p>
        </div>
        <button class="copy" type="button" data-copy aria-label="Copy order number">
          <span class="copy__face copy__face--idle" data-copy-idle>
            <svg class="ico" viewBox="0 0 16 16" aria-hidden="true"><rect x="5.2" y="5.2" width="7.6" height="7.6" rx="1.8"/><path d="M10.6 3.4H5a1.8 1.8 0 0 0-1.8 1.8v5.4"/></svg>
            <span>Copy</span>
          </span>
          <span class="copy__face copy__face--done" data-copy-done aria-hidden="true">
            <svg class="ico ico--tick" viewBox="0 0 16 16"><path d="M3.6 8.4 6.6 11.3 12.4 5.2" pathLength="1" data-copy-tick/></svg>
            <span>Copied</span>
          </span>
        </button>
      </div>

      <ul class="items" aria-label="Items">
        <li class="item" data-item>
          <span class="thumb thumb--mug" aria-hidden="true">
            <svg viewBox="7 6 26 26"><path class="ware" d="M11 13h15v12.5a5.5 5.5 0 0 1-5.5 5.5h-4A5.5 5.5 0 0 1 11 25.5z"/><path class="line" d="M26 16.5h2a3.4 3.4 0 0 1 0 6.8h-2"/><path class="glaze" d="M11 13h15v3.6c-2.4 1.3-4.6-.9-7.5.2s-5 .6-7.5-.4z"/><circle class="speck" cx="15.5" cy="22" r=".7"/><circle class="speck" cx="20.5" cy="26.5" r=".6"/><circle class="speck" cx="22.6" cy="20.4" r=".5"/></svg>
          </span>
          <span class="item__txt"><span class="item__name">Tide mug</span><span class="item__meta">Speckled sand &middot; 2</span></span>
          <span class="item__price">$56.00</span>
        </li>
        <li class="item" data-item>
          <span class="thumb thumb--bowl" aria-hidden="true">
            <svg viewBox="7 6 26 26"><path class="ware" d="M8.5 18h23a11.5 9.5 0 0 1-23 0z"/><path class="glaze" d="M8.5 18h23c-.3 2.5-2.6 2.2-5.2 2.9s-4.4 1.6-6.3 1.1-4.4-1.4-6.6-1.6S8.9 19.8 8.5 18z"/><path class="line" d="M16 30.2h8"/><path class="line" d="M7.5 18h25"/></svg>
          </span>
          <span class="item__txt"><span class="item__name">Low bowl</span><span class="item__meta">Sea glaze &middot; 1</span></span>
          <span class="item__price">$34.00</span>
        </li>
        <li class="item" data-item>
          <span class="thumb thumb--vase" aria-hidden="true">
            <svg viewBox="7 6 26 26"><path class="ware" d="M17 8.5h6v3.2c0 1.6 4.8 3.6 4.8 9.6 0 6.2-3.2 10.2-7.8 10.2s-7.8-4-7.8-10.2c0-6 4.8-8 4.8-9.6z"/><path class="glaze" d="M12.3 22.5c2.4-1.4 4.8.8 7.7-.3s5-.7 7.7.2c-.4 5.6-3.4 9.1-7.7 9.1s-7.3-3.4-7.7-9z"/><path class="line" d="M16.4 8.5h7.2"/></svg>
          </span>
          <span class="item__txt"><span class="item__name">Bud vase</span><span class="item__meta">Ash white &middot; 1</span></span>
          <span class="item__price">$29.00</span>
        </li>
      </ul>

      <div class="sum" data-in>
        <p class="sum__row"><span class="lab">Shipping</span><span class="sum__val">$9.40</span></p>
        <p class="sum__row sum__row--tot"><span class="tot__lab">Total paid</span><span class="tot__val"><span class="roll" data-roll>$000.00</span></span></p>
      </div>

      <div class="ship" data-in>
        <div class="ship__head">
          <p class="lab">Estimated delivery</p>
          <p class="ship__date">Thu 4 &ndash; Fri 5 Dec</p>
        </div>
        <div class="steps" data-steps>
          <span class="steps__track" aria-hidden="true"><span class="steps__fill" data-fill></span><span class="steps__head" data-head></span></span>
          <ol class="steps__list">
            <li class="step is-on" data-step><span class="step__node" aria-hidden="true"><svg viewBox="0 0 12 12"><path d="M3.3 6.2 5.1 7.9 8.7 4.2" pathLength="1" data-step-tick/></svg></span><span class="step__lab">Confirmed</span></li>
            <li class="step" data-step><span class="step__node" aria-hidden="true"></span><span class="step__lab">Packed</span></li>
            <li class="step" data-step><span class="step__node" aria-hidden="true"></span><span class="step__lab">Shipped</span></li>
            <li class="step" data-step><span class="step__node" aria-hidden="true"></span><span class="step__lab">Delivered</span></li>
          </ol>
        </div>
      </div>

      <a class="track" href="#" data-track>
        <span class="track__sheen" aria-hidden="true" data-sheen></span>
        <span class="track__lab">Track order</span>
        <span class="track__arrow" aria-hidden="true" data-arrow><svg viewBox="0 0 16 16"><path d="M3 8h9.4M8.8 4.2 12.6 8l-3.8 3.8"/></svg></span>
      </a>
      <p class="sr" aria-live="polite" data-live></p>
    </section>
  </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.

46 values to change

Works with Claude, Claude Code, ChatGPT, Cursor, VS Code, Windsurf, Codex, Gemini CLI

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 “Order confirmation 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

The card arrives and the green circle swells on a spring: the ring draws all the way round, the tick lands with a small bounce and a thread of light runs along the top edge. Below come the thanks, the order number and the three pieces one after the other, their thumbnails straightening up; the total rolls from zero to 128.40 dollars, the left digits a little later. The steps line fills up to Confirmed, the node lights up with its tick and the marker moves on towards Packed. Copy turns into Copied with a tick and the number lights up for a moment; hovering Track order the arrow slides and a sheen crosses the button. If nobody touches it, the demo does everything by itself and starts over.

How it works

The circle with the check

A 48 unit SVG with the ring and the tick at pathLength 1: they draw with strokeDashoffset from 1 to 0, first the ring and then the tick, while the pale ground swells on a spring. Everything shares the same centre, 24 and 24, so the tick sits in the middle of the circle.

The rolling total

Every digit is a window one line tall holding a column from 0 to 9: the column starts at zero and slides down to its digit with yPercent, the left digits slightly later, like a counter going up.

The steps

The line runs under the whole row and each node sits in the middle of its quarter: the fill widens with scaleX up to the node of the last step done, the node lights up when the line reaches it, then a short marker moves on part of the way towards the next step.

Values to change

NameFileDefaultWhat it changes
NAMEscript.js"Ana"The first name in the thanks.
ORDERscript.js"OST-48217"The order number to copy.
TOTALscript.js128.4The total paid, in dollars: it rolls up from zero.
STEPscript.js1How many steps are done: 1 Confirmed, 2 Packed, 3 Shipped, 4 Delivered.
AHEADscript.js0.38How far the marker has gone towards the next step (0 to 1).
SPRINGscript.js0.55How springy the circle, the Copy button and the steps are (lower = more bounce).
ROLL_TIMEscript.js0.9Seconds each digit of the total takes to roll.
STAGGERscript.js0.09Seconds between one piece and the next as they arrive.
AUTO_PAUSEscript.js1.6Seconds the demo waits at the end before it starts over.
IDLEscript.js6Seconds after your last touch before the demo plays by itself again.

Try them in the Playground

When to use it

On the thank you page of an online shop, right after payment: it confirms that everything went well, gives the number to keep, recalls what was bought and when it arrives, and leads on to tracking the parcel.

On phones

Everything is in em and the size depends on both the width and the height of the window, so the whole card fits the phone box. Copy and Track order are big enough for a thumb; on touch they squash a little and spring back.

With reduced motion

No springs or movement: the card fades in already complete, the circle with its tick, the total already written, the steps in place; Copy changes face with a fade.

Pitfalls

  • The two faces of the Copy button are absolutely positioned and the button has its own width: a hidden «Copied» in the flow would widen it and the visible label would no longer be centred.
  • With autoRound off the ticks at pathLength 1 draw themselves instead of popping in.
  • The card’s arrival runs on its own timeline: a touch stops the self-playing demo, never the card half way in.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0, JetBrains Mono (font variabile) 5.3.0.

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

Testing

Tested on 1 December 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