JonnyBGod / Famous Infinitescroll
Licence: mit
Infinite Scroll implementation for famous framework
Stars: ✭ 34
Programming Languages
javascript
184084 projects - #8 most used programming language
famous-infinitescroll
Infinite Scroll implementation for famous framework
Requirements
You can install famous-infinitescroll and its dependencies with bower: bower install famous-infinitescroll
.
Getting started
var InfiniteScrollView = require('famous-infinitescroll/InfiniteScrollView');
this.viewList = [];
this.scrollview = new InfiniteScrollView({
margin: 1000,
offset: 1000
});
this.viewSequence = new ViewSequence(this.viewList);
this.scrollview.sequenceFrom(this.viewSequence);
this.setOffset(this.scrollview.getSize()[1]);
this.scrollview.on('infiniteScroll', function(data) {
this.scrollview.infiniteScrollDisabled = true;
console.log('infiniteScroll');
setTimeout(function () {
this.scrollview.infiniteScrollDisabled = false;
}.bind(this), 1000);
}.bind(this));
Contributors
- João Ribeiro (author)
- Lots of wonderful helper elves on GitHub
TODO
- Fix ALL THE THINGS! on the GitHub issues list
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].