-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
106 lines (99 loc) · 1.99 KB
/
Copy pathstyle.css
File metadata and controls
106 lines (99 loc) · 1.99 KB
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
body{
margin: 0;
padding: 0;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background-color: #2c2f69;
}
.firework{
position: absolute;
}
.explosion{
position: absolute;
left: -2px;
bottom: 0;
width: 4px;
height: 80px;
transform-origin: 50% 100%;
/* background-color: rgba(0,0,0,.2); */
overflow: hidden;
}
.explosion:nth-child(1){
transform: rotate(0deg) translateY(-15px);
}
.explosion:nth-child(2){
transform: rotate(30deg) translateY(-15px);
}
.explosion:nth-child(3){
transform: rotate(60deg) translateY(-15px);
}
.explosion:nth-child(4){
transform: rotate(90deg) translateY(-15px);
}
.explosion:nth-child(5){
transform: rotate(120deg) translateY(-15px);
}
.explosion:nth-child(6){
transform: rotate(150deg) translateY(-15px);
}
.explosion:nth-child(7){
transform: rotate(180deg) translateY(-15px);
}
.explosion:nth-child(8){
transform: rotate(210deg) translateY(-15px);
}
.explosion:nth-child(9){
transform: rotate(240deg) translateY(-15px);
}
.explosion:nth-child(10){
transform: rotate(270deg) translateY(-15px);
}
.explosion:nth-child(11){
transform: rotate(300deg) translateY(-15px);
}
.explosion:nth-child(12){
transform: rotate(330deg) translateY(-15px);
}
.explosion::before{
content: '';
position: absolute;
left: 0;
right: 0;
top: 100%;
height: 39px;
background-color: #f5cf52;
}
@keyframes explosion{
0%{
top: 100%;
}
33%, 100%{
top: -50%;
}
}
#firework1 {
left: 50%;
top: 50%;
transform: scale(1);
}
#firework1 .explosion::before{
animation: explosion 2s ease-in-out infinite;
}
#firework2 {
left: 40%;
top: 45%;
transform: scale(.7);
}
#firework2 .explosion::before{
animation: explosion 2s .6s ease-in-out infinite;
}
#firework3 {
left: 60%;
top: 65%;
transform: scale(.4);
}
#firework3 .explosion::before{
animation: explosion 2s .9s ease-in-out infinite;
}