All Projects → JonnyBGod → Famous Infinitescroll

JonnyBGod / Famous Infinitescroll

Licence: mit
Infinite Scroll implementation for famous framework

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

TODO

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].