Use one animated mark for live, done, stopped and failed, so every ending picks up exactly where the motion was.

The problem

Most loading indicators swap icons: a spinner, then a checkmark. The swap is a hard cut, and it happens wherever the spinner happened to be in its loop. It looks like the work was interrupted rather than finished.

Swapping also blurs what motion means. If a spinner can sit there while the app is really waiting on you, people learn to wonder whether it’s stuck.

What I concluded

One SVG for every state. While work is live, a short comet travels around a star outline. When it ends, the outline closes from wherever the comet is right now, the star folds away, and the ending (a dot, a square, an X) pops in.

// Settle: pick the outline up where the comet is, draw it closed.
const offset = getComputedStyle(path).strokeDashoffset;
lap.current?.cancel();
path.animate(
  [
    { strokeDasharray: `${TAIL} ${1 - TAIL}`,
      strokeDashoffset: offset },
    { strokeDasharray: "1 0", strokeDashoffset: offset },
  ],
  { duration: 420, easing: "ease-out", fill: "forwards" }
);

Reading the live offset is what makes it feel continuous. There’s no jump back to a start position.

Being one element also helps assistive tech. The mark keeps one accessible name (“AI: live”, then “AI: done”) that changes, instead of one icon leaving and another arriving with a different label.

Rules

  • Motion only means work in flight. Done is still, waiting on you is still. Only live moves.
  • Change state, don’t swap elements. The ending grows out of the motion.
  • Settle from where it is. Read the current position before animating the close.
  • Reduced motion means no comet. Live draws the whole outline still, and an ending shows straight away.
  • One accessible name that changes. Not two icons with two labels.

What you get

Endings feel like endings, not cuts. And because motion is reserved for real work, a moving mark can be trusted: nobody has to wonder whether it’s stuck.

Related: Status labels, Assistant panel