-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
86 lines (79 loc) · 1.97 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
<!doctype html>
<html>
<head>
<meta charset="utf8">
<title></title>
<style>
@keyframes fall{
from { top: -150px;}
to { top: 100vh;}
}
@keyframes rotate{
from { transform: rotateZ(0deg);}
to { transform: rotateZ(360deg);}
}
@keyframes color{
from { filter: hue-rotate(0deg);}
to { filter: hue-rotate(360deg);}
}
html {
overflow: hidden;
background: #003;
}
.c {
animation: 1s linear infinite color;
}
.logo {
background: white;
border-radius: 100%;
top: -100%;
width: 150px;
height: 150px;
position: absolute;
animation: 5s linear infinite fall, 4s linear infinite rotate, 4s linear infinite color;
}
h1{
-webkit-text-stroke: 4px white;
z-index: 1000;
font-family: "Helvetica";
position: fixed;
top: 50%;
left:50%;
color: red;
font-size: 6em;
font-weight: bold;
text-shadow: 0px 0px 50px black;
transform: translate(-50%, -50%);
width: 100vw;
border-radius: 20px;
text-align: center;
}
</style>
</head>
<body>
<h1>
<span class="c">Hacked by <br>The Flat Network Society</span>
<br>
<br>
<img src="explosion-1.gif">
<img src="explosion-1.gif">
<img src="explosion-1.gif">
</h1>
<script>
const $ = selector => document.querySelector(selector)
const $$ = selector => Array.from(document.querySelectorAll(selector))
function random100(){
return parseInt(Math.random() * 110 - 10)
}
for (var i =0; i < 40; ++i){
const img = document.createElement("img")
img.src="./logo.svg"
img.classList.add("logo")
img.classList.add("rotate")
img.style.left = `${random100()}%`
img.style.animationDelay = `${Math.random() * 10}s`
document.body.appendChild(img)
}
</script>
</body>
</html>