How to add reading progress bar in blogger | download source code

I will guide you to Add Reading Progress Bar in Blogger, Ok, let’s begin!

Step 1. At first, you need to go to the Blogger dashboard i.e.

Step 2. Go to the Themes Section and Click Edit HTML Button.

Step 3. Copy the CSS Code given below.

/* Progress Reading Bar */

Step 4. Paste the CSS Code above the ]]></b:skin> tag.
Step 5. Copy the JS Code given below.

window.onscroll = function() {
function myFunction(){
    var winScroll = document.body.scrollTop || document.documentElement.scrollTop;
    var height = document.documentElement.scrollHeight - document.documentElement.clientHeight;
    var scrolled = (winScroll / height) * 100;
    document.getElementById("myBar").style.width = scrolled + "%";

Step 6. Paste the JS Code above the </body> tag.
Step 7. Copy the HTML Code given below.

<div class='progress-container'>
<div class='progress-bar' id='myBar' style="width:0%;"></div>

Step 8. Paste the HTML Code just below the <body> tag.
Step 9. Click on Save!