Pull To Refresh Library For Mobile And Desktop For The Web | pull-to-reload.js

Pull-to-reload is a pull-to-refresh implementation for the web. Designed to work with both mobile and desktop devices. It fits well in web applications or single-page applications (SPAs). formality to the seventh degree.

pull to refresh library android, pull to refresh in javascript, pull to refresh npm, pull to refresh pure javascript

Simple And Lightweight “back to top” Vue.js Component

How to make use of it:

Install it via NPM:

$ npm install pull-to-reload

1. Create the updated items and content as follows:

<div id="ptr">
<div id="content">

2. Start the pull-to-reload.js process.

document.addEventListener("DOMContentLoaded", function() {
  ptr = new PullToReload();

3. Possible options with default values.

document.addEventListener("DOMContentLoaded", function() {
  ptr = new PullToReload({
        '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 () {
          }, 1000);
        } // Required

Pull To Refresh Library For Mobile And Desktop, pull-to-reload Plugin/Github

See Demo And Download

Official Website(ErlendEllingsen): Click Here

This superior jQuery/javascript plugin is developed by ErlendEllingsen. For extra advanced usage, please go to the official website.

Related Posts


Image Slider With 20 Cool Transitions Component | vue-flux

Vue flux is an image slider developed with Vuejs 2 that comes with 20+ nice transitions out of the box. Included transitions 2D transitions Fade: Fades from…


Simple background Image Parallax Scroll Plugin In jQuery

Background parallax effect is a simple jQuery background image without any library. Uses jQuery’s scroll() function to track the scroll event and applies the exact parallax scroll…


Modular Color Picker Plugin for Bootstrap | BS Colorpicker

Bootstrap Colorpicker is a standard color picker plugin for Bootstrap 4. Colorpicker Plugin for Bootstrap 5/4/3 frameworks that allow you to add a color picker to an…


GDPR Friendly iFrame Manager In Vanilla JS | iframemanager

IframeMananger is a lightweight JavaScript plug-in that helps you to comply with GDPR by completely removing iframes at first and setting a notice related to that service….


Diagonal Thumbnails Carousel Slider | Anime.js

Diagonal Slider is a cool mini carousel made with Anime.js JavaScript library. It takes a bunch of pictures and turns them into a circular user interface where…


Notiflix Notification, Popup Boxes, Loading Indicators, and More in JavaScript Library

Notiflix is the JavaScript library of client-side unblocked notifications, popups, load indicators, and more that makes your web projects so much better. Notiflix is a versatile, highly…