-
Notifications
You must be signed in to change notification settings - Fork 4
/
spa-loading-template.html
84 lines (79 loc) · 1.44 KB
/
spa-loading-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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<style>
.loading {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
display: flex;
justify-content: center;
align-items: center;
color: #da9a39;
}
#spinner {
width: 60px;
}
#spinner #sGD stop {
stop-color: #da9a39;
}
#spinner .path-solid {
stroke: #da9a39;
}
</style>
<div class="loading">
<svg
version="1.1"
viewBox="0 0 64 64"
width="0.8em"
xmlns="http://www.w3.org/2000/svg"
id="spinner"
>
<circle
class="path-gradient"
cx="32"
cy="32"
r="28"
fill="none"
stroke="url(#sGD)"
stroke-width="5"
/>
<path
class="path-solid"
d="M 32,4 A 28 28,0,0,0,32,60"
fill="none"
stroke="#000"
stroke-width="5"
stroke-linecap="round"
/>
<defs>
<linearGradient
id="sGD"
gradientUnits="userSpaceOnUse"
x1="32"
y1="0"
x2="32"
y2="64"
>
<stop
stop-color="#000"
offset="0.1"
stop-opacity="0"
class="stop1"
></stop>
<stop
stop-color="#000"
offset=".9"
stop-opacity="1"
class="stop2"
></stop>
</linearGradient>
</defs>
<animateTransform
values="0,0,0;360,0,0"
attributeName="transform"
type="rotate"
repeatCount="indefinite"
dur="750ms"
></animateTransform>
</svg>
</div>