Every blogger wants his blog to look best among his competitors blogs.
This widget will add a bit more chunks of awesomeness in your blog.
The concept of this widget is simple. This is more or less like Exit
Effect we add in Microsoft Powerpoint's Custom Animation. Just like that
whenever the visitors will click any link to leave the current page,
inspite of the old boring loading it will have animation.
A live demo can be seen on my blog itself. Just click any link here and you could see the change.
To add this effect to your blog do the following things.
Adding the CSS
Firstly go to Blog Title → Template → Edit HTML. Press Ctrl + F and search for ]]></b:skin> in search box. After getting the code add the below given code just above ]]></b:skin>
#crunch-page-loader {
position: fixed!important;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 9999;
background: #000 url(' data:image/gif;base64,R0lGODlhKwALAPEAAP///0tKSqampktKSiH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJCgAAACwAAAAAKwALAAACMoSOCMuW2diD88UKG95W88uF4DaGWFmhZid93pq+pwxnLUnXh8ou+sSz+T64oCAyTBUAACH5BAkKAAAALAAAAAArAAsAAAI9xI4IyyAPYWOxmoTHrHzzmGHe94xkmJifyqFKQ0pwLLgHa82xrekkDrIBZRQab1jyfY7KTtPimixiUsevAAAh+QQJCgAAACwAAAAAKwALAAACPYSOCMswD2FjqZpqW9xv4g8KE7d54XmMpNSgqLoOpgvC60xjNonnyc7p+VKamKw1zDCMR8rp8pksYlKorgAAIfkECQoAAAAsAAAAACsACwAAAkCEjgjLltnYmJS6Bxt+sfq5ZUyoNJ9HHlEqdCfFrqn7DrE2m7Wdj/2y45FkQ13t5itKdshFExC8YCLOEBX6AhQAADsAAAAAAAAAAAA=') no-repeat 50% 50%;
color: #FFF;
display: none;
font: 0/0 a;
text-shadow: none;
padding: 1em 1.2em;
}
Adding the HTML and Script
Once you have added the CSS, add the below given code just above </body>.
After adding this code, save the template.<script type='text/javascript'>
//<![CDATA[
$(document.body).append('<div id="crunch-page-loader">Loading...</div>');
$(window).on("beforeunload", function() {
// ... Show the Animation `.fadeIn()`
$('#crunch-page-loader').fadeIn(1000).delay(6000).fadeOut(1000);
});
//]]>
</script>
You are done now. Now you and your visitors can see this awesome and cool Animated Page Loading Effect in you blogger blog.