You Are Here : Home » , » How To Add Animated Page Loading Effect In Blogger

How To Add Animated Page Loading Effect In Blogger

Hey Friends, welcome to the amazing world of tips and tricks. After many SEO tips I am back with some cool Blogger Tricks. In this post I will show you how to animated page loading effect in Blogger. Isn't it cool to show of your visitors a loading effect while your page loads. It will surely give your blog a professional feel. In this post I will provide you different ways to add animation effect in Blogger blog. You can also add animated loading effect on Blogger sidebar. I will explain you each and every ways to create a beautiful animation effect in your blog.
You may be receiving users who don't have much faster Internet speed. And sometimes they may feel bored by waiting while the page loads. If you will add animated page loading effect in your Blogger blog than it will make your users a little less boring experience. Now we can start the tutorial. Lets start with the easy method.

How To Add Animated Page Loading Effect In Blogger

Animated Page Loading Effect For Blogger

This method is very easy and you will not face any difficulties in adding this effect for your blogger blog. This method is mostly based on CSS. It means it can slow your Page loading. If you have many Java scripts and large CSS codes in your blog I will not recommend to add this types of effects as it may slow your page loading time. If you want to add this page loading effect in your blog than follow the steps given below:

How To Add Animated Page Loading Effect In Blogger
Your Loading Image Will Something Look Like This Picture
Let me first remind you to make a backup of your template. It will surely help you if by chance you destroy your template. To make a backup of your template Go to Blogger Home > Dashboard > Template. Now in Template page click on Backup/Restore template and than Download your Template.
Now as you have made a backup of your Blogger Blog. We may now know the trick on adding animated page loading effect in your Blogger Blog.
  • First of all Go To Blogger Home.
  • Now Go to dashboard. In dashboard click on template.
  • In the Template page Click on Edit HTML.
  • Press anywhere on the HTML page and than press CTRL+F to open search box. Now search for "]]><" without quotes.
  • Now you have to paste the code given below just above "]]><".
#loader{background:#F0F0F0 url(http://4.bp.blogspot.com/-BEJNfYhxl3M/UnFGoxKJN7I/AAAAAAAABD8/JGWxbyrbaUo/s1600/Loading+(5).gif) no-repeat 50% 50%;bottom:0;color:#FFF;display:none;left:0;padding:1em 1.2em;position:fixed!important;right:0;top:0;z-index:99999}
  • After you paste the above code as specified we can proceed to next step.
  • Now search for "</body>" tag without quotes. Now paste the code given below just above/before </body> tag.
<script type='text/javascript'>$(function(){$(document.body).append("<div id='loader'></div>");$(window).on("beforeunload",function (){$('#loader').fadeIn(1000).delay(6000).fadeOut(1000);});});</script>
  • Now save the template. You have just added animated page loading effect in your blog with just little CSS codes.
You can also change the image of loading. To insert your custom gif file in place of default image than you can replace the URL in blue with your preferred image.

In the previous method you learnt adding animation on your page loading with CSS method. As I said I will make you familiar with many ways. In this method I will show you adding Cool animated page loading effect with Jquery. This is more advance and easy. It will not slow your page loading so much.  Let's see this method.

Animated Page Loading Effect With Jquery For Blogger Blog

As the title explains this method is based on Jquery. Jqury is really a fun and it helps in adding different types of functions and effects with ease. If you love Jquery and want to prefer this method for adding on your Blogger blog than follow these easy steps.
  • Make sure you have a backup of your Template.
  • Now Go to blogger Home > Dashboard.
  • Now Go to template. In template page click on edit HTML.
  • Now find the </head> tag. Now paste the code given below just above/before </head> tag.
<style> /* jQuery page loading effect  */ #ht-loading { position: fixed; z-index: 50; top: 0; left: 0; width: 100%; height: 100%; background: #FFFFFF url(http://4.bp.blogspot.com/-BEJNfYhxl3M/UnFGoxKJN7I/AAAAAAAABD8/JGWxbyrbaUo/s1600/Loading+(5).gif) no-repeat center; line-height: 350px; text-align: center; font-size: 36px; color: #353231; text-indent: -9999px; } .HT #ht-loading { display: none; } @media only screen and (device-width: 768px) { #loading { position:absolute; width:1040px; min-height:768px; } } #ht-progress-bar { position: absolute; top: 0; left: 0; background: #FFFFFF; opacity: 0.8; width: 0; height: 18px; } #ht-loader { height: 100%; display: none; } </style> <script> (function($){ $("html").removeClass("HT"); $("#header").ready(function(){ $("#ht-progress-bar").stop().animate({ width: "25%" },1500) }); $("#footer").ready(function(){ $("#ht-progress-bar").stop().animate({ width: "75%" },1500) }); $(window).load(function(){ $("#ht-progress-bar").stop().animate({ width: "100%" },600,function(){ $("#ht-loading").fadeOut("fast",function(){ $(this).remove(); }); }); }); })(jQuery); </script>
  • After pasting the above code in the specified place Search for </body> tag. Now you will paste the code given below just above the </body> tag.
<div id='ht-loading'><div id='ht-progress-bar'></div><div id='ht-loader'>Loading...</div></div>
  • Now Save Template. Congrats! you just added Animated page loading effect with Jquery in your Blogger blog.
Further Customization On Jquery Method
  1. You can change the Loading image if you want to change it. To change replace the image URL which is in blue with your own image. It will be good idea to keep animated image.
  2. If you think background color doesn't fit with your animated page loading effect image than you can change the background color of the loading page. To do this change the hex color value #FFFFFF with your preferred background color.
That's all about the amazing page loading effect.

Well these were the two methods of adding animated page loading effect on Blogger blog. I know this loading effect is really cool. I hope it will give your blog more professional feel and you will be able to impress your lovely users with this cool animated page loading effect for Blogger blogs.
If you are facing any type of problem than feel free to ask me.

Ads by Google
If you enjoyed reading this article then please leave a comment or subscribe to our newsletter to get all the future posts delivered to your feed reader or you email desk.

No comments:

Leave a Reply

Welcome to SpicyTweaks.

Copyright © 2013-17 SpicyTweaks. All Rights Reserved.

Scroll to top