-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
140 lines (124 loc) · 2.03 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
*{
padding: 0;
margin: 0;
}
body{
background: linear-gradient(to right , skyblue , lightgreen);
}
.navbar ul{
display: flex;
justify-content: flex-end;
list-style: none;
}
.navbar ul li{
padding: 10px 15px;
}
h2{
text-align: center;
justify-content: center;
padding-top: 270px;
z-index: 1;
}
.boxarea{
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
overflow: hidden;
}
.boxarea li{
position: absolute;
display: block;
height: 25px;
width: 25px;
background: rgba(255,255,28,0.5);
animation: animate 30s linear infinite;
bottom: -100px;
z-index: -1;
}
.boxarea li:nth-child(1)
{
left: 86%;
width: 80px;
height: 80px;
animation-delay: 0s;
}
.boxarea li:nth-child(2)
{
left: 12%;
width: 30px;
height: 30px;
animation-delay: 1.5s;
animation-duration: 5s;
}
.boxarea li:nth-child(3)
{
left: 22%;
width: 80px;
height: 80px;
animation-delay: 3.5s;
animation-duration: 5s;
color: skyblue;
}
.boxarea li:nth-child(4)
{
left: 1%;
width: 100px;
height: 100px;
animation-delay: 0s;
animation-duration: 15s;
}
.boxarea li:nth-child(5)
{
left: 65%;
width: 150px;
height: 150px;
animation-delay: 0s;
animation-duration: 5.5s;
}
.boxarea li:nth-child(6)
{
left: 15%;
width: 10px;
height: 10px;
animation-delay: 3.5s;
}
.boxarea li:nth-child(7)
{
left: 75%;
width: 110px;
height: 110px;
animation-delay: 3.5s;
}
.boxarea li:nth-child(8)
{
left: 25%;
width: 50px;
height: 50px;
animation-delay: 8.5s;
}
.boxarea li:nth-child(9)
{
left: 55%;
width: 90px;
height: 90px;
animation-delay: 4.5s;
}
.boxarea li:nth-child(10)
{
left: 35%;
width: 145px;
height: 145px;
animation-delay: 7.5s;
}
@keyframes animate{
0%{
transform: translateY(0) rotate(0deg);
opacity: 1;
}
100%{
transform: translateY(-800px) rotate(360deg);
opacity: 0;
}
}