Skip to content

Commit f8622d5

Browse files
author
zhangxinxu
committed
make CSS of loading more simple
make CSS of loading more simple
1 parent aeb59f1 commit f8622d5

File tree

4 files changed

+10
-23
lines changed

4 files changed

+10
-23
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mobilebone",
3-
"version": "2.4.0",
3+
"version": "2.4.1",
44
"description": "Bone main for mobile web APP with a sigle page mode.",
55
"main": "src/mobilebone.js",
66
"directories": {

src/mobilebone.css

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ html, body, .page {
6565
7px -7px 0 1.5px currentColor, /* right-top, 1.5px expand */
6666
7px 7px currentColor, /* right-bottom */
6767
-7px 7px currentColor; /* left-bottom */
68-
-webkit-animation: loading 1s step-start infinite;
69-
animation: loading 1s step-start infinite;
68+
-webkit-animation: spin 1s steps(8) infinite;
69+
animation: spin 1s steps(8) infinite;
7070
/*center*/
7171
position: absolute;
7272
top: 0; right: 0; bottom: 0; left: 0;
@@ -127,25 +127,11 @@ html, body, .page {
127127
}
128128

129129
/* chrysanthemum loading effect */
130-
@-webkit-keyframes loading {
130+
@-webkit-keyframes spin {
131131
0% { -webkit-transform: rotate(0deg); }
132-
12% { -webkit-transform: rotate(45deg); }
133-
25% { -webkit-transform: rotate(90deg); }
134-
37% { -webkit-transform: rotate(135deg); }
135-
50% { -webkit-transform: rotate(180deg); }
136-
63% { -webkit-transform: rotate(225deg); }
137-
75% { -webkit-transform: rotate(270deg); }
138-
87% { -webkit-transform: rotate(315deg); }
139-
90% { -webkit-transform: rotate(360deg); }
140-
}
141-
@keyframes loading {
132+
100% { -webkit-transform: rotate(360deg); }
133+
}
134+
@keyframes spin {
142135
0% { transform: rotate(0deg); }
143-
12% { transform: rotate(45deg); }
144-
25% { transform: rotate(90deg); }
145-
37% { transform: rotate(135deg); }
146-
50% { transform: rotate(180deg); }
147-
63% { transform: rotate(225deg); }
148-
75% { transform: rotate(270deg); }
149-
87% { transform: rotate(315deg); }
150-
90% { transform: rotate(360deg); }
136+
100% { transform: rotate(360deg); }
151137
}

src/mobilebone.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
*
3939
* @type string
4040
**/
41-
Mobilebone.VERSION = '2.4.0';
41+
Mobilebone.VERSION = '2.4.1';
4242

4343
/**
4444
* Whether catch attribute of href from element with tag 'a'

test/base-slide/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
<li><a href="#&page1">页面1-#&amp;page1</a></li>
1515
<li><a href="#page2">页面2-#page2</a></li>
1616
<li><a href="#page3">页面3</a></li>
17+
<li><a>测试菊花:<div class="mask"><i class="loading"></i></div></a></li>
1718
</ul>
1819
<ul>
1920
<li><a href="../index.html" data-ajax="false">&laquo; 返回测试引导首页</a></li>

0 commit comments

Comments
 (0)