Skip to content
animorio
IT
Back to the library

Order tracking timeline

SVG, ScrollGSAP, CSS onlyMediumCompressed weight: Demo 8.6 KBGSAP + ScrollTrigger 45 KBLenis 5.3 KBFreeDownload the zip

Scroll inside the preview

The order page of a made-up homeware and linen shop, Halden: the card stays still while you scroll and the scroll walks the order down a vertical timeline drawn in SVG. The green line draws itself behind a small ring that carries the parcel, the ring stops at every step (Ordered, Packed, Shipped, Out for delivery, Delivered) and settles on a spring with a pixel of overshoot, the step lights up with its time and a line, its icon draws itself stroke by stroke and at the top the delivery estimate rolls to its new value.

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 tracking timeline" 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>Halden order tracking</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>
  <!-- the order page of a made-up homeware shop, Halden. The card sticks while you scroll: a vertical timeline draws
       itself, a small ring carries the parcel down the line and stops at every step with a settle, the step lights up
       with its time and a line, its icon draws itself, and the delivery estimate at the top updates. -->
  <main>
    <section class="viaggio" data-viaggio>
      <div class="palco" data-palco>
        <div class="grana" aria-hidden="true"></div>
        <div class="cornice" data-cornice>
          <article class="carta" data-carta aria-label="Order tracking">
            <div class="carta__luce" aria-hidden="true"></div>

            <header class="testa">
              <div class="marchio">
                <svg class="marchio__segno" viewBox="0 0 20 20" aria-hidden="true"><path d="M4 3.5v13M16 3.5v13M4 10h12"/></svg>
                <span class="marchio__nome">Halden</span>
              </div>
              <span class="stato" data-stato>
                <span class="stato__parola" data-stato-parola>Confirmed</span>
              </span>
            </header>

            <div class="stima">
              <p class="stima__etichetta"><span data-etichetta>Estimated delivery</span></p>
              <p class="stima__valore">
                <span class="stima__fessura"><span class="stima__testo" data-stima>Nov 12 – 14</span></span>
                <svg class="stima__spunta" data-spunta-stima viewBox="0 0 20 20" aria-hidden="true"><path d="m4.5 10.4 3.6 3.6 7.4-7.6" pathLength="1"/></svg>
              </p>
              <p class="stima__nota"><span data-nota>Standard shipping</span></p>
              <div class="articolo">
                <span class="articolo__tela" aria-hidden="true"></span>
                <span class="articolo__nome">Linen throw, oat</span>
                <span class="articolo__ordine">HL-20417</span>
              </div>
            </div>

            <ol class="tappe" data-tappe>
              <li class="binario" aria-hidden="true">
                <svg class="binario__svg" data-binario>
                  <path class="binario__base" data-base/>
                  <path class="binario__pieno" data-pieno/>
                </svg>
                <div class="scia" data-scia></div>
                <div class="segno" data-segno>
                  <div class="segno__anello" data-anello></div>
                  <div class="segno__pacco" data-pacco><i></i></div>
                </div>
              </li>

              <li class="tappa" data-tappa>
                <span class="tappa__nodo" data-nodo>
                  <svg viewBox="0 0 24 24" aria-hidden="true"><path d="M7 3.6h10a1 1 0 0 1 1 1v15.2l-2.2-1.4-2.2 1.4-1.6-1.4-1.6 1.4-2.2-1.4L6 19.8V4.6a1 1 0 0 1 1-1z" pathLength="1"/><path d="M9.2 8.4h5.6M9.2 11.6h5.6M9.2 14.8h3.2" pathLength="1"/></svg>
                </span>
                <span class="tappa__testo">
                  <span class="tappa__riga"><b class="tappa__nome">Ordered</b><time class="tappa__ora" data-ora>Mon 9 · 9:14 AM</time></span>
                  <span class="tappa__dettaglio" data-dettaglio>Payment confirmed, order received</span>
                </span>
              </li>
              <li class="tappa" data-tappa>
                <span class="tappa__nodo" data-nodo>
                  <svg viewBox="0 0 24 24" aria-hidden="true"><path d="M4 7.6 12 3.6l8 4v8.8l-8 4-8-4z" pathLength="1"/><path d="M4 7.6l8 4 8-4M12 11.6v8.8" pathLength="1"/></svg>
                </span>
                <span class="tappa__testo">
                  <span class="tappa__riga"><b class="tappa__nome">Packed</b><time class="tappa__ora" data-ora>Mon 9 · 4:52 PM</time></span>
                  <span class="tappa__dettaglio" data-dettaglio>Folded, wrapped and sealed at our studio</span>
                </span>
              </li>
              <li class="tappa" data-tappa>
                <span class="tappa__nodo" data-nodo>
                  <svg viewBox="0 0 24 24" aria-hidden="true"><path d="M3 6.6h11v9.2H3z" pathLength="1"/><path d="M14 9.6h3.6l3 3.2v3H14" pathLength="1"/><path d="M8.6 17.6a1.7 1.7 0 1 1-3.4 0 1.7 1.7 0 1 1 3.4 0zM18.6 17.6a1.7 1.7 0 1 1-3.4 0 1.7 1.7 0 1 1 3.4 0z" pathLength="1"/></svg>
                </span>
                <span class="tappa__testo">
                  <span class="tappa__riga"><b class="tappa__nome">Shipped</b><time class="tappa__ora" data-ora>Tue 10 · 7:30 AM</time></span>
                  <span class="tappa__dettaglio" data-dettaglio>Handed to the courier, tracking is live</span>
                </span>
              </li>
              <li class="tappa" data-tappa>
                <span class="tappa__nodo" data-nodo>
                  <svg viewBox="0 0 24 24" aria-hidden="true"><path d="M12 20.6s-6.2-5.3-6.2-10.2a6.2 6.2 0 0 1 12.4 0c0 4.9-6.2 10.2-6.2 10.2z" pathLength="1"/><path d="M14 10.3a2 2 0 1 1-4 0 2 2 0 1 1 4 0z" pathLength="1"/></svg>
                </span>
                <span class="tappa__testo">
                  <span class="tappa__riga"><b class="tappa__nome">Out for delivery</b><time class="tappa__ora" data-ora>Wed 11 · 8:05 AM</time></span>
                  <span class="tappa__dettaglio" data-dettaglio>On the van, six stops away</span>
                </span>
              </li>
              <li class="tappa" data-tappa>
                <span class="tappa__nodo" data-nodo>
                  <svg viewBox="0 0 24 24" aria-hidden="true"><path d="M4 10.4 12 4l8 6.4V20H4z" pathLength="1"/><path d="m9 14.3 2.1 2.1 4-4.2" pathLength="1"/></svg>
                </span>
                <span class="tappa__testo">
                  <span class="tappa__riga"><b class="tappa__nome">Delivered</b><time class="tappa__ora" data-ora>Wed 11 · 1:42 PM</time></span>
                  <span class="tappa__dettaglio" data-dettaglio>Left at the front door, signed by R.</span>
                </span>
              </li>
            </ol>
          </article>
        </div>
      </div>
    </section>
  </main>

  <script src="https://cdn.jsdelivr.net/npm/gsap@3.15.0/dist/gsap.min.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/gsap@3.15.0/dist/ScrollTrigger.min.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/lenis@1.3.26/dist/lenis.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.

40 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 “Order tracking timeline” 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 a warm grey ground with a veil of grain, in the middle a white card with a soft, layered shadow: at the top the Halden mark and a status pill, below the label «Estimated delivery» and the large estimate «Nov 12 – 14», the shipping line and the item (a small oat linen square, «Linen throw, oat» and the order number). Further down the five steps on a dotted line. On arrival the card rises and the first step, Ordered, fills with green and draws its receipt. As you scroll a green ring moves down the line and the line takes colour behind it; between two steps the parcel shows inside the ring and tilts a hair with the speed, the ring stretches a little and leaves a short trail. At a step the ring goes one pixel too far, comes back and squashes slightly before it turns round again; the step’s circle swells with green on an elastic, the icon draws itself stroke by stroke, the time and the line rise into place. Meanwhile at the top the estimate rolls up to its new value («Thu, Nov 12», «Wed, Nov 11», «1 – 3 PM», «1:42 PM»), the label and the line change, and the pill changes its word while stretching on a spring, green from Out for delivery. At Delivered a check draws itself next to the time. Scrolling back the steps go out and the estimate rolls backwards. With a mouse, over a lit step the row takes a soft ground and the icon rises a pixel.

How it works

A still card and a long journey

The section is 520vh tall and holds a sticky stage 100lvh tall with the card in the middle. The card is drawn at 340 pixels and the frame around it scales it to fit the stage, measuring width and height on every resize: on a phone it gets smaller instead of spilling out at the bottom. ScrollTrigger only gives the section’s progress, from 0 to 1; Lenis makes it smooth.

Progress turned into rests and trips

The progress is split into a short rest, then four trips with a rest between each (DWELL times one trip) and a long rest at the end. During trips the step moves on sine.inOut, during rests it holds: so the ring sets off gently, travels and really stops, even when the person scrolling never does.

A spring chases the target

The position the scroll wants is not given straight to the ring: a spring with stiffness SPRING and damping 1 - BOUNCE chases it on every frame of the GSAP ticker, in four small steps. The spring is what gives the extra pixel on arrival and the settle, and its speed stretches the ring, tilts the parcel and sets the length of the trail.

The line drawn behind the ring

The line is an SVG path from the centre of the first step to that of the last, measured with offsetTop. Underneath sits the same line dotted (stroke-dasharray 0.5 5 with round caps), on top the green one with a stroke-dasharray as long as the line and a stroke-dashoffset that comes down to where the ring is.

The step that lights up

Each step lights up when the ring is within two pixels of its centre and goes out only twelve pixels above it: with the spring’s overshoot it never flickers. As it lights, the circle swells through a CSS variable animated by GSAP on an elastic, the icon strokes (paths with pathLength 1) go from stroke-dashoffset 1 to 0 staggered, the time and the line rise five pixels.

The estimate that rolls and the pill that stretches

When the lowest lit step changes, the estimate leaves upwards in a slot with hidden overflow and comes in from below on back.out; scrolling back it does the opposite turn. The status pill measures its width before and after the new word and goes from one to the other on an elastic.

Values to change

NameFileDefaultWhat it changes
RIDEscript.js1How much scroll the whole journey takes: 2 is twice as long.
DWELLscript.js0.7How long the ring rests at each step, compared with one trip between two steps.
SPRINGscript.js170Stiffness of the spring that pulls the ring: higher follows the scroll more tightly.
BOUNCEscript.js0.34How much the ring overshoots and settles at a step: 0 none, 0.6 lively.
STRETCHscript.js1How much the ring stretches with its speed: 0 stays round.
TRAILscript.js1Length of the soft trail behind the moving ring: 0 none.
DRAWscript.js0.6Seconds a step’s icon takes to draw itself.

Try them in the Playground

When to use it

For the «track your order» page of an online shop, for the confirmation page that tells a parcel’s journey, for a landing page section that explains how a delivery works, or for any step-by-step process (an application, a sign-up, a booking) told as you scroll.

On phones

The same animation with adapted sizes: the card scales on both width and height to fit the box, and the line and steps are measured again on every resize, even halfway through. Scrolling with a finger moves the ring like the wheel.

With reduced motion

The ring always sits where the scroll says, with no spring, no stretch and no trail; the steps and the estimate change with a fade and the icons are already drawn. No Lenis.

Pitfalls

  • If the ring follows the scroll directly it never really stops: nobody scrolls in steps. The rests have to be built into the map from progress to step, and the spring goes after that, on the position.
  • With the spring the ring passes the step by a pixel and comes back: if the step went out as soon as the ring rose, it would flicker. It lights at two pixels and goes out at twelve.
  • The scale goes on the frame and not on the card: GSAP moves the card on arrival and its transform would wipe the scale. Measurements with offsetTop ignore the scale, so the line and steps stay in card coordinates.
  • GSAP cannot animate a CSS variable that does not exist yet: --pieno is set to 0 before starting.
  • The sticky stage is 100lvh tall, not 100svh: on Safari for iPhone, with the bar collapsing, the card would otherwise jump.

Libraries

GSAP 3.15.0, ScrollTrigger 3.15.0, Lenis 1.3.26, Mona Sans (font variabile) 5.3.0.

Compressed with gzip, the three demo files weigh 8.6 KB; the libraries: GSAP + ScrollTrigger 45 KB, Lenis 5.3 KB.

Testing

Tested on 11 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 animations