Infinite Scroll implementation for famous framework
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
Gruntfile.js
LICENSE
README.md
bower.json
infiniteScrollView.js
package.json

README.md

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