-
Notifications
You must be signed in to change notification settings - Fork 3
/
styles.css
executable file
·85 lines (67 loc) · 1.4 KB
/
styles.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
73
74
75
76
77
78
79
80
81
82
83
84
85
@font-face {
font-family: LimeLight;
src: url("./Limelight-Regular.ttf");
}
*,
*::before,
*::after {
box-sizing: border-box;
}
:root {
--cols: 3;
--animation-len: 12s;
}
@media screen and (min-width: 800px) {
:root {
--animation-len: 16s;
}
}
body {
width: 100dvw;
margin: 0;
}
.console {
width: 100%;
height: 100dvh;
display: grid;
grid-template-columns: repeat(3, 1fr);
background-color: hsl(140, 50%, 10%);
overflow: hidden;
cursor: default;
}
.name {
color: transparent;
-webkit-text-stroke-color: hsl(140, 100%, 70%);
-webkit-text-stroke-width: 2px;
font-family: Limelight, sans-serif;
font-size: calc(90dvw / var(--cols));
line-height: 1;
text-transform: uppercase;
writing-mode: vertical-lr;
text-orientation: mixed;
filter: drop-shadow(0 0 2px hsl(140, 100%, 70%));
}
.name:nth-of-type(even) {
animation: scroll-up;
animation-duration: var(--animation-len);
animation-iteration-count: infinite;
animation-timing-function: linear;
}
.name:nth-of-type(odd) {
transform: rotate(-180deg) translateY(33.33%);
animation: scroll-down;
animation-duration: var(--animation-len);
animation-iteration-count: infinite;
animation-fill-mode: forwards;
animation-timing-function: linear;
}
@keyframes scroll-up {
to {
transform: translateY(-33.33%);
}
}
@keyframes scroll-down {
to {
transform: rotate(-180deg) translateY(0);
}
}