Progress bar

Also called progress indicator or loading bar

A horizontal bar that fills from left to right to show how much of a task is done, or slides in a loop while the total is still unknown.

What is Progress bar?

A progress bar is a track with a fill that grows as a task advances. A determinate bar knows the amount of work, such as bytes uploaded or steps finished, and shows it as a percentage. An indeterminate bar does not know yet, so a short segment slides along the track in a loop.

Use a determinate bar for anything that takes more than a few seconds and can be measured: file uploads, exports, installs, imports. Seeing the fill move and knowing the task is 70% done keeps people patient far longer than a spinner. Switch from indeterminate to determinate as soon as you know the total.

Animate the fill with transform: scaleX() for smooth motion, keep it moving steadily, and avoid parking it at 99%. Use the native <progress> element or role="progressbar" with aria-valuenow, and show the percentage as text as well.

Often confused with

Spinner
A spinner only says the app is busy. A progress bar shows how much is done, so use it whenever you can measure the work.
Scroll progress bar
A scroll progress bar shows how far a reader has scrolled down a page. A progress bar tracks a task such as an upload.
Progress ring
A progress ring shows the same kind of value in a compact circle, usually with the number inside. A progress bar fills a horizontal track and fits long tasks in a list.
All terms

Spinner

A small looping animation, usually a rotating ring, that shows the app is busy with a short task of unknown length.

Loading state

The view a screen shows while its data is on the way, designed together with the outcomes that follow: loaded, empty, or error.

Stepper

A multi-step flow with a row of numbered steps, like Account, Profile, Done, that shows where you are and how many steps are left.

Perceived performance

How fast an app feels to people, which skeleton screens, instant feedback, and progressive loading can improve even when the real wait stays the same.