-
Notifications
You must be signed in to change notification settings - Fork 1
/
template.html
63 lines (63 loc) · 1.58 KB
/
template.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title><%= htmlWebpackPlugin.options.title %></title>
<link rel="shortcut icon" href="/public/favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<div id="app">
<style>
#loading {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 999;
background: #fff;
}
@keyframes circle-dash {
0% {
stroke-dasharray: 1, 125;
stroke-dashoffset: 0;
}
50% {
stroke-dasharray: 100, 125;
stroke-dashoffset: -25px;
}
100% {
stroke-dasharray: 100, 125;
stroke-dashoffset: -125px;
}
}
@keyframes rotate {
0% {
transform: rotate(0);
}
100% {
transform: rotate(360deg);
}
}
.circular {
animation: rotate 2s linear infinite;
width: 42px;
height: 42px;
position: absolute;
top: calc(50% - 21px);
left: calc(50% - 21px);
}
circle {
animation: circle-dash 2s ease-in-out infinite;
}
</style>
<div id="loading">
<svg class="circular" viewBox="0 0 50 50">
<circle cx="25" cy="25" r="20" fill="none" stroke="#ff5722" stroke-width="5%" />
</svg>
</div>
</div>
</body>
</html>