Prefer UI is designed in pure Js, if you want to buy it, please contact via Telegram

How to add a Sticky top page loading progress bar using JS and CSS

Make your blog look more beautiful and professional
Please wait 0 seconds...
Scroll Down and click on Go to Link for destination
Congrats! Link is Generated
Hello everyone, Welcome to Prefer UI, You might looking for a tutorial that helps you to implement a page loading progress bar on your website, nowadays it has been seen on several websites and you might be want to implement it on your website then this tutorial is for you. We are using thePase GitHub project to implement it on our website. So without wasting much time let's check how to implement it.

How to implement a Sticky top page loading progress bar?

Before following these steps we recommend you take a backup of your Blogger template, By chance if any mistakes have been done we can undo changes using that backup.

  • First of all, go to your Blogger dashboard
  • Then click on the Theme option from Sidebar.
  • Then click on the drop-down icon near Customize option on that window.
  • Then click on the Edit HTML option from the drop-down menu.
  • Then Find ]]></b:skin> and paste the following CSS just above it or you can paste the following CSS just above </head> by creating <style></style> tags.
  • /* Pace | github.com/CodeByZach/pace */
    .pace {
    	-webkit-pointer-events: none;
    	pointer-events: none;
    	-webkit-user-select: none;
    	-moz-user-select: none;
    	user-select: none
    }
    
    .pace-inactive {
    	display: none
    }
    
    .pace .pace-progress {
    	background: blue;
    	position: fixed;
    	z-index: 2000;
    	top: 0;
    	right: 100%;
    	width: 100%;
    	height: 2px
    }
    
  • Now you need to find close </body> tag and paste the following CDN script just above it
  • <script async='true' src='https://cdn.jsdelivr.net/npm/pace-js@latest/pace.min.js'/>
  • Now click on Save icon to Save HTML
  • Conclusion

    Hope this tutorial will help you to add sticky-top page loading progress bar in your website. If it is useful to you, please share with your friends, If you have any doubts related to this tutorial ask me I. Comment. Thanks for visiting, Hava a nice day!
    0.0/5
    0 ratings
    5
    0 votes
    4
    0 votes
    3
    0 votes
    2
    0 votes
    1
    0 votes
    Happy with technological developments. Writing is mandatory, because knowledge will not be useful if it is accommodated alone.

    إرسال تعليق

    Enter Image URL / Code Snippets / Quotes / name tag, then click parse button accordingly that you have entered. then copy the parse result and paste it into the comment field.


    Cookie Consent
    We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.