An open API service indexing awesome lists of open source software.

https://github.com/omniaretail/papyrus-scroll

Infinite scrolling module for AngularJS.
https://github.com/omniaretail/papyrus-scroll

angularjs infinite mit module scroll

Last synced: 6 months ago
JSON representation

Infinite scrolling module for AngularJS.

Awesome Lists containing this project

README

          

# Papyrus
Just another infinite scrolling module for AngularJS.
[Live demo](https://codepen.io/wichardriezebos/pen/JNwjKR)

# Features
- Efficient item buffering.
- No interuptions while scrolling.
- Adapts automatically to container it's size.

# Getting Started
- Install the module with bower:
```
bower install papyrus-scroll --save
```
- Add script tags to document:
```



```
- Add dependency to your module:
```
angular.module("yourAwesomeApp", ["papyrus-scroll"]);
```
- Create a function to load items:
```
$scope.items = [];
$scope.loadItems = function($amount) {
for(var i = 0; i < $amount; i++) {
$scope.items.push({ });
}
}
```
- Assign required attributes to the container and the item:
```






```
- Optional tune settings:
```
papyrus-scroll-throttle-ms="50"
papyrus-scroll-preload-view-percentage="75"
```