Sha256: 1629fefe592e099efed0b63a509fa44ce60f8f19459c589bc7b80a701fb46488
Contents?: true
Size: 1.62 KB
Versions: 11
Compression:
Stored size: 1.62 KB
Contents
--- title: Infinite Scroll layout: default category: demos infinite_scroll: true --- <section id="copy"> <p>Isotope is interoperable with <a href="http://www.infinite-scroll.com/">Infinite Scroll</a> by Paul Irish. Use the <a href="../docs/methods.html#appended"><code>appended</code></a> method to add new items to the Isotope layout. CSS transitions have been disabled on the container element to avoid triggering AJAX call prematurely.</p> </section> <div id="container" class="variable-sizes clearfix infinite-scrolling"> {% for element in site.elements limit:20 %} {% include element-partial.html %} {% endfor %} </div> <!-- #container --> <nav id="page_nav"> <a href="../pages/2.html"></a> </nav> <script src="../{{ site.jquery_js }}"></script> <script src="../{{ site.isotope_js }}"></script> <script src="../js/jquery.infinitescroll.min.js"></script> <script> $(function(){ var $container = $('#container'); $container.isotope({ itemSelector : '.element' }); $container.infinitescroll({ navSelector : '#page_nav', // selector for the paged navigation nextSelector : '#page_nav a', // selector for the NEXT link (to page 2) itemSelector : '.element', // selector for all items you'll retrieve loading: { finishedMsg: 'No more pages to load.', img: 'http://i.imgur.com/qkKy8.gif' } }, // call Isotope as a callback function( newElements ) { $container.isotope( 'appended', $( newElements ) ); } ); }); </script>
Version data entries
11 entries across 11 versions & 1 rubygems