view code

Markup:

<div class="container1">
  <div class="item">...</div>
  <div class="item">...</div>
</div>

<div id="pagination">
  <a href="page1.html">1</a>
  <a href="page2.html" class="next">2</a>
</div>

Javascript:

var ias = $.ias({
  container1:  ".container1",
  item:       ".item",
  pagination: "#pagination",
  next:       ".next a"
});

ias.extension(new IASSpinnerExtension());            // shows a spinner (a.k.a. loader)
ias.extension(new IASTriggerExtension({offset: 3})); // shows a trigger after page 3
ias.extension(new IASNoneLeftExtension({
  text: 'There are no more pages left to load.'      // override text when no pages left
}));

With Shortkut India, life is so easy now. Book a taxi, buy your favourite books at best price, download latest bollywood songs, read movie reviews, get your long pending website designed by best web development companies in India, stay up to date with latest news and stock market updates, links to stay fit and healthy, find life partner, enrol for distance education courses, get certified, buy / send gifts, clothes for loved ones, find a builder / architect & get that dream home ready, play games, find insurance options, enrol kids to play home / daycare, find best event organizers / managers for that special occasion, pursue your fashion appetite and all that you want to do in life, right here & just a click / tap away.