-
Notifications
You must be signed in to change notification settings - Fork 3
/
style.css
187 lines (166 loc) · 4.98 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
/*
Source code: https://github.com/robole/artifice
*/
body {
overflow: hidden;
height: 100%;
background: black;
background-image: url("img/bg.jpg");
background-size: contain;
}
.starfield {
position: relative;
overflow: hidden;
width: 100%;
min-height: 98vh;
perspective: 200px;
}
svg {
position: absolute;
top: 0;
width: 100%;
height: 100%;
}
#xwing {
animation: dart 1s forwards;
fill: rgb(185 185 185);
transform: scale(4) translateX(-110%);
}
@keyframes dart {
to {
transform: scale(0) translateX(110%);
}
}
.line1 {
fill: rgb(255 255 255);
}
.letter {
fill: rgb(255 255 255);
}
#logo {
fill: white;
}
#blade {
animation: extend 1.25s forwards;
animation-delay: 1.25s;
animation-timing-function: cubic-bezier(0.2, -2, 0.8, 2);
transform: scaleX(0);
transform-origin: 0% 100%;
}
@keyframes extend {
to {
transform: scaleX(1);
}
}
#blade-glow {
animation: pulse 0.5s linear forwards infinite;
opacity: 0.75;
}
#blade-beam {
opacity: 1;
}
@keyframes pulse {
to {
opacity: 0.5;
}
}
/* star field */
.stars {
position: absolute;
top: 50%;
left: 50%;
width: 2px;
height: 2px;
animation: fly 3s linear infinite;
box-shadow: -238px 108px hsl(0deg 0% 97%), 193px -376px hsl(0deg 0% 97%),
-1264px -60px hsl(0deg 0% 98%), 145px -443px hsl(0deg 0% 79%),
-1440px 37px hsl(0deg 0% 97%), 262px -136px hsl(0deg 0% 81%),
212px 219px hsl(0deg 0% 89%), 319px 223px hsl(0deg 0% 78%),
1246px -51px hsl(0deg 0% 79%), 308px 26px hsl(0deg 0% 88%),
147px 229px hsl(0deg 0% 90%), -1041px 450px hsl(0deg 0% 82%),
671px 86px white, -921px 234px hsl(0deg 0% 94%),
-957px 242px hsl(0deg 0% 91%), 1249px -285px hsl(0deg 0% 82%),
741px 434px hsl(0deg 0% 85%), -1030px 330px hsl(0deg 0% 93%),
311px -475px hsl(0deg 0% 99%), -413px -105px hsl(0deg 0% 83%),
868px -435px hsl(0deg 0% 97%), -790px 289px hsl(0deg 0% 86%),
202px 427px hsl(0deg 0% 99%), -22px -158px hsl(0deg 0% 79%),
-1294px -297px hsl(0deg 0% 80%), -63px 200px hsl(0deg 0% 94%),
-592px -86px hsl(0deg 0% 97%), -732px 366px white,
-1426px -262px hsl(0deg 0% 91%), 475px -400px hsl(0deg 0% 79%),
-1442px -153px hsl(0deg 0% 97%), 1124px -219px hsl(0deg 0% 93%),
701px 257px hsl(0deg 0% 94%), 36px -179px hsl(0deg 0% 92%),
-937px 480px hsl(0deg 0% 97%), -267px -418px hsl(0deg 0% 95%),
1467px 127px hsl(0deg 0% 81%), -1128px 274px hsl(0deg 0% 82%),
-180px 430px hsl(0deg 0% 88%), 624px 275px hsl(0deg 0% 98%),
-473px 150px hsl(0deg 0% 90%), -537px -348px hsl(0deg 0% 83%),
410px 455px hsl(0deg 0% 92%), 497px -29px hsl(0deg 0% 80%),
416px -370px whitesmoke, 977px 82px hsl(0deg 0% 76%),
1209px -222px hsl(0deg 0% 94%), 637px 360px hsl(0deg 0% 99%),
-1049px 409px white, 959px 407px hsl(0deg 0% 79%),
-1153px -168px hsl(0deg 0% 87%), -437px -216px hsl(0deg 0% 86%),
-572px 420px hsl(0deg 0% 99%), -228px 78px hsl(0deg 0% 86%),
-925px 452px hsl(0deg 0% 80%), 244px 30px hsl(0deg 0% 77%),
453px -336px hsl(0deg 0% 87%), 993px -63px hsl(0deg 0% 76%),
670px -343px hsl(0deg 0% 85%), -1088px 344px hsl(0deg 0% 99%),
-170px -153px hsl(0deg 0% 77%), 987px -208px hsl(0deg 0% 82%),
596px 166px hsl(0deg 0% 99%), -1362px -28px hsl(0deg 0% 77%),
1291px -106px hsl(0deg 0% 89%), -1128px 169px hsl(0deg 0% 93%),
1056px 367px hsl(0deg 0% 92%), 261px -128px hsl(0deg 0% 80%),
1017px 401px hsl(0deg 0% 80%), 1381px 245px hsl(0deg 0% 89%),
536px -113px hsl(0deg 0% 98%), -92px -217px hsl(0deg 0% 89%),
1481px 268px hsl(0deg 0% 82%), 832px -345px hsl(0deg 0% 80%),
-863px 138px hsl(0deg 0% 94%), -997px -412px hsl(0deg 0% 89%),
-330px -260px hsl(0deg 0% 85%), 691px -39px hsl(0deg 0% 99%),
-468px -135px hsl(0deg 0% 84%), -535px 405px hsl(0deg 0% 91%),
-1289px -284px hsl(0deg 0% 89%), 823px -225px hsl(0deg 0% 80%),
-1172px -348px white, 505px -319px hsl(0deg 0% 93%),
94px -45px hsl(0deg 0% 93%), -687px -64px hsl(0deg 0% 78%),
-1133px -456px hsl(0deg 0% 95%), 1357px 135px hsl(0deg 0% 88%),
-919px -249px whitesmoke, 206px 32px white, 1453px -338px hsl(0deg 0% 80%),
-764px 83px hsl(0deg 0% 91%), 726px 85px hsl(0deg 0% 98%),
205px 103px hsl(0deg 0% 89%), 85px 116px hsl(0deg 0% 82%),
1104px -121px hsl(0deg 0% 94%), 649px -304px hsl(0deg 0% 86%),
-313px 313px whitesmoke, 491px -419px hsl(0deg 0% 79%),
-1405px 397px hsl(0deg 0% 81%), 30px -81px hsl(0deg 0% 90%);
transform-style: preserve-3d;
}
.stars::before,
.stars::after {
position: absolute;
width: inherit;
height: inherit;
box-shadow: inherit;
content: "";
}
.stars::before {
animation: fade1 3s linear infinite;
transform: translateZ(-300px);
}
.stars::after {
animation: fade2 3s linear infinite;
transform: translateZ(-600px);
}
@keyframes fly {
from {
transform: translateZ(0);
}
to {
transform: translateZ(300px);
}
}
@keyframes fade1 {
from {
opacity: 0.5;
}
to {
opacity: 1;
}
}
@keyframes fade2 {
from {
opacity: 0;
}
to {
opacity: 0.5;
}
}