forked from nicholasgtan/Block-Jumper
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstyle.css
66 lines (59 loc) · 1.07 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
body {
background-color: black;
display: flex;
flex-direction: column;
color: white;
}
h1 {
color: #7913fe;
text-align: center;
font-family: "Press Start 2P";
font-size: 45px;
}
div {
color: #cfff04;
}
span {
color: #cfff04;
}
h2 {
color: white;
/* text-align: center; */
font-family: "Press Start 2P";
font-size: 18px;
display: flex;
justify-content: center;
}
canvas {
background-color: black;
border: 2px solid white;
align-self: center;
}
/* https://stackoverflow.com/questions/17254442/how-to-fade-in-out-multiple-texts-using-css-jquery-like-on-droplr */
.blink {
position: absolute;
}
.blink:nth-child(1) {
animation-name: fade;
animation-fill-mode: both;
animation-iteration-count: infinite;
animation-duration: 3s;
animation-direction: alternate-reverse;
}
.blink:nth-child(2) {
animation-name: fade;
animation-fill-mode: both;
animation-iteration-count: infinite;
animation-duration: 3s;
animation-direction: alternate;
color: #7913fe;
}
@keyframes fade {
0%,
50% {
opacity: 0;
}
100% {
opacity: 1;
}
}