-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.scss
76 lines (70 loc) · 1.15 KB
/
style.scss
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
@-webkit-keyframes colorPulse {
0% {
color: lighten(green, 70%);
}
40% {
color: green;
}
50% {
color: darken(green, 5%);
}
100% {
color: darken(green, 20%);
}
}
@keyframes colorPulse {
0% {
color: lighten(green, 70%);
}
40% {
color: green;
}
50% {
color: darken(green, 5%);
}
100% {
color: darken(green, 20%);
}
}
:root {
background: black;
color: darken(green, 20%);
font-size: 1.8em;
font-family: monospace;
}
* {
margin: 0;
padding: 0;
overflow: hidden;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.wrapper {
display: flex;
height: 100vh;
overflow: hidden;
text-align: center;
width: 100vw;
}
.column {
& > * {
display: block;
-webkit-animation: 3s infinite colorPulse;
animation: 3s infinite colorPulse;
padding: 0 0.125em;
}
}
@for $colNum from 1 through 80 {
$duration: random(100) / 23 + 1;
$delay: $duration / 50;
@for $i from 1 through 50 {
.col-#{$colNum} :nth-child(#{$i}) {
-webkit-animation-duration: #{$duration}s;
animation-duration: #{$duration}s;
-webkit-animation-delay: #{$i * $delay}s;
animation-delay: #{$i * $delay}s;
}
}
}