-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.scss
73 lines (64 loc) · 1.21 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
@import 'functions.scss';
html,
body {
width: 100%;
height: 100%;
margin: 0;
}
#sky {
width: 100%;
height: 100%;
background-color: black;
}
.star {
opacity: 0;
position: absolute;
background: white;
box-shadow: 0px 0px 20px 0px rgb(255, 255, 255);
border-radius: 100%;
transform-origin: 0, 0;
animation-timing-function: linear, linear !important;
animation-iteration-count: infinite, infinite !important;
animation-delay: -30s, -30s !important;
}
.size-1 {
width: 1px;
height: 1px;
}
.size-2 {
width: 2px;
height: 2px;
}
@for $i from 1 to 361 {
$t: random(40000) + 5000;
$angle: $i - reminder($i, 4);
.axis-#{$i} {
animation: anim#{$angle} #{$t}ms, fade#{random(10)} #{$t}ms;
}
}
@for $i from 1 to 11 {
$start: random(20);
$end: $start + 10;
@keyframes fade#{$i} {
#{$start + '%'} {
opacity: 0;
}
#{$end + '%'} {
opacity: 1;
}
100% {
opacity: 1;
}
}
}
@for $i from 1 to 91 {
$a: $i * 4;
@keyframes anim#{$a} {
$angle: $pi * 2 * ($a / 360);
$y: 80 * sin($angle);
$x: 80 * cos($angle);
100% {
transform: translate(#{$x}vw, #{$y}vh);
}
}
}