forked from Andr3as/Codiad-CodeTransfer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathloading.css
executable file
·61 lines (61 loc) · 1.39 KB
/
loading.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
/*
* Copyright (c) Robert Lemon <http://codepen.io/rlemon/>
* Under MIT License. More details: http://blog.codepen.io/legal/licensing/
* Loading Animation - more Details: http://codepen.io/rlemon/pen/KyDgh
*/
.drops {
list-style: none;
position: relative;
height: 10px;
width: 140px;
margin: 0 auto; /* center the animation */
}
.drops li {
position: absolute;
top: 0px;
height: 10px;
width: 10px;
background-color: black;
border-radius: 5px;
margin-left: -3000px; /* the dots like to jump out of place without this */
animation-name: loading;
animation-duration: 5s;
animation-timing-function: ease-in-out;
animation-iteration-count: infinite;
animation-direction: normal;
}
.drops li:nth-child(1) {
left: 0px;
animation-delay: 250ms;
}
.drops li:nth-child(2) {
left: 40px;
animation-delay: 500ms;
}
.drops li:nth-child(3) {
left: 80px;
animation-delay: 750ms;
}
.drops li:nth-child(4) {
left: 120px;
animation-delay: 1s;
}
.drops li:nth-child(5) {
left: 160px;
animation-delay: 1.25s;
}
@keyframes loading {
0% { margin-left: -3000px; }
30%,70% { margin-left: 0px; }
100% { margin-left: 3000px; }
}
/* Colours */
.drops li {
background-color: #99deff;
box-shadow: 0 0 5px #99afff,
0 0 10px #99afff,
0 0 15px #99afff,
0 0 20px #99afff,
0 0 30px #99afff,
0 0 40px #99afff;
}