-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
55 lines (49 loc) · 1.13 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
</head>
<body>
<div class="container">
<svg class="loader-container" viewBox="0 0 50 50">
<circle class="path-example-5" cx="25" cy="25" r="20" />
</svg>
</div>
<style>
.container {
max-width: 150px;
}
.loader-container {
animation: rotate 2s linear infinite;
}
.path-example-5 {
stroke: black;
fill: none;
stroke-width: 2;
stroke-linecap: round;
stroke-dasharray: 1, 126;
animation: dash-3 1.5s ease-in-out infinite;
}
@keyframes rotate {
100% {
transform: rotate(360deg);
}
}
@keyframes dash-3 {
0% {
stroke-dasharray: 1, 126;
stroke-dashoffset: 0;
}
50% {
stroke-dasharray: 126, 126;
stroke-dashoffset: -50;
}
100% {
stroke-dasharray: 126, 126;
stroke-dashoffset: -124;
}
}
</style>
</body>
</html>