PulltoRefresh.js
A small, but powerful JavaScript library crafted to power your webapp's pull to refresh feature. No markup needed, highly customizable and dependency-free!
Download now!Demos(mobile-only)
A small, but powerful JavaScript library crafted to power your webapp's pull to refresh feature. No markup needed, highly customizable and dependency-free!
Download now!Demos(mobile-only)
Download the script, include it in your webapp and initialize it:
PullToRefresh.init({ mainElement: '#main', // above which element? onRefresh(done) { setTimeout(() => { done(); // end pull to refresh alert('refresh'); }, 1500); } });
You can also return a promise, and more. Check out our demos!
Just install and you're ready to go.
You don't need to change your HTML markup!
Need something else? Check out our API!
Under 8kbs.
Just plain ol' JavaScript.
Something's missing? Contribute!