-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcubeloader.css
110 lines (97 loc) · 2.39 KB
/
cubeloader.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
/* Hi! I`m a golospolls cubeloader! Nice to meet you ;)
- Here is my HTML code:
<div class="lding" style="display: none;">
<div class="lds-css ng-scope">
<div class="lds-cube">
<div></div>
<div></div>
<div></div>
<div></div>
</div>
</div>
</div>
- You can inject me like this:
(document.body || document.documentElement).insertBefore(lds, (document.body || document.documentElement).firstChild);
- And you can turn me on by switching 'display: none' to 'display: block' */
@keyframes lds-cube {
0% {
-webkit-transform: scale(1.5);
transform: scale(1.5);
}
100% {
-webkit-transform: scale(1);
transform: scale(1);
}
}
@-webkit-keyframes lds-cube {
0% {
-webkit-transform: scale(1.5);
transform: scale(1.5);
}
100% {
-webkit-transform: scale(1);
transform: scale(1);
}
}
.lds-css {
height: 200px;
width: 200px;
position: fixed;
left: 50%;
top: 50%;
margin-left: -100px;
margin-top: -100px;
z-index: 1;
}
.lds-cube {
position: relative;
}
.lds-cube div {
position: absolute;
width: 80px;
height: 80px;
top: 10px;
left: 10px;
background: #ec0000;
-webkit-animation: lds-cube 1s cubic-bezier(0, 0.5, 0.5, 1) infinite;
animation: lds-cube 1s cubic-bezier(0, 0.5, 0.5, 1) infinite;
-webkit-animation-delay: -0.3s;
animation-delay: -0.3s;
}
.lds-cube div:nth-child(2) {
top: 10px;
left: 110px;
background: #e1e1e1;
-webkit-animation-delay: -0.2s;
animation-delay: -0.2s;
}
.lds-cube div:nth-child(3) {
top: 110px;
left: 110px;
background: #0057ff;
-webkit-animation-delay: -0.1s;
animation-delay: -0.1s;
}
.lds-cube div:nth-child(4) {
top: 110px;
left: 10px;
background: #a5a5a5;
-webkit-animation-delay: 0s;
animation-delay: 0s;
}
.lds-cube {
width: 200px !important;
height: 200px !important;
-webkit-transform: translate(-100px, -100px) scale(1) translate(100px, 100px);
transform: translate(-100px, -100px) scale(1) translate(100px, 100px);
}
.lding {
background: black;
position: fixed !important;
margin: -5rem !important;
width: 200% !important;
height: 200% !important;
display: none;
opacity: 0.5;
z-index: 2147483647;
}