All Projects → nevergiveup-j → zepto-refresh

nevergiveup-j / zepto-refresh

Licence: other
实现下拉到底部和上拉到顶部再拉就出现刷新效果

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to zepto-refresh

Arrowdrawable
纯Paint实现的一个射箭效果,可用作Loading动画。
Stars: ✭ 103 (+415%)
Mutual labels:  refresh
Mjrefresh
An easy way to use pull-to-refresh.
Stars: ✭ 13,565 (+67725%)
Mutual labels:  refresh
YanXuanRefresh
仿网易严选下拉刷新动画效果
Stars: ✭ 37 (+85%)
Mutual labels:  refresh
View Load Retry
这个加载框架有点不一样,针对View进行加载,加载页面还保持了原View的属性,侧重点在灵活,哪里需要加载哪里,加载状态页面完全自定义,无任何限制,针对加载结果可以按需配置对应页面,LeakCanary检测无内存泄漏
Stars: ✭ 119 (+495%)
Mutual labels:  refresh
Pull To Refresh.rentals Ios
This project aims to provide a simple and customizable pull to refresh implementation. Made in Yalantis
Stars: ✭ 2,171 (+10755%)
Mutual labels:  refresh
React Native Smartrefreshlayout
基于android SmartRefreshLayout https://github.com/scwang90/SmartRefreshLayout 开发的插件,可提供类似ios的弹性刷新
Stars: ✭ 240 (+1100%)
Mutual labels:  refresh
Glastoselenium
A bot for booking Glastonbury tickets using selenium
Stars: ✭ 89 (+345%)
Mutual labels:  refresh
zepto.clearinput
zepto clear input
Stars: ✭ 15 (-25%)
Mutual labels:  zepto
Smilerefresh
微笑下拉刷新。这是在 SwipeRefreshLayout基础上修改的下拉刷新库。
Stars: ✭ 203 (+915%)
Mutual labels:  refresh
goRefresh
让下拉刷新炫酷起来~轻松接入lottie动画,支持listview recyclerview scrollerview webview 。同时支持listview和recyclerview上拉加载
Stars: ✭ 24 (+20%)
Mutual labels:  refresh
React Native Mjrefresh
基于ios MJRefresh https://github.com/CoderMJLee/MJRefresh 开发的插件,可提供自定义的弹性刷新
Stars: ✭ 140 (+600%)
Mutual labels:  refresh
Listloading
listloading是一个移动端的上拉、下拉加载更多的组件。主要依赖于iscroll.js v5.1.2基础上开发的组件,基础库可以使用jquery.js或者zepto.js操作dom节点,目前我是使用了zepto.js作为基础库操作dom,以jquery插件的形式存在。如果不想以插件方式使用,则只需要把listloading直接移植你需要的库里面就ok啦。listloading主要针对移动端而生,在使用浏览器自带滚动,用户体验很不友好,与Android和ios差别甚远,所以选择iscroll.js,它实现方式是使用css3动画translate 3D 转换来实现滚动效果,transform属性使用硬件加速,性能方法得到很大提高。 https://gtdalp.github.io/widget/listloading/demos/listloading.html
Stars: ✭ 169 (+745%)
Mutual labels:  refresh
Flutter easyrefresh
A flutter widget that provides pull-down refresh and pull-up load.
Stars: ✭ 2,989 (+14845%)
Mutual labels:  refresh
Pull To Refresh
ESPullToRefresh is developed and maintained by Vincent Li. If you have any questions or issues in using ESPullToRefresh, welcome to issue. If you want to contribute to ESPullToRefresh, Please submit Pull Request, I will deal with it as soon as possible.
Stars: ✭ 1,591 (+7855%)
Mutual labels:  refresh
LCRefresh
简单的swift 版的 下拉刷新控件,希望可以给你提供一个思路。
Stars: ✭ 21 (+5%)
Mutual labels:  refresh
React Native Rk Pull To Refresh
a pull to refresh component for react-native, same api on both android and ios
Stars: ✭ 100 (+400%)
Mutual labels:  refresh
Shswiperefreshlayout
Android 升级版 SwipeRefreshLayout,支持RecyclerView、ScrollView等大部分组件,下拉刷新(Refresh)和上拉加载(Loadmore),支持自定义HeaderView和FooterView
Stars: ✭ 236 (+1080%)
Mutual labels:  refresh
EasyRefresher
The refresh control associated with the scroll view.
Stars: ✭ 15 (-25%)
Mutual labels:  refresh
Management
Management Endpoints used to allow insight into your applications
Stars: ✭ 31 (+55%)
Mutual labels:  refresh
react-pullrefresh
Pull to refresh react component.
Stars: ✭ 61 (+205%)
Mutual labels:  refresh

Zepto.refresh.js

实现下拉到底部和上拉到顶部再拉就出现刷新效果

查看效果地址

Zepto.refresh

初始化

NPM

npm install --save zepto-refresh

直接HTML引入

<script src="zepto.min.js"></script>	
<script src="zepto.refresh.js"></script>

使用

NPM

var Refresh = require('zepto-refresh');

Refresh('.wrap', {
  // 内容元素
  contentEl: '#J_scroller',
  // 开启刷新事件,默认true
  isRefresh: true,
  // 刷新回调
  refreshCallback: function(complete) {

  },
  // 加载更多回调
  loadingMoreCallback: function(complete) {

  }
});

HTML

$(window).refresh({
  // 内容元素
  contentEl: '#J_scroller',
  // 开启刷新事件,默认true
  isRefresh: true,
  // 刷新回调
  refreshCallback: function(complete) {

  },
  // 加载更多回调
  loadingMoreCallback: function(complete) {

  }
});

options Object配置

参数 类型 说明
contentEl: #J_content String 内容ID
isRefresh: true Boolean 默认开启刷新
isLoadingMore: true Boolean 默认开启加载更多
distanceToRefresh: 100 Number 下拉可刷新高度
minDistanceToRefresh: 100 Number 下拉最小阈值
maxDistanceToRefresh: 200 Number 下拉最大阈值
interval: 5 Number 更新限制时间, 默认不限制
refreshCallback: function(){} Function 刷新回调
loadingMoreCallback: function(){} Function 加载更多回调

更新版本

v1.2内容

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