Here’s a reading progress widget written in JavaScript, HTML, and CSS. It shows a progress bar at the top of the page that fills up as the user scrolls down.
How It Works:
-
The progress bar (
#progress-bar) expands horizontally as the user scrolls. -
The script calculates the scroll percentage based on the total height of the document and updates the width of the progress bar accordingly.
You can customize the color, height, and animation speed to match your website’s design.
Share this Page your favorite way: Click any app below to share.