-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
96 lines (84 loc) · 1.43 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
body {
height: 100vh;
margin: 0;
padding: 0;
overflow: hidden;
}
.space {
position: absolute;
z-index: 5;
display: flex;
justify-content: center;
align-items: center;
width: 100vw;
height: 100vh;
background-color: #000;
overflow: hidden;
}
.rocket {
max-width: 75px;
animation-name: rocket;
animation-duration: 100ms;
animation-iteration-count: infinite;
animation-fill-mode: forwards;
}
.rocket img {
position: relative;
z-index: 20;
max-width: 55px;
}
.rocket::before {
content: '';
display: block;
position: absolute;
z-index: 10;
top: 50%;
left: 50%;
transform: translate(-50%);
width: 15px;
height: 100px;
border-radius: 50%;
background: linear-gradient(
180deg,
#00B7FF,
#00B7FF38
);
box-shadow: 0 0 40px #00B7FFA0;
animation-name: fire;
animation-duration: 100ms;
animation-iteration-count: infinite;
}
.star {
display: block;
position: absolute;
top: -250px;
z-index: 1;
transform: translateY(0);
background-color: rgba(255, 255, 255, .8);
box-shadow: 0 0 3px rgba(255, 255, 255, .2);
animation: sleep linear infinite;
}
@keyframes rocket {
0%, 100% {
transform: translateY(-.8px);
}
50% {
transform: translateY(.8px);
}
}
@keyframes fire {
from, to {
height: 100px;
}
50% {
height: 105px;
}
}
@keyframes sleep {
from {
transform: translateY(0);
}
to {
transform: translateY(150vh);
}
}