How to add loading animation for blogger

HOW TO ADD LOADING ANIMATION TO BLOGGER

1. To install loading widget, you need to to go to blogger-theme-and click edit html, find(ctrl+f) ]]></b:skin>and insert the following CSS which is given below.


 #loader {

background-color: #fff; background-image: url(http://2.bp.blogspot.com/-oP
GZaNs5sVA/VjMsQ7sIZQI/AAAAAAAAA9w/q9k
-wOikJQI/s1600/preloader.gif); background-position: center center; background-repeat: no-repeat; background-size: 70px 70px; bottom: 0px; left: 0px; position: fixed; right: 0px; top: 0px; z-index: 9999; }


The highlighted section of the code is a link of an animation image.
you can change it to the following options.

1.

http://1.bp.blogspot.com/-2IKobKg7qTg/VjtC2zU7aQI/AAAAAAAAiBU/BTWeYS66OLk/s1600/preloader%2B%25285%2529.gif

2.


http://2.bp.blogspot.com/-P5otrHI1RXA/VjtDQyzPqII/AAAAAAAAiCs/HcVcf4H6k34/s1600/animation3%2B-%2B%25D0%25BA%25D0%25BE%25D0%25BF%25D0%25B8%25D1%258F.gif


3.


http://2.bp.blogspot.com/-j4pZvsYffXg/VjtDSWqy-6I/AAAAAAAAiEY/vVa-t8Qbdkk/s1600/gear.gif


4.

http://1.bp.blogspot.com/-K_flPsge4v4/VjtDTW8glKI/AAAAAAAAiEs/Ws13-xYpgd4/s1600/loading%2B%25282%2529%2B-%2B%25D0%25BA%25D0%25BE%25D0%25BF%25D0%25B8%25D1%258F.gif






5.



http://2.bp.blogspot.com/-2-xhiuaRtmA/VjtDQKYc1ZI/AAAAAAAAiCc/Tum9Q_9JG08/s1600/Preloader_10%2B-%2B%25D0%25BA%25D0%25BE%25D0%25BF%25D0%25B8%25D1%258F.gif


2. Now need to find in your theme <body>  and paste after him:

HTML

<b:if cond='data:blog.pageType == &quot;index&quot;'> <div id='loader'/> </b:if>


If you want that widget to work on all pages, not only on the Home page, then do not copy the code highlighted in orange. 

3. And the final stage, now we are looking for the code 

</body> paste before it.

java script

<script type='text/javascript'>//<![CDATA[ // Loader $(window).bind("load",function(){$("#loader").fadeOut(1e3)}); //]]> </script>

4. save it and check the result














Post a Comment

2 Comments