-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
67 lines (61 loc) · 1.78 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="icon" type="image/png" href="examples/img/favicon.svg">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>syncing spinner</title>
<style>
.spinner {
font-size: 8px;
position: absolute;
top: 50%;
left: 50%;
margin-left: -60px;
margin-top: -60px;
overflow: visible;
opacity: 0;
}
.line {
stroke: #0083FF;
stroke-width: 10;
stroke-dasharray: 120, 37;
stroke-linecap: square;
stroke-linejoin: round;
fill: transparent;
}
.arrow {
fill: #0083FF;
}
.tick {
opacity: 0;
}
</style>
</head>
<body>
<section id="example">
<svg class="spinner" version="1.1" xmlns="http://www.w3.org/2000/svg" width="120" height="120">
<defs>
<clipPath id="clipPath">
<circle cx="60" cy="60" r="55"/>
</clipPath>
</defs>
<g class="background">
<g transform="translate(120, 0) scale(-1, 1)">
<circle class="line" cx="60" cy="60" r="50" clip-path="url(#clipPath)"/>
<g transform="translate(95, 45)">
<path class="arrow" d="M1 16L14.2 0l13.2 15.8H1z"/>
</g>
<g transform="translate(25, 75) rotate(180)">
<path class="arrow" d="M1 16L14.2 0l13.2 15.8H1z"/>
</g>
</g>
</g>
<g class="tick" transform="rotate(-45, 60, 60)">
<path fill="white" d="M17.977 35.553L0 16.276l5.112-4.768 17.727 19.01L52.31 0l4.93 4.76L22.83 40.39l-.316-.305-.168.156-2.98-3.194-1.465-1.416.074-.077z" transform="translate(28, 40) scale(1.15)" fill-rule="evenodd"/>
</g>
</svg>
</section>
<script type="module" src="src/main.ts"></script>
</body>
</html>