All Projects → ErlendEllingsen → Pull To Reload

ErlendEllingsen / Pull To Reload

Licence: mit
Pull to reload implementation for the web. Designed to work with both mobile and websites.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Pull To Reload

Swiped Events
Adds `swiped` events to the DOM in 0.7k of pure JavaScript
Stars: ✭ 249 (-37.12%)
Mutual labels:  hybrid-apps, touch, html5
Layerjs
layerJS: Javascript UI composition framework
Stars: ✭ 1,825 (+360.86%)
Mutual labels:  touch, html5
Dnd Multi Backend
Multi Backend system for DnD Core & more
Stars: ✭ 129 (-67.42%)
Mutual labels:  touch, html5
Ionic Starter Template
Reinventing the wheel, again! Sorry Ionic Team... but there are many newbies learning on Youtube!
Stars: ✭ 208 (-47.47%)
Mutual labels:  hybrid-apps, html5
Pull Element
Lightweight, high-performance and smooth pull element effect that support all directions
Stars: ✭ 171 (-56.82%)
Mutual labels:  touch, pull-to-refresh
Pure Css3 Animated Border
Pure CSS3 animated border for all html element.
Stars: ✭ 63 (-84.09%)
Mutual labels:  plugin, html5
Amplitudejs
AmplitudeJS: Open Source HTML5 Web Audio Library. Design your web audio player, the way you want. No dependencies required.
Stars: ✭ 3,781 (+854.8%)
Mutual labels:  html5
Textext
Re-editable LaTeX graphics for Inkscape
Stars: ✭ 383 (-3.28%)
Mutual labels:  plugin
Theme Bmw
✋ Smart Voice: Voice for yourself | 微声: 请为自己发声
Stars: ✭ 373 (-5.81%)
Mutual labels:  html5
Hyper Statusline
Status Line Plugin for Hyper
Stars: ✭ 366 (-7.58%)
Mutual labels:  plugin
Admob flutter
Admob Flutter plugin that shows banner ads using native platform views.
Stars: ✭ 390 (-1.52%)
Mutual labels:  plugin
Docker Guacamole
A self-contained guacamole docker container for x64 and ARM. Remotely connect over SSH, RDP or VNC using HTML5.
Stars: ✭ 389 (-1.77%)
Mutual labels:  html5
Libgdx
Desktop/Android/HTML5/iOS Java game development framework
Stars: ✭ 19,420 (+4804.04%)
Mutual labels:  html5
Miox
Modern infrastructure of complex SPA
Stars: ✭ 374 (-5.56%)
Mutual labels:  plugin
Blog
记录前端开发日常点滴。为梦想Coding...
Stars: ✭ 386 (-2.53%)
Mutual labels:  html5
Slimefun4
Slimefun 4 - A unique Spigot/Paper plugin that looks and feels like a modpack. We've been giving you backpacks, jetpacks, reactors and much more since 2013.
Stars: ✭ 369 (-6.82%)
Mutual labels:  plugin
Editormd
Markdown 编辑器 Editor.md for Typecho
Stars: ✭ 389 (-1.77%)
Mutual labels:  plugin
Selectolax
Python binding to Modest engine (fast HTML5 parser with CSS selectors).
Stars: ✭ 368 (-7.07%)
Mutual labels:  html5
Latex.js
JavaScript LaTeX to HTML5 translator
Stars: ✭ 374 (-5.56%)
Mutual labels:  html5
Chartjs Plugin Annotation
Annotation plugin for Chart.js
Stars: ✭ 389 (-1.77%)
Mutual labels:  plugin

☝️👇 pull-to-reload

npm version MIT Licence

This is a pull to refresh implementation for the web. Designed to work with both mobile and desktop devices. Fits nicely with web-apps or single-page applications (SPA). Configurable to the seventh degree.

🌵Preview

Functionality demo

Demo:

https://erlendellingsen.github.io/pull-to-reload/

Install

NPM (Recommended)

npm install pull-to-reload

Direct (Download)

Add pull-to-reload.js to your project.

🌿Usage

Quick example:

Html

<div id="ptr">
    ...
</div>

<div id="content">
    Lorem ipsum dolor sit amet, consectetur adipisicing elit. Dolores doloribus harum sed odit optio, fuga nam modi quod beatae? Tempore sunt molestiae, soluta quas unde exercitationem, modi accusamus pariatur reiciendis!
</div>

Javascript

$(document).ready(function(){
    var ptr = new PullToReload({ 
        'callback-loading': function(){
            setTimeout(function(){
                ptr.loadingEnd();
            }, 5000);
        }
    });
});

Available options:

this.opts = {
        'refresh-element': 'ptr', //Required
        'content-element': 'content', //Required
        'border-height': 1,
        'height': 80,
        'font-size': '30px',
        'threshold': 20,
        'pre-content': '...',
        'loading-content': 'Loading...',
        'callback-loading': function(){ setTimeout(function(){ self.loadingEnd(); }, 1000); } //Required
    }

📎 Dependencies

None 🔥

🥇 Contributors

  • NathanHeffley (Removed jQuery dependency)
  • mdczaplicki (Minified version)

💪🏽 Contribute

If you'd like to contribute to this project you can do so by creating a fork and send in a pull-request.

Make sure to write detailed comments and state your changes when sending in a PR. Keep the code style equal to the current.

Contributions are very much appreciated 😍!

Topics where help is wanted/needed

  • Code: Making pull-to-reload not block regular scrolling functionality (e.g. in mobile apps).
  • Documentation/Wiki - Detailed how to/setup

License

As most of my other projects, this project is licensed as MIT.

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