-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathloading.css
104 lines (93 loc) · 2.11 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
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
.loader-fullscreen-wrapper {
position : fixed;
top : 0 ;
bottom: 0 ;
left : 0 ;
right : 0 ;
z-index : 2147483647;
background-color: rgb( 0,99,146 );
}
.loader {
position: relative;
padding:30px;
width : 80px;
height: 80px;
margin: auto;
border-radius: 100%;
box-shadow: 4px 4px 12px 0px #BBB;
background: rgb( 0,99,146 );
}
.loader-fullscreen {
position: absolute;
top : 50% ;
left : 50% ;
width : 80px;
height: 80px;
transform : translate( -50%,-50% );
background: transparent;
}
.loader-fullscreen > .circle ,
.loader > .circle {
position: absolute;
width : 76px;
height: 76px;
opacity: 0;
transform: rotate(225deg);
animation-iteration-count: infinite;
animation-name: orbit;
animation-duration: 5.3s;
}
.loader-fullscreen > .circle:before ,
.loader > .circle:before {
content: '';
position: absolute;
width : 8px;
height: 8px;
border-radius: 100%;
background: #FEFEFE;
}
.loader-fullscreen > .circle:nth-child(2) ,
.loader > .circle:nth-child(2) {
animation-delay: 250ms;
}
.loader-fullscreen > .circle:nth-child(3) ,
.loader > .circle:nth-child(3) {
animation-delay: 500ms;
}
.loader-fullscreen > .circle:nth-child(4) ,
.loader > .circle:nth-child(4) {
animation-delay: 750ms;
}
.loader-fullscreen > .circle:nth-child(5) ,
.loader > .circle:nth-child(5) {
animation-delay:1000ms;
}
/* animation */
@keyframes orbit {
0% {
transform: rotate(225deg);
opacity: 1;
animation-timing-function: ease-out;
}
7% {
transform: rotate(345deg);
animation-timing-function: linear;
}
30% {
transform: rotate(455deg);
animation-timing-function: ease-in-out;
}
39% {
transform: rotate(690deg);
animation-timing-function: linear;
}
70% {
transform: rotate(815deg);
opacity: 1;
animation-timing-function: ease-out;
}
75% {
transform: rotate(945deg);
opacity: 0;
}
}