-
Notifications
You must be signed in to change notification settings - Fork 11
/
index.html
87 lines (87 loc) · 2.28 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<title>配页坊-荣誉出品</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<meta name="renderer" content="webkit" />
<meta name="force-rendering" content="webkit" />
</head>
<body>
<style>
body {
margin: 0;
}
.skeleton {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 1;
background-color: #ededed;
}
.skeleton__loading {
position: absolute;
top: 50%;
left: 50%;
width: 24px;
height: 24px;
border: 2px solid #fff;
margin-top: -12px;
margin-left: -12px;
border-radius: 50%;
background-color: transparent;
}
.skeleton__loading:after, .skeleton__loading:before {
position: absolute;
top: 11px;
left: 11px;
content: '';
height: 2px;
background-color: #fff;
-webkit-transform-origin: 1px 1px;
transform-origin: 1px 1px;
animation-name: timerhand;
animation-timing-function: linear;
animation-iteration-count: infinite;
-webkit-animation-name: timerhand;
-webkit-animation-timing-function: linear;
-webkit-animation-iteration-count: infinite;
}
.skeleton__loading:after {
width: 10px;
-webkit-animation-duration: 2s;
animation-duration: 2s;
}
.skeleton__loading:before {
width: 8px;
-webkit-animation-duration: 8s;
animation-duration: 8s;
}
@-webkit-keyframes timerhand {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
@keyframes timerhand {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
</style>
<div class="skeleton"><div class="skeleton__loading"></div></div>
<div class="js-app"></div>
</body>
</html>