Skip to content

mattneary/Elastic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

Pull to refresh is a very prevalent design pattern in mobile apps. However, when making apps for other devices, developers are often unable to find the analog for new platforms. This is where Elastic comes in, offering a desktop experience consistent with pull to refresh.

Elastic

Usage

Provide a wrapper for your page content; the body won't work as the body cannot be wrapped by another element.

<div id="main">
<!--
	contents of website...	
-->
</div>

Tell the jQuery plugin how to handle the refreshing of a given wrapper.

$("#main").pullToRefresh(function(finishedRefreshCallback) {
	// refresh content... 
	putList();
	
	// ...then tell pullToRefresh to finish
	setTimeout(finishedRefreshCallback, 1e3);
});

About

Pull to refresh for the browser.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published