This tutorial shows how to add a reading progress bar to a webpage with long articles, so readers can see how far through the text they are. It walks through the file structure, HTML, JavaScript and CSS in separate segments, and is aimed at people new to building it.
What you’ll learn
✓Add a reading progress bar to a long-form article page
✓Write the JavaScript that tracks scroll position through an article