8
8
a , img {
9
9
-webkit-touch-callout : none;
10
10
}
11
-
12
- html , body {
13
- height : 100% ;
14
- -webkit-user-select : none;
11
+ body {
12
+ margin : 0 ;
13
+ -webkit-user-select : none;
15
14
user-select : none;
16
15
-ms-touch-action : none;
17
- overflow : hidden;
18
16
}
19
17
20
- body { margin : 0 ; }
21
-
22
- .page , .mask {
18
+ /* construction */
19
+ html , body , .page {
23
20
height : 100% ; width : 100% ;
24
21
overflow : hidden;
25
- position : absolute;
26
22
}
27
23
.page {
24
+ position : absolute;
28
25
-webkit-animation : .35s ease-in-out;
29
26
animation : .35s ease-in-out;
30
27
}
31
28
.page .out {
32
29
-webkit-transform : translateX (-100% );
33
30
transform : translateX (-100% );
34
31
}
32
+ .page .in {
33
+ -webkit-transform : translateX (0 );
34
+ transform : translateX (0 );
35
+ }
36
+
37
+
38
+ /* mask layer when ajax sending... */
39
+ .mask {
40
+ height : 100% ; width : 100% ;
41
+ background-color : rgba (255 , 255 , 255 , .35 );
42
+ overflow : hidden;
43
+ position : absolute;
44
+ }
45
+ .loading { /* more info: http://www.zhangxinxu.com/wordpress/?p=3357 */
46
+ width : 3px ; height : 3px ;
47
+ border-radius : 100% ;
48
+ box-shadow : 0 -10px 0 1px # 333, /* top, 1px expand */
49
+ 10px 0px # 333, /* right */
50
+ 0 10px # 333, /* bottom */
51
+ -10px 0 # 333, /* left */
52
+
53
+ -7px -7px 0 .5px # 333, /* left-top, 0.5px expand */
54
+ 7px -7px 0 1.5px # 333, /* right-top, 1.5px expand */
55
+ 7px 7px # 333, /* right-bottom */
56
+ -7px 7px # 333 ; /* left-bottom */
57
+ -webkit-animation : loading 1s step-start infinite;
58
+ animation : loading 1s step-start infinite;
59
+ }
60
+ .mask > .loading {
61
+ position : absolute;
62
+ top : 0 ; right : 0 ; bottom : 0 ; left : 0 ;
63
+ margin : auto;
64
+ }
65
+
66
+
67
+ /* Default animation - slide, you can visit '/test/transition/aniamte.css' to get more styles of animation */
35
68
.slide .in {
36
69
-webkit-animation-name : slideinfromright;
37
70
animation-name : slideinfromright;
@@ -40,41 +73,15 @@ body { margin: 0; }
40
73
-webkit-animation-name : slideouttoleft;
41
74
animation-name : slideouttoleft;
42
75
}
43
- .slide .back .out {
76
+ .slide .reverse .out {
44
77
-webkit-animation-name : slideouttoright;
45
78
animation-name : slideouttoright;
46
79
}
47
- .slide .back .in {
80
+ .slide .reverse .in {
48
81
-webkit-animation-name : slideinfromleft;
49
82
animation-name : slideinfromleft;
50
83
}
51
84
52
- .loading { /* detail: http://www.zhangxinxu.com/wordpress/?p=3357 */
53
- width : 3px ; height : 3px ;
54
- border-radius : 100% ; /* 圆角 */
55
- box-shadow : 0 -10px 0 1px # 333, /* 上, 1px 扩展 */
56
- 10px 0px # 333, /* 右 */
57
- 0 10px # 333, /* 下 */
58
- -10px 0 # 333, /* 左 */
59
-
60
- -7px -7px 0 .5px # 333, /* 左上, 0.5px扩展 */
61
- 7px -7px 0 1.5px # 333, /* 右上, 1.5px扩展 */
62
- 7px 7px # 333, /* 右下 */
63
- -7px 7px # 333 ; /* 左下 */
64
- -webkit-animation : loading 1s step-start infinite;
65
- animation : loading 1s step-start infinite;
66
- }
67
-
68
- .mask {
69
- background-color : rgba (255 , 255 , 255 , .35 );
70
- }
71
- .mask > .loading {
72
- position : absolute;
73
- top : 0 ; right : 0 ; bottom : 0 ; left : 0 ;
74
- margin : auto;
75
- }
76
-
77
- /* animation */
78
85
@-webkit-keyframes slideinfromright {
79
86
from { -webkit-transform : translateX (100% ); }
80
87
to { -webkit-transform : translateX (0 ); }
@@ -108,15 +115,7 @@ body { margin: 0; }
108
115
to { transform : translateX (100% ); }
109
116
}
110
117
111
- @-webkit-keyframes spin {
112
- from { -webkit-transform : rotate (0deg ); }
113
- to { -webkit-transform : rotate (360deg ); }
114
- }
115
- @keyframes spin {
116
- from { transform : rotate (0deg ); }
117
- to { transform : rotate (360deg ); }
118
- }
119
-
118
+ /* chrysanthemum loading effect */
120
119
@-webkit-keyframes loading {
121
120
0% { -webkit-transform : rotate (0deg ); }
122
121
12% { -webkit-transform : rotate (45deg ); }
0 commit comments