forked from redd-rl/countdown
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
72 lines (67 loc) · 1.82 KB
/
style.css
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
body {
background-color: black;
}
div {
width: 500px;
height: 100px;
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
z-index: 2;
margin: auto;
}
#shadowBox {
display: flex;
justify-content: center;
align-items: center;
background-color: rgba(0, 0, 0, 0);
/* Fallback color */
background-color: rgba(0, 0, 0, 0.2);
/* Black w/opacity/see-through */
}
.rainbow {
text-align: center;
text-decoration: underline;
font-size: 62px;
background-color: white;
font-family: monospace;
letter-spacing: 5px;
}
.rainbow_text_animated {
background: linear-gradient(to right, #6666ff, #0099ff , #00ff00, #ff3399, #6666ff);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
font-size: 202px;
animation: rainbow_animation 6s ease-in-out infinite;
background-size: 400% 100%;
white-space: pre;
}
@keyframes rainbow_animation {
0%,100% {
background-position: 0 0;
}
50% {
background-position: 100% 0;
}
}
canvas {
position: absolute;
top: 0;
left: 0;
z-index: 0;
}
#confettiCanvas {
position: absolute;
top: 0;
left: 0;
z-index: 1;
}
#fireworkCanvas {
position: absolute;
top: 0;
left: 0;
z-index: -2;
}