-
Notifications
You must be signed in to change notification settings - Fork 2
/
gm.html
103 lines (100 loc) · 2.18 KB
/
gm.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="https://cdn.jsdelivr.net/npm/fireworks-js@latest/dist/fireworks.js"></script>
<style>
html, body {
background-color: black;
height: 100vh;
width: 100%;
margin: 0;
padding: 0;
}
main {
color: white;
height: 100%;
width: 100%;
padding: 0;
margin: 0;
}
.main-content {
position: absolute;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
}
@keyframes fadein {
0% { opacity: 0 }
100% { opacity: 1 }
}
@keyframes colorchange {
0% {
color: blue;
}
10% {
color: #8e44ad;
}
20% {
color: #1abc9c;
}
30% {
color: #d35400;
}
40% {
color: blue;
}
50% {
color: #34495e;
}
60% {
color: blue;
}
70% {
color: #2980b9;
}
80% {
color: #f1c40f;
}
90% {
color: #2980b9;
}
100% {
color: pink;
}
}
.main-content-text {
color: white;
animation-delay: 5s;
-webkit-animation: colorchange 20s infinite alternate;
font-size: calc(0.5em + 15vw);
}
.main-content-text .gm {
opacity: 1;
}
.main-content-text .wagmi {
/*opacity: 0;*/
animation: fadein 5s ease-in forwards;
}
</style>
<script>
document.addEventListener("DOMContentLoaded", function(event) {
const container = document.querySelector('main');
const fireworks = new Fireworks(container);
fireworks.start();
});
</script>
</head>
<body>
<main>
<div class="main-content">
<p class="main-content-text">
<span class="wagmi">WA</span><span class="gm">GM</span><span class="wagmi">I</span>
</p>
</div>
</main>
</body>
</html>