-
Notifications
You must be signed in to change notification settings - Fork 0
/
stars.css
63 lines (63 loc) · 1.13 KB
/
stars.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
.star {
position: absolute;
width: 14px;
height: 14px;
background: radial-gradient(#fff, #0000, #0000);
border-radius: 50%;
right: 300px;
animation: falling-star linear infinite;
}
.blaze,
.blaze::before,
.blaze::after {
position: absolute;
width: 300px;
border-radius: 1in 50%50% 1in;
}
.blaze {
height: 14px;
background: linear-gradient(90deg, #ffffff12, #0000);
}
.blaze::before {
content: "";
height: 8px;
background: linear-gradient(90deg, #ffffff24, #0000);
top: 50%;
transform: translate(-49%, -50%);
}
.blaze::after {
content: "";
height: 2px;
background: linear-gradient(90deg, #fff, #0000);
top: 50%;
transform: translate(-48%, -50%);
}
@media screen and (max-width: 500px) {
.star {
right: 150px;
}
.blaze,
.blaze::before,
.blaze::after {
width: 150px;
}
.blaze::before {
transform: translate(-48%, -50%);
}
.blaze::after {
transform: translate(-46%, -50%);
}
}
@keyframes falling-star {
0% {
transform: rotate(-20deg) translateX(0);
opacity: 1;
}
70% {
opacity: 1;
}
100% {
transform: rotate(-20deg) translateX(-60vh);
opacity: 0;
}
}