famous-refresh-loader
A spinning pull to refresh loader that can be used with the famous-flex ScrollView.
Demos
Getting started
Install using bower or npm:
bower install famous-refresh-loader
npm install famous-refresh-loader
Usage
var FlexScrollView = ;var RefreshLoader = ; // create scrollview with pull to refresh headervar scrollView = pullToRefreshHeader: pullToRefresh: true size: undefined 60 // 60px height, to activate refresh pull down at least 120px pullToRefreshBackgroundColor: 'white' ;this;
Options
The following options are supported by the refresh-loader:
var refreshLoader = size: undefined 100 // required color: '#AAAAAA' // particle color particleCount: 10 // number of particles particleSize: 6 // size of particle rotateVelocity: 009 // rotation velocity hideVelocity: 005 // collapse-velocity when hidding quickHideVelocity: 02 // quick collapse-velocity when hidding pullToRefresh: false // enables pull to refresh pullToRefreshBackgroundColor: 'white' // color of surfaces which obscures the loader when pulling pullToRefreshDirection: 1 // set to 0 for horizontal pull to refresh pullToRefreshFooter: false // set to true for footer usage pullToRefreshFactor: 15 // pull 1.5x the size to activate refresh;
Contribute
If you like this project and want to support it, show some love and give it a star.
Contact
- @IjzerenHein
- http://www.gloey.nl
- hrutjes@gmail.com
© 2014 - Hein Rutjes