Skip to content

alexblack/infinite-scroll

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Infinite-Scroll

Inspired by: http://ravikiranj.net/drupal/201106/code/javascript/how-implement-infinite-scrolling-using-native-javascript-and-yui3

  • No dependencies
  • Tested in Chrome 17, IE7, Firefox 11, Android 2.3 Browser, iPad 2 with IOS5
  • Handles touch events to respond before the end of the user's scroll on devices like the iPad

Usage

var options = {
  distance: 50,
  callback: function(done) {
    // 1. fetch data from the server
    // 2. insert it into the document
    // 3. call done when we are done
    done();
  }
}
    
// setup infinite scroll
infiniteScroll(options);

About

Infinite scrolling in native javascript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published