A scroll progress indicator is a visual cue on a webpage that shows how far a user has scrolled down a page. It’s typically a bar, line, or percentage that appears on the side or top of the page and moves as the user scrolls. The code bellow, adds a scroll progress indicator on the top of the single post page
why you need a scroll progress indicator in your blog you ask?
Improves user experience: A scroll progress indicator helps users navigate long articles and pages more easily. By showing them how far they’ve scrolled and how much more is left, they can better manage their time and know when to expect the end of the content. This can improve their overall experience on your website.
Encourages engagement: When users see how much content is left to read, they may be more likely to continue scrolling to the end. This can increase engagement with your content and reduce bounce rates.