-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathspa-loading-template.html
50 lines (45 loc) Β· 1.56 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
<style>
.loading {
background-color: #1e293b;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
display: flex;
justify-content: center;
align-items: center;
color:#15803d;
}
#spinner {
width: 30px;
}
#spinner #sGD stop {
stop-color: #16a34a;
}
#spinner .path-solid {
stroke: #16a34a;
}
</style>
<div class="loading">
<!-- TODO: REPLACE WITH TAILWIND -->
<svg version="1.1" viewBox="0 0 64 64" width="1em" 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="8" />
<path class="path-solid" d="M 32,4 A 28 28,0,0,0,32,60" fill="none" stroke="#000" stroke-width="8" 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>
</div>
</div>