-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
146 lines (119 loc) · 2.54 KB
/
Copy pathindex.html
File metadata and controls
146 lines (119 loc) · 2.54 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>jooiiee.se</title>
<link rel="icon" type="image/png" href="penguin.png">
<style>
body {
margin: 0;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
font-family: Arial, sans-serif;
color: white;
transition: background-color 1s ease;
}
</style>
</head>
<body>
<div class="marquee vertical-center">
<div class="marquee__track text">
<span>This is a silly little website.</span>
</div>
</div>
<script>let hue = 0;
function changeBackgroundColor() {
document.body.style.backgroundColor = `hsl(${hue}, 100%, 50%)`;
hue = (hue + 1) % 360; // Increment hue and wrap around at 360
}
// Change color every 100 milliseconds
setInterval(changeBackgroundColor, 100);</script>
<style>
body {
margin: 0;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
font-family: Arial, sans-serif;
color: white;
transition: background-color 1s ease;
}
@keyframes colorchange
{
0% {color: red;}
20% {color: orange;}
35% {color: yellow;}
50% {color: green;}
65% {color: blue;}
80% {color: violet;}
100% {color: red;}
}
@-webkit-keyframes colorchange
{
0% {color: red;}
20% {color: orange;}
35% {color: yellow;}
50% {color: green;}
65% {color: blue;}
80% {color: violet;}
100% {color: red;}
}
@keyframes marquee {
from { transform: translateX(100vw); }
to { transform: translateX(-100%); }
}
.marquee {
overflow: hidden;
width: 100%;
}
.marquee__track {
display: inline-block;
white-space: nowrap;
will-change: transform;
animation: marquee 14s linear infinite;
}
.marquee__track > span {
white-space: nowrap;
}
.text {
position: relative;
font: 68px 'Segoe UI', Tahoma, Helvetica, Sans-Serif;
letter-spacing: 3px
}
.text a {
color: red;
animation: colorchange 25s infinite;
-webkit-animation: colorchange 25s infinite;
position: relative;
font: 68px 'Segoe UI', Tahoma, Helvetica, Sans-Serif;
letter-spacing: 3px;
text-decoration: none;
}
.text:after, .text::after {
z-index: 1;
content: '';
position: absolute;
top: 0; left: 0;
width: 1em; height: 2em;
}
.text:before, .text::before {
z-index: 1;
content: '';
position: absolute;
top: 0; right: 0;
width: 1em; height: 2em;
}
.text a:hover {
color: white;
}
.vertical-center {
top: 30%;
-ms-transform: translateY(-50%);
transform: translateY(-50%);
}
</style>
</body>
</html>