-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
140 lines (118 loc) · 2.89 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
<style>
body {
background-color: #171d28;
margin: 0px;
overflow: hidden;
}
.berd {
width: 100vw;
height: 100vh;
position: absolute;
left: 0px;
top: 0px;
background-color: #171d28;
}
.berd[open] {
background-color: #171d2800;
}
.berd > summary {
width: calc(353px / 4 - 1px);
height: calc(274px / 4 - 1px);
display: block;
position: fixed;
left: calc(((543px - 353px) / 4 - 0px)/2);
top: calc(((558px - 274px) / 4 - 0px)/2);
background-size: contain;
text-decoration: none;
z-index: 1;
}
.berd[open] > summary {
width: calc(543px / 4 - 1px);
height: calc(558px / 4 - 1px);
left: 0px;
top: 0px;
background-image: url("assets/cage.png");
}
.berd.ltr > summary {
animation: flap 0.2s infinite, fly2 2.5s infinite;
}
.berd.ltr.d2 > summary {
animation: flap 0.2s infinite, fly2 3s -1.5s infinite;
}
.berd.ltr[open] > summary {
animation: fly2 2.5s infinite;
animation-play-state: paused;
}
.berd.ltr.d2[open] > summary {
animation: fly2 3s -1.5s infinite;
animation-play-state: paused;
}
.berd.rtl > summary {
animation: flap 0.2s infinite, fly 2.5s infinite;
}
.berd.rtl.d2 > summary {
animation: flap 0.2s infinite, fly 3s -2s infinite;
}
.berd.rtl[open] > summary {
animation: fly 2.5s infinite;
animation-play-state: paused;
}
.berd.rtl.d2[open] > summary {
animation: fly 3s -2s infinite;
animation-play-state: paused;
}
:root {
--fly-length: 200px;
}
@keyframes fly {
0%, 100% {
transform: translate(0px, var(--fly-length)) rotate(5deg);
}
50% {
transform: translate(var(--fly-length), -5px);
}
}
@keyframes fly2 {
0%, 100% {
transform: translate(var(--fly-length), var(--fly-length)) rotate(-5deg);
}
50% {
transform: translate(0px, 0px) rotate(5deg);
}
}
@keyframes flap {
0% {
background-image: url("assets/berd0.png");
}
100% {
background-image: url("assets/berd1.png");
}
}
.victory {
width: 100vw;
height: 100vh;
position: absolute;
color: white;
font-size: 100px;
text-align: center;
font-family: Rosario;
top: 200px;
font-weight: bold;
}
.box {
width: 100vw;
height: 100vh;
position: absolute;
left: 0px;
top: 0px;
}
</style>
<div class="victory">YOU WIN!!!</div>
<details class="berd ltr"><summary style="margin: 300px 100px"></summary></details>
<details class="berd ltr d2"><summary style="margin: 200px 500px"></summary></details>
<details class="berd rtl d2"><summary style="margin: 500px 800px"></summary></details>
<details class="berd rtl"><summary style="margin: 0px 1000px"></summary></details>
<details class="berd rtl d2"><summary style="margin: 0px 200px"></summary></details>
<details class="berd ltr"><summary style="margin: 600px 1200px"></summary></details>
<details class="berd rtl"><summary style="margin: 700px 100px"></summary></details>
<details class="berd ltr d2"><summary style="margin: 200px 1400px"></summary></details>