Skip to content

Commit 22cde74

Browse files
author
zhangxinxu
committed
add loading for wechat-example
add loading for wechat-example
1 parent 3ad24b3 commit 22cde74

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

src/mobilebone.css

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,12 @@ html, body, .page {
5656
-7px 7px #333; /* left-bottom */
5757
-webkit-animation: loading 1s step-start infinite;
5858
animation: loading 1s step-start infinite;
59-
}
60-
.mask > .loading {
59+
/*center*/
6160
position: absolute;
6261
top: 0; right: 0; bottom: 0; left: 0;
6362
margin: auto;
6463
}
6564

66-
6765
/* Default animation - slide, you can visit '/test/transition/aniamte.css' to get more styles of animation */
6866
.slide.in {
6967
-webkit-animation-name: slideinfromright;

test/complex/css/wechat.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ ul,ol{ margin: 0; list-style-type: none; }
5454
.wechat-h-time > time { font-size: 12px; color: #b9b9b9; float: right; }
5555
.wechat-h-time .business { color: #54688D; }
5656
.wechat-h-time + p { margin: 0 20px 0 0; font-size: 14px; color: #a8a8a8; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
57+
.wechat-detail { position: relative; z-index: 1; }
5758

5859
.contact-group { padding-left: 10px; padding-right: 10px; background-color: #fff; }
5960
.contact-list { height: 36px; padding-top: 7.5px; padding-bottom: 8px; border-bottom: 1px solid #D8D8D8; }

test/complex/index.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,10 @@ <h1>微信</h1>
8989
<h1>腾讯新闻</h1>
9090
</div>
9191
<div class="content">
92-
<div class="">
93-
<img id="screenShot" data-src="img/screenshot/1.jpg" data-width="720" data-height="2405">
92+
<div class="wechat-detail">
93+
<img id="screenShot" data-src="img/screenshot/1.jpg" data-width="720" data-height="2405">
9494
</div>
95+
<div class="loading"></div>
9596
</div>
9697
</div>
9798
<div id="pageContacts" class="page out">

test/complex/js/wechat.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ Mobilebone.callback = function(pageinto, pageout) {
3636
ele_link_out && ele_link_out.classList.remove("active");
3737

3838
if (ele_header_out != null) {
39-
header.className = "header slide back in";
40-
footer.className = "footer slide back in";
39+
header.className = "header slide reverse in";
40+
footer.className = "footer slide reverse in";
4141
}
4242
} else if (pageout && ele_header_out == null) {
4343
// include header, slide-out fixed header

0 commit comments

Comments
 (0)