-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path500.shtml
91 lines (88 loc) · 1.94 KB
/
500.shtml
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" />
<meta name="viewport"
content="width=device-width,
initial-scale=0.1" />
<style>
* {
margin: 0;
padding: 0;
font-family: consolas;
}
section {
position: relative;
width: 100%;
height: 100vh;
overflow: hidden;
background: #111;
display: flex;
justify-content: center;
align-items: center;
}
section h2 {
font-size: 10em;
color: #333;
}
section span {
position: absolute;
bottom: -50px;
background: transparent;
border-radius: 50%;
pointer-events: none;
box-shadow: inset 0 0 10px
rgba(225, 225, 225, 0.5);
animation: animate 4s linear infinite;
}
sectionspan: before {
content: "";
position: absolute;
width: 100%;
height: 100%;
transform: scale(0.25) translate(-70%, -70%);
background:
radial-gradient(#ffffff, transparent);
border-radius: 50%;
}
@keyframes animation {
0% {
transform: translateY(0%);
opacity: 1;
}
99% {
opacity: 1;
}
100% {
transform: translateY(-1200%);
opacity: ;
}
}
</style>
</head>
<body>
<section>
<h2>GeeksforGeeks</h2>
</section>
<script type="text/javascript">
function createBubble() {
const section =
document.querySelector("Section");
const createElement =
document.createElement("span");
var size = Math.random() * 60;
createElement.style.animation =
"animation 6s linear infinite";
createElement.style.width = 100 + size + "px";
createElement.style.height = 100 + size + "px";
createElement.style.left =
Math.random() * innerWidth + "px";
section.appendChild(createElement);
setTimeout(() => {
createElement.remove();
}, 4000);
}
setInterval(createBubble, 2);
</script>
</body>
</html>