Notification texts go here Contact Us Buy Now!
Posts

How to Add Gradient Reading Progress Bar in Blogger ?

Please wait 0 seconds...
Scroll Down and click on Go to Link for destination
Congrats! Link is Generated

Step:1

সর্বপ্রথমে নিচের CSS Code টি Copy করুন । AndThan Edit HTML এ গিয়ে ]]></b:skin> এর উপর নিচের Copy করা CSS Code টি Past করুন ।

/* Progress Reading Bar by Techy DarshaN*/
.progress-container{width:100%;position:fixed;z-index:99;top:0;left:0;}
.progress-bar{height:5px; background: linear-gradient(to right, #ff3030 ,#ff6f00 ,#ffc400);}

Step:2

এরপর নিচের JavaScript Code টিকে Copy করুন এবং Edit HTML এ গিয়ে Close </body> tag এর উপর নিচের Copy করা JS Code টি Past করুন ।

  <script>
window.onscroll = function() {
    myFunction()
};
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(&quot;myBar&quot;).style.width = scrolled + &quot;%&quot;;
}
 </script>

Step:3

সবশেষে নিচের HTML Code টি Copy করুন । AndThan Edit HTML এ গিয়ে <body> tag এর উপর নিচের Copy করা HTML Code টি Past করুন ।

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

যদি আপনি উপরের HTML যোগ করেন তাহলে সমস্ত সাইটে এবং আপনার হোম পেজে প্রগ্রেস বার প্রদর্শিত হবে। আপনি যদি এই অগ্রগতি বারটি শুধুমাত্র আপনার পোস্টে Saw করাতে চান এবং আপনার হোমপেজে Saw না করতে চান? এক্ষেত্রে উপরের HTML যোগ করার পরিবর্তে শুধু নিচের HTML Code টি যোগ করুন ।

 <b:if cond='data:view.isPost'>  <div class='progress-container'>
<div class='progress-bar' id='myBar' style='width:0%;'/>
    </div> </b:if>
    
ব্যাস ,আপনার কাজ শেষ।
Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.
Site is Blocked
Sorry! This site is not available in your country.