-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathtest.html
315 lines (281 loc) · 12 KB
/
test.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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
<!DOCTYPE html>
<html>
<body>
<a class="btn">Start</a>
<div class="navbar">
<img src="https://t9os.pages.dev/games.png" class="game">
<img src="image.png" class="game2">
</div>
<style>
.navbar {
position: fixed;
bottom: 0;
left: 0;
width: 100px;
height: 600px;
background-color: #333333;
gap:30px;
display: flex;
justify-content: center;
align-items: center;
bottom:0px;
left:0;
opacity: 50%;
border-radius:50px;
border-width: 20px;
border-color: white;
}
.navbar2 {
position: fixed;
top: 0;
right: 0;
width: 1270px;
height: 60px;
background-color: #970b0a;
border-radius:2px;
gap:30px;
display: flex;
justify-content: center;
align-items: center;
bottom:0px;
}
.game{
width:50px;
padding:10px 20px;
border-radius:20px;
}
.game:hover{
background-color:red;
}
.game2{
width:50px;
padding:10px 20px;
border-radius:20px;
bottom: 150px;
position:fixed;
transition: background-color 0.3s ease-in-out;
}
.game2:hover{
background-color:red;
}
body{
background-color:black;
font-family: sans-serif;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
.btn{
background-color:#970b0a;
color:white;
border-radius:10px;
padding:10px 20px;
right:45%;
top:50%;
position:fixed;
font-family:sans-serif;
width:100px;
height:50px;
font-size:45px;
opacity:75%;
}
.head {
color:white;
text-align:center;
top:85px;
right:37%;
position:fixed;
font-size:87px;
}
</style>
<script>
document.addEventListener("DOMContentLoaded", function() {
// Get the select element
var select = document.getElementById("background-select");
// Set initial background image based on stored preference or default
var selectedBackground = localStorage.getItem("selectedBackground");
if (selectedBackground) {
document.body.style.backgroundImage = "url(" + selectedBackground + ")";
select.value = selectedBackground;
}
// Listen for changes in the select element
select.addEventListener("change", function() {
var newBackground = this.value;
document.body.style.backgroundImage = "url(" + newBackground + ")";
localStorage.setItem("selectedBackground", newBackground);
});
});
</script>
<h1 class="head">Blackout</h1>
<!-- wp:cover {"overlayColor":"custom-dark-blue-2","className":"ticss-674e9f08","layout":{"type":"constrained"},"hasCustomCSS":true,"customCSS":".light {\n position: absolute;\n width: 0px;\n opacity: .75;\n background-color: white;\n box-shadow: #e9f1f1 0px 0px 20px 2px;\n opacity: 0;\n top: 100vh;\n bottom: 0px;\n left: 0px;\n right: 0px;\n margin: auto;\n}\n\n.x1{\n -webkit-animation: floatUp 4s infinite linear;\n -moz-animation: floatUp 4s infinite linear;\n -o-animation: floatUp 4s infinite linear;\n animation: floatUp 4s infinite linear;\n -webkit-transform: scale(1.0);\n -moz-transform: scale(1.0);\n -o-transform: scale(1.0);\n transform: scale(1.0);\n}\n\n.x2{\n -webkit-animation: floatUp 7s infinite linear;\n -moz-animation: floatUp 7s infinite linear;\n -o-animation: floatUp 7s infinite linear;\n animation: floatUp 7s infinite linear;\n -webkit-transform: scale(1.6);\n -moz-transform: scale(1.6);\n -o-transform: scale(1.6);\n transform: scale(1.6);\n left: 15%;\n}\n\n.x3{\n -webkit-animation: floatUp 2.5s infinite linear;\n -moz-animation: floatUp 2.5s infinite linear;\n -o-animation: floatUp 2.5s infinite linear;\n animation: floatUp 2.5s infinite linear;\n -webkit-transform: scale(.5);\n -moz-transform: scale(.5);\n -o-transform: scale(.5);\n transform: scale(.5);\n left: -15%;\n}\n\n.x4{\n -webkit-animation: floatUp 4.5s infinite linear;\n -moz-animation: floatUp 4.5s infinite linear;\n -o-animation: floatUp 4.5s infinite linear;\n animation: floatUp 4.5s infinite linear;\n -webkit-transform: scale(1.2);\n -moz-transform: scale(1.2);\n -o-transform: scale(1.2);\n transform: scale(1.2);\n left: -34%;\n}\n\n.x5{\n -webkit-animation: floatUp 8s infinite linear;\n -moz-animation: floatUp 8s infinite linear;\n -o-animation: floatUp 8s infinite linear;\n animation: floatUp 8s infinite linear;\n -webkit-transform: scale(2.2);\n -moz-transform: scale(2.2);\n -o-transform: scale(2.2);\n transform: scale(2.2);\n left: -57%;\n}\n\n.x6{\n -webkit-animation: floatUp 3s infinite linear;\n -moz-animation: floatUp 3s infinite linear;\n -o-animation: floatUp 3s infinite linear;\n animation: floatUp 3s infinite linear;\n -webkit-transform: scale(.8);\n -moz-transform: scale(.8);\n -o-transform: scale(.8);\n transform: scale(.8);\n left: -81%;\n}\n\n.x7{\n -webkit-animation: floatUp 5.3s infinite linear;\n -moz-animation: floatUp 5.3s infinite linear;\n -o-animation: floatUp 5.3s infinite linear;\n animation: floatUp 5.3s infinite linear;\n -webkit-transform: scale(3.2);\n -moz-transform: scale(3.2);\n -o-transform: scale(3.2);\n transform: scale(3.2);\n left: 37%;\n}\n\n.x8{\n -webkit-animation: floatUp 4.7s infinite linear;\n -moz-animation: floatUp 4.7s infinite linear;\n -o-animation: floatUp 4.7s infinite linear;\n animation: floatUp 4.7s infinite linear;\n -webkit-transform: scale(1.7);\n -moz-transform: scale(1.7);\n -o-transform: scale(1.7);\n transform: scale(1.7);\n left: 62%;\n}\n\n.x9{\n -webkit-animation: floatUp 4.1s infinite linear;\n -moz-animation: floatUp 4.1s infinite linear;\n -o-animation: floatUp 4.1s infinite linear;\n animation: floatUp 4.1s infinite linear;\n -webkit-transform: scale(0.9);\n -moz-transform: scale(0.9);\n -o-transform: scale(0.9);\n transform: scale(0.9);\n left: 85%;\n}\n\nbutton:focus{\n outline: none;\n}\n\n@-webkit-keyframes floatUp{\n 0%{top: 100vh; opacity: 0;}\n 25%{opacity: 1;}\n 50%{top: 0vh; opacity: .8;}\n 75%{opacity: 1;}\n 100%{top: -100vh; opacity: 0;}\n}\n@-moz-keyframes floatUp{\n 0%{top: 100vh; opacity: 0;}\n 25%{opacity: 1;}\n 50%{top: 0vh; opacity: .8;}\n 75%{opacity: 1;}\n 100%{top: -100vh; opacity: 0;}\n}\n@-o-keyframes floatUp{\n 0%{top: 100vh; opacity: 0;}\n 25%{opacity: 1;}\n 50%{top: 0vh; opacity: .8;}\n 75%{opacity: 1;}\n 100%{top: -100vh; opacity: 0;}\n}\n@keyframes floatUp{\n 0%{top: 100vh; opacity: 0;}\n 25%{opacity: 1;}\n 50%{top: 0vh; opacity: .8;}\n 75%{opacity: 1;}\n 100%{top: -100vh; opacity: 0;}\n}\n"} -->
<div class="wp-block-cover ticss-674e9f08"><span aria-hidden="true" class="wp-block-cover__background has-custom-dark-blue-2-background-color has-background-dim-100 has-background-dim"></span><div class="wp-block-cover__inner-container"><!-- wp:paragraph {"align":"center","placeholder":"Write title…","fontSize":"large"} -->
<p class="has-text-align-center has-large-font-size">Fluid Up Background Particle Animation</p>
<!-- /wp:paragraph -->
<!-- wp:html -->
<div class='light x1'></div>
<div class='light x2'></div>
<div class='light x3'></div>
<div class='light x4'></div>
<div class='light x5'></div>
<div class='light x6'></div>
<div class='light x7'></div>
<div class='light x8'></div>
<div class='light x9'></div>
<!-- /wp:html --></div></div>
<!-- /wp:cover -->
<style>
.light {
position: absolute;
width: 0px;
opacity: .75;
background-color: white;
box-shadow: #e9f1f1 0px 0px 20px 2px;
opacity: 0;
top: 100vh;
bottom: 0px;
left: 0px;
right: 0px;
margin: auto;
}
.x1{
-webkit-animation: floatUp 4s infinite linear;
-moz-animation: floatUp 4s infinite linear;
-o-animation: floatUp 4s infinite linear;
animation: floatUp 4s infinite linear;
-webkit-transform: scale(1.0);
-moz-transform: scale(1.0);
-o-transform: scale(1.0);
transform: scale(1.0);
}
.x2{
-webkit-animation: floatUp 7s infinite linear;
-moz-animation: floatUp 7s infinite linear;
-o-animation: floatUp 7s infinite linear;
animation: floatUp 7s infinite linear;
-webkit-transform: scale(1.6);
-moz-transform: scale(1.6);
-o-transform: scale(1.6);
transform: scale(1.6);
left: 15%;
}
.x3{
-webkit-animation: floatUp 2.5s infinite linear;
-moz-animation: floatUp 2.5s infinite linear;
-o-animation: floatUp 2.5s infinite linear;
animation: floatUp 2.5s infinite linear;
-webkit-transform: scale(.5);
-moz-transform: scale(.5);
-o-transform: scale(.5);
transform: scale(.5);
left: -15%;
}
.x4{
-webkit-animation: floatUp 4.5s infinite linear;
-moz-animation: floatUp 4.5s infinite linear;
-o-animation: floatUp 4.5s infinite linear;
animation: floatUp 4.5s infinite linear;
-webkit-transform: scale(1.2);
-moz-transform: scale(1.2);
-o-transform: scale(1.2);
transform: scale(1.2);
left: -34%;
}
.x5{
-webkit-animation: floatUp 8s infinite linear;
-moz-animation: floatUp 8s infinite linear;
-o-animation: floatUp 8s infinite linear;
animation: floatUp 8s infinite linear;
-webkit-transform: scale(2.2);
-moz-transform: scale(2.2);
-o-transform: scale(2.2);
transform: scale(2.2);
left: -57%;
}
.x6{
-webkit-animation: floatUp 3s infinite linear;
-moz-animation: floatUp 3s infinite linear;
-o-animation: floatUp 3s infinite linear;
animation: floatUp 3s infinite linear;
-webkit-transform: scale(.8);
-moz-transform: scale(.8);
-o-transform: scale(.8);
transform: scale(.8);
left: -81%;
}
.x7{
-webkit-animation: floatUp 5.3s infinite linear;
-moz-animation: floatUp 5.3s infinite linear;
-o-animation: floatUp 5.3s infinite linear;
animation: floatUp 5.3s infinite linear;
-webkit-transform: scale(3.2);
-moz-transform: scale(3.2);
-o-transform: scale(3.2);
transform: scale(3.2);
left: 37%;
}
.x8{
-webkit-animation: floatUp 4.7s infinite linear;
-moz-animation: floatUp 4.7s infinite linear;
-o-animation: floatUp 4.7s infinite linear;
animation: floatUp 4.7s infinite linear;
-webkit-transform: scale(1.7);
-moz-transform: scale(1.7);
-o-transform: scale(1.7);
transform: scale(1.7);
left: 62%;
}
.x9{
-webkit-animation: floatUp 4.1s infinite linear;
-moz-animation: floatUp 4.1s infinite linear;
-o-animation: floatUp 4.1s infinite linear;
animation: floatUp 4.1s infinite linear;
-webkit-transform: scale(0.9);
-moz-transform: scale(0.9);
-o-transform: scale(0.9);
transform: scale(0.9);
left: 85%;
}
button:focus{
outline: none;
}
@-webkit-keyframes floatUp{
0%{top: 100vh; opacity: 0;}
25%{opacity: 1;}
50%{top: 0vh; opacity: .8;}
75%{opacity: 1;}
100%{top: -100vh; opacity: 0;}
}
@-moz-keyframes floatUp{
0%{top: 100vh; opacity: 0;}
25%{opacity: 1;}
50%{top: 0vh; opacity: .8;}
75%{opacity: 1;}
100%{top: -100vh; opacity: 0;}
}
@-o-keyframes floatUp{
0%{top: 100vh; opacity: 0;}
25%{opacity: 1;}
50%{top: 0vh; opacity: .8;}
75%{opacity: 1;}
100%{top: -100vh; opacity: 0;}
}
@keyframes floatUp{
0%{top: 100vh; opacity: 0;}
25%{opacity: 1;}
50%{top: 0vh; opacity: .8;}
75%{opacity: 1;}
100%{top: -100vh; opacity: 0;}
}
</style>
<div class='light x1'></div>
<div class='light x2'></div>
<div class='light x3'></div>
<div class='light x4'></div>
<div class='light x5'></div>
<div class='light x6'></div>
<div class='light x7'></div>
<div class='light x8'></div>
<div class='light x9'></div>
</body>
</html>