-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbackground.scss
70 lines (60 loc) · 1.31 KB
/
background.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
@mixin dots($count) {
$text-shadow: ();
@for $i from 0 through $count {
$text-shadow: $text-shadow,
(-.5+(random()) * 3) + em
(-.5+(random()) * 3) + em
7px
hsla(random() * 360, 100%, 50%,.9);
}
text-shadow: $text-shadow;
}
html {
font: 5vmin/1.3 Serif;
overflow: hidden;
background: #123;
}
head {
display: block;
font-size: 52px;
color: transparent;
}
head::before, head::after,
body::before, body::after {
position: fixed;
top: 50%;
left: 50%;
width: 3em;
height: 3em;
content: '.';
mix-blend-mode: screen;
animation: 44s -27s move infinite ease-in-out alternate;
}
body::before {
@include dots(40);
animation-duration: 44s;
animation-delay: -27s;
}
body::after {
@include dots(40);
animation-duration: 43s;
animation-delay: -32s;
}
head::before {
@include dots(40);
animation-duration: 42s;
animation-delay: -23s;
}
head::after {
@include dots(40);
animation-duration: 41s;
animation-delay: -19s;
}
@keyframes move {
from {
transform: rotate(0deg) scale(12) translateX(-20px);
}
to {
transform: rotate(360deg) scale(18) translateX(20px);
}
}