-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
48 lines (45 loc) · 921 Bytes
/
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
body {
background: black;
overflow: hidden;
color: white;
--color-spark: peru;
}
#sparkler {
position: absolute;
left: 50%;
top: 50%;
width: 1px;
height: 1px;
transform: rotate(-25deg);
border-radius: 50%;
box-shadow: 0 0 2500px 100px var(--color-spark);
}
#sparkler:before {
content: '';
width: 10px;
height: 25vh;
background: linear-gradient(to right, dimgray, silver);
position: absolute;
top: 0;
left: 0;
border-radius: 1rem;
}
#sparkler:after {
content: '';
width: 4px;
height: 25vh;
background: linear-gradient(to right, dimgray, gray);
position: absolute;
top: calc(25vh - 1px);
left: 3px;
/* border-radius: 1rem; */
}
.particle {
height: 5px;
border-radius: 50%;
background: linear-gradient(to right, transparent, var(--color-spark), white, var(--color-spark), transparent);
box-shadow: 0 0 30px var(--color-spark);
position: absolute;
transition: .5s linear;
z-index: 100;
}