CSS Progress Bar Generator

A labeled progress bar, with optional stripes.


The width of the fill is the percent you chose. Stripes are a repeating gradient on top of the solid color. If you animate them, also offer a still version for reduced motion.

Frequently asked questions

How should a screen reader hear this?

Put role="progressbar" on the track and set aria-valuenow to the percent. The CSS does not do that by itself.

Can the bar be vertical?

Swap width for height on the fill and give the track a fixed height. This generator builds a horizontal bar.