From ecc1cf65022481e7a5eafc6aa6294b55bcaaf1c8 Mon Sep 17 00:00:00 2001 From: taoeer <719012229@qq.com> Date: Mon, 10 Apr 2017 10:09:12 +0800 Subject: [PATCH 1/2] add pull to loading --- demo/dom-list.html | 43 ++++++++++++++++------ src/Scroller.js | 89 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 121 insertions(+), 11 deletions(-) diff --git a/demo/dom-list.html b/demo/dom-list.html index efcc1e7..a944b49 100644 --- a/demo/dom-list.html +++ b/demo/dom-list.html @@ -54,7 +54,7 @@ text-indent: 10px; } - .refresh{ + .refresh, .loading{ background: #7b91aa; color: white; font-weight: bold; @@ -71,20 +71,25 @@ transition: background-color 300ms; } - .refresh.active{ + .refresh.active, .loading.active{ background: #006eb3; } - .refresh.running{ + .refresh.running, .loading.running{ background: #00b373; } - + .loading { + margin-top: 0; + }
-
Pull to Refresh
+
+
Pull to Refresh
+
Pull to Loading
+