-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
85 lines (78 loc) · 1.62 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
<style>
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300&display=swap');
body{
background-color: #14130f;
font-family: 'Poppins';
text-align: center;
padding-top: 10%;
}
#ele{
opacity:0;
animation: opa_y 2s, rainbow 10s linear infinite;
}
.rainbow{
animation: rainbow 10s linear infinite;
}
@keyframes opa_y {
from {
opacity:0;
transform: translateY(100%);
}
to {
opacity: 100%;
transform: translateY(0%);
}
}
@keyframes rainbow{
100%,0%{
color: rgb(255,0,0);
}
8%{
color: rgb(255,127,0);
}
16%{
color: rgb(255,255,0);
}
25%{
color: rgb(127,255,0);
}
33%{
color: rgb(0,255,0);
}
41%{
color: rgb(0,255,127);
}
50%{
color: rgb(0,255,255);
}
58%{
color: rgb(0,127,255);
}
66%{
color: rgb(0,0,255);
}
75%{
color: rgb(127,0,255);
}
83%{
color: rgb(255,0,255);
}
91%{
color: rgb(255,0,127);
}
}
</style>
<body>
<p class="rainbow" id="ele" >kek: a very minimalistic & simple template.</p>
</body>
<script>
var fr = 0;
document.getElementById("ele").addEventListener("animationend", () => {
//document.getElementById("text2").remove('opacity')
var styleSheet = document.createElement("style")
styleSheet.innerText = `#ele{
opacity:1 !important;
}`
document.body.appendChild(styleSheet)
});
</script>