-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
54 lines (52 loc) · 2.6 KB
/
Copy pathindex.html
File metadata and controls
54 lines (52 loc) · 2.6 KB
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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="CONTENT-TYPE" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="styles/style.css"/>
<title>Preloader Animation</title>
</head>
<body>
<div id="loader">
<svg id="loader-bike" class="bike" viewBox="0 0 48 30" width="48px" height="30px">
<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1">
<g transform="translate(9.5,19)">
<circle class="bike__tire" r="9" stroke-dasharray="56.549 56.549" />
<g class="bike__spokes-spin" stroke-dasharray="31.416 31.416" stroke-dashoffset="-23.562">
<circle class="bike__spokes" r="5" />
<circle class="bike__spokes" r="5" transform="rotate(180,0,0)" />
</g>
</g>
<g transform="translate(24,19)">
<g class="bike__pedals-spin" stroke-dasharray="25.133 25.133" stroke-dashoffset="-21.991" transform="rotate(67.5,0,0)">
<circle class="bike__pedals" r="4" />
<circle class="bike__pedals" r="4" transform="rotate(180,0,0)" />
</g>
</g>
<g transform="translate(38.5,19)">
<circle class="bike__tire" r="9" stroke-dasharray="56.549 56.549" />
<g class="bike__spokes-spin" stroke-dasharray="31.416 31.416" stroke-dashoffset="-23.562">
<circle class="bike__spokes" r="5" />
<circle class="bike__spokes" r="5" transform="rotate(180,0,0)" />
</g>
</g>
<polyline class="bike__seat" points="14 3,18 3" stroke-dasharray="5 5" />
<polyline class="bike__body" points="16 3,24 19,9.5 19,18 8,34 7,24 19" stroke-dasharray="79 79" />
<path class="bike__handlebars" d="m30,2h6s1,0,1,1-1,1-1,1" stroke-dasharray="10 10" />
<polyline class="bike__front" points="32.5 2,38.5 19" stroke-dasharray="19 19" />
</g>
</svg>
</body>
<script>
window.addEventListener('load', function () {
document.getElementById("loader-bike").style.opacity = "0";
setTimeout(function() {
document.getElementById("loader-bike").style.display = "none";
document.getElementById("loader-bike").remove();
document.getElementById("loader").style.opacity = "0";
document.getElementById("loader").style.display = "none";
document.getElementById("loader").remove();
}, 1000);
})
</script>
</html>