-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
52 lines (51 loc) · 1.66 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Butcher's Life</title>
<style>
/* HTML: <div class="loader"></div> */
.loader {
--s: 60px;
--g :5px;
width: calc(3*(1.353*var(--s) + var(--g)));
display: grid;
justify-items: end;
aspect-ratio: 3;
overflow: hidden;
--_m: linear-gradient(90deg,#0000,#000 15px calc(100% - 15px),#0000);
-webkit-mask: var(--_m);
mask: var(--_m);
}
.loader:before {
content: "";
width: calc(4*100%/3);
background:
conic-gradient(from -90deg at var(--s) calc(0.353*var(--s)),
#fff 135deg,#666 0 270deg,#aaa 0);
--_m:
linear-gradient(to bottom right,
#0000 calc(0.25*var(--s)),#000 0 calc(100% - calc(0.25*var(--s)) - 1.414*var(--g)),#0000 0),
conic-gradient(from -90deg at right var(--g) bottom var(--g),#000 90deg,#0000 0);
-webkit-mask: var(--_m);
mask: var(--_m);
background-size: calc(100%/4) 100%;
-webkit-mask-size: calc(100%/4) 100%;
mask-size: calc(100%/4) 100%;
-webkit-mask-composite: source-in;
mask-composite: intersect;
animation: l8 1s infinite linear;
will-change: transform;
}
@keyframes l8 {
to {transform:translate(calc(100%/4))}
}
</style>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>