-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
115 lines (101 loc) · 2.47 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>Coffee</title>
<!-- 加载时样式 -->
<style>
body {
margin: 0;
padding: 0
}
.loading {
position: fixed;
z-index: 1024;
width: 100%;
height: 100%;
background: #50a3a2;
background: -webkit-linear-gradient(top left, #50a3a2 0, #53e3a6 100%);
background: linear-gradient(to bottom right, #50a3a2 0, #53e3a6 100%);
opacity: .8
}
.done {
display: none
}
.spinner {
margin: 20% auto;
width: 75pt;
height: 60px;
text-align: center;
font-size: 10px
}
.spinner>div {
display: inline-block;
margin: 2px;
width: 6px;
height: 100%;
background-color: #fff;
-webkit-animation: stretchdelay 1.2s infinite ease-in-out;
animation: stretchdelay 1.2s infinite ease-in-out
}
.spinner .rect2 {
-webkit-animation-delay: -1.1s;
animation-delay: -1.1s
}
.spinner .rect3 {
-webkit-animation-delay: -1s;
animation-delay: -1s
}
.spinner .rect4 {
-webkit-animation-delay: -.9s;
animation-delay: -.9s
}
.spinner .rect5 {
-webkit-animation-delay: -.8s;
animation-delay: -.8s
}
@-webkit-keyframes stretchdelay {
0%,
40%,
to {
-webkit-transform: scaleY(.4)
}
20% {
-webkit-transform: scaleY(1)
}
}
@keyframes stretchdelay {
0%,
40%,
to {
-webkit-transform: scaleY(.4);
transform: scaleY(.4)
}
20% {
-webkit-transform: scaleY(1);
transform: scaleY(1)
}
}
</style>
<link rel="stylesheet" href="https://cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link href="https://cdn.bootcss.com/element-ui/2.4.0/theme-chalk/index.css" rel="stylesheet">
<!-- <script src="https://cdn.bootcss.com/element-ui/2.4.0/index.js"></script>
<script src="https://cdn.bootcss.com/element-ui/2.4.0/locale/zh-CN.min.js"></script> -->
</head>
<body>
<div id="load" class="loading">
<div class="spinner">
<div class="rect1"></div>
<div class="rect2"></div>
<div class="rect3"></div>
<div class="rect4"></div>
<div class="rect5"></div>
</div>
</div>
<div id="app"></div>
<script>
document.getElementById('load').className = 'done';
</script>
</body>
</html>