🖼️Progress Bar
Also known as Progress Indicator, Loading Bar
A bar that fills up to show how much of a task is done.
Think of it like
It is like filling a glass with water. You can see how full it is and how much is left.
Example
Emma uploads a video. The bar fills to 40%, so she knows to wait a bit longer.
Why it matters
Seeing the end in sight makes people willing to wait.
Definition
Example code
html
<label for="up">Uploading</label>
<progress id="up" value="40" max="100">40%</progress>Try it
Uploading video.mp40%
About 12 seconds left
Knowing the share done is what buys you a bar with a number on it.
Start it. The number and the time left are what separate this from a spinner.
Common mistake
Key takeaways
- 1Known amount. The app knows what is left.
- 2Fills steadily. Still looks stuck.
- 3A number helps. Like 60%.