-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.html
91 lines (83 loc) · 1.72 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>js13k-2018</title>
<style>
body {
margin: 0;
background: #000;
color: #fff;
font-family: Futura, sans-serif;
-webkit-font-smoothing: antialiased;
overflow: hidden;
}
[hidden] {
display: none !important;
}
@keyframes f {
50% {
opacity: 1;
}
100% {
opacity: 0;
}
}
.t {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
pointer-events: none;
font-size: 4rem;
letter-spacing: .5rem;
animation: f 8s forwards;
text-shadow: 0 0 .5rem rgba(0, 0, 0, .2);
}
/* reticle */
.r {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: .5rem;
height: .5rem;
border: 2px solid rgba(255, 255, 255, .5);
border-radius: 50%;
}
/* progress */
.p {
position: absolute;
display: flex;
bottom: 1.5rem;
left: 1rem;
width: calc(50vw - 1rem);
height: .5rem;
background: rgba(0, 0, 0, .5);
border-radius: 9999px;
}
.p::before {
content: 'grappling hook (shift)';
position: absolute;
bottom: 100%;
margin-bottom: .5rem;
text-shadow: 2px 2px rgba(0, 0, 0, .2);
}
.p::after {
content: '';
width: var(--p-w);
background: #fff;
border-radius: 9999px;
}
</style>
</head>
<body>
<div class="g">
<canvas id="c"></canvas>
<div class="t">WANDER</div>
<div class="r"></div>
<div class="p" hidden></div>
</div>
<script type="module" src="./src/index.js"></script>
</body>
</html>