Hey you might be attracted to this post by just looking at the title suggesting you to create some awesome post loading effect you might have seen on bigger sites like facebook and twitter but you can now have this same effect running smoothly right in your blogger blog. Well yes the same effect used by Mashable to load its older post as soon as person scrolls down can now be applied to blogger blogs default blogger template currently but soon it will be available for every custom blogger template too.
So if you are not getting what I am talking about then check out the demo, just scroll down and see older posts loading automatically without clicking an button or pagination number.
So now if you got it what I am talking about then lets jump into the tutorial to create this effect in your blogger blog. Now there is one problem due to lengthy steps, this tutorial is divided into 3 parts so check below.
Part 2. Adding Infinite Scrolling Effect to Custom Blogger Templates.
Part 3. Adding Infinite Scrolling Effect to other Widgets like Disqus System.
Part 1. Adding Infinite Scrolling Effect to Default Blogger Template
So now currently we will be posting Part 1, so if you are using default blogger template without any pagination customization or anything then this thing will work for you so check below steps.
- Open Blogger.com > Template > Edit HTML.
- Now press
Ctrl +F and search for</head>
tag, now paste below code about it.<script src='//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js'></script>
<script src='http://www.fieg.nl/wp-content/themes/fieg-b/js/jquery.ias.min.js' type='text/javascript'></script>
<script type='text/javascript'>
jQuery.ias({
container : '.blog-posts',
item: '.post-outer',
pagination: '#blog-pager',
next: '#blog-pager-older-link a',
loader: 'http://www.henley-putnam.edu/Portals/_default/Skins/henley/images/loading.gif'
});
</script> - Now if you already have that jquery line installed remove that and do upload the .js file on your own server, now just click on Save Template.
- Now refresh your blog and scroll to bottom and see this awesome effect.
So now you might be able to see that awesome infinite loading effect on your blogger blog. For any problem do comment below.
No comments:
Post a Comment