-
Notifications
You must be signed in to change notification settings - Fork 0
/
animated-background.css
210 lines (206 loc) · 5.09 KB
/
animated-background.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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
@keyframes move {
100% {
transform: translate3d(0, 0, 1px) rotate(360deg);
}
}
.background {
z-index: 1;
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
background: #311e67;
overflow: hidden;
}
.background span {
width: 20vmin;
height: 20vmin;
border-radius: 20vmin;
backface-visibility: hidden;
position: absolute;
animation: move;
animation-duration: 45;
animation-timing-function: linear;
animation-iteration-count: infinite;
}
.background span:nth-child(0) {
color: #6275d5;
top: 24%;
left: 10%;
animation-duration: 33s;
animation-delay: -4s;
transform-origin: 7vw 3vh;
box-shadow: -40vmin 0 5.912544699862862vmin currentColor;
}
.background span:nth-child(1) {
color: #6275d5;
top: 92%;
left: 59%;
animation-duration: 13s;
animation-delay: -38s;
transform-origin: 7vw 5vh;
box-shadow: 40vmin 0 5.20578148957144vmin currentColor;
}
.background span:nth-child(2) {
color: #6275d5;
top: 28%;
left: 58%;
animation-duration: 51s;
animation-delay: -44s;
transform-origin: -17vw -9vh;
box-shadow: 40vmin 0 5.1804849227403835vmin currentColor;
}
.background span:nth-child(3) {
color: #6275d5;
top: 13%;
left: 18%;
animation-duration: 47s;
animation-delay: -2s;
transform-origin: -13vw 2vh;
box-shadow: -40vmin 0 5.202479903261611vmin currentColor;
}
.background span:nth-child(4) {
color: #2c7c8c;
top: 89%;
left: 76%;
animation-duration: 43s;
animation-delay: -48s;
transform-origin: -18vw 8vh;
box-shadow: 40vmin 0 5.911136678063343vmin currentColor;
}
.background span:nth-child(5) {
color: #2c7c8c;
top: 53%;
left: 53%;
animation-duration: 6s;
animation-delay: -19s;
transform-origin: 22vw -16vh;
box-shadow: -40vmin 0 5.8272384493088145vmin currentColor;
}
.background span:nth-child(6) {
color: #6275d5;
top: 41%;
left: 74%;
animation-duration: 33s;
animation-delay: -36s;
transform-origin: 7vw 15vh;
box-shadow: 40vmin 0 5.108122044597031vmin currentColor;
}
.background span:nth-child(7) {
color: #6275d5;
top: 59%;
left: 63%;
animation-duration: 14s;
animation-delay: -21s;
transform-origin: -20vw -19vh;
box-shadow: 40vmin 0 5.051484584971539vmin currentColor;
}
.background span:nth-child(8) {
color: #6275d5;
top: 70%;
left: 95%;
animation-duration: 27s;
animation-delay: -19s;
transform-origin: 18vw 21vh;
box-shadow: 40vmin 0 5.4579422813779335vmin currentColor;
}
.background span:nth-child(9) {
color: #6275d5;
top: 34%;
left: 10%;
animation-duration: 40s;
animation-delay: -35s;
transform-origin: -2vw -14vh;
box-shadow: 40vmin 0 5.69994580267186vmin currentColor;
}
.background span:nth-child(10) {
color: #6275d5;
top: 76%;
left: 5%;
animation-duration: 47s;
animation-delay: -49s;
transform-origin: 23vw -23vh;
box-shadow: 40vmin 0 5.278480495995032vmin currentColor;
}
.background span:nth-child(11) {
color: #2c7c8c;
top: 45%;
left: 53%;
animation-duration: 17s;
animation-delay: -35s;
transform-origin: 19vw 5vh;
box-shadow: 40vmin 0 5.629227508188595vmin currentColor;
}
.background span:nth-child(12) {
color: #6275d5;
top: 99%;
left: 81%;
animation-duration: 24s;
animation-delay: -23s;
transform-origin: 0vw 11vh;
box-shadow: 40vmin 0 5.953316241363967vmin currentColor;
}
.background span:nth-child(13) {
color: #2c7c8c;
top: 60%;
left: 40%;
animation-duration: 25s;
animation-delay: -11s;
transform-origin: -16vw -5vh;
box-shadow: -40vmin 0 5.415553585744876vmin currentColor;
}
.background span:nth-child(14) {
color: #2c7c8c;
top: 86%;
left: 83%;
animation-duration: 49s;
animation-delay: -45s;
transform-origin: 10vw -12vh;
box-shadow: -40vmin 0 5.182431443948492vmin currentColor;
}
.background span:nth-child(15) {
color: #2c7c8c;
top: 43%;
left: 91%;
animation-duration: 36s;
animation-delay: -24s;
transform-origin: 10vw 2vh;
box-shadow: -40vmin 0 5.066397088190774vmin currentColor;
}
.background span:nth-child(16) {
color: #2c7c8c;
top: 94%;
left: 77%;
animation-duration: 10s;
animation-delay: -27s;
transform-origin: -3vw 19vh;
box-shadow: -40vmin 0 5.36646734828341vmin currentColor;
}
.background span:nth-child(17) {
color: #2c7c8c;
top: 60%;
left: 45%;
animation-duration: 18s;
animation-delay: -15s;
transform-origin: 2vw -6vh;
box-shadow: -40vmin 0 5.864196921653931vmin currentColor;
}
.background span:nth-child(18) {
color: #2c7c8c;
top: 46%;
left: 40%;
animation-duration: 18s;
animation-delay: -4s;
transform-origin: 5vw -23vh;
box-shadow: 40vmin 0 5.211215811948492vmin currentColor;
}
.background span:nth-child(19) {
color: #34834c;
top: 21%;
left: 47%;
animation-duration: 47s;
animation-delay: -18s;
transform-origin: 2vw -10vh;
box-shadow: -40vmin 0 5.963418033205416vmin currentColor;
}