Build a Styled Progress Bar

Using accent-color

The simplest way to change the color of a progress bar.

RTL

Customized Styling

Using pseudo-elements for deeper customization and custom indeterminate animations.

40% uploaded

Indeterminate State

Omit the value attribute for tasks of unknown duration.

RTL

Same styles under dir="rtl": the fill grows from the inline start. The indeterminate animation is physical, so it is reversed via :dir(rtl) to travel toward the inline end.