← All elements

Order Status Stepper

by @admin · 8 views

<ol class="pc-steps" aria-label="Order progress">
  <li class="is-done">Placed</li>
  <li class="is-done">Packed</li>
  <li class="is-current" aria-current="step">Shipped</li>
  <li>Delivered</li>
</ol>

About this navigation bar

An order-tracking stepper where list items and CSS counters draw numbered circles, finished steps turn into checkmarks and the current step pulses.

How it works

A list with a CSS counter draws the numbered circles, and a pseudo-element draws the line that joins each step to the one before. Items with the is-done class swap the number for a checkmark and turn green, and the is-current item gets a purple outline and a pulsing animation.

Ways to customise it

  • Change the green and purple to your brand colours.
  • Move the is-done and is-current classes to show a different step.
  • Add more li items; the counter numbers them automatically.

Good to know

The current step has aria-current=step so screen readers know where the order is, and the list is labelled. Do not rely on colour alone, which is why finished steps also show a checkmark.

Open an example, copy the HTML and the CSS, and paste them into your page. There is nothing to install and no JavaScript to load.

More in Navigation

View all →