forked from lukehaas/css-loaders
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathload3.less
54 lines (50 loc) · 1.31 KB
/
load3.less
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
@bg: hsl(179,88%,43%);
.load3 .loader {
font-size:10px;
margin:30% auto;
text-indent:-9999em;
width:11em;
height:11em;
border-radius:50%;
background: rgb(255,255,255);
background: -moz-linear-gradient(left, rgba(255,255,255,1) 10%, rgba(255,255,255,0) 42%);
background: -webkit-linear-gradient(left, rgba(255,255,255,1) 10%,rgba(255,255,255,0) 42%);
background: -o-linear-gradient(left, rgba(255,255,255,1) 10%,rgba(255,255,255,0) 42%);
background: -ms-linear-gradient(left, rgba(255,255,255,1) 10%,rgba(255,255,255,0) 42%);
background: linear-gradient(to right, rgba(255,255,255,1) 10%,rgba(255,255,255,0) 42%);
position: relative;
-webkit-animation:load3 1.4s infinite linear;
animation:load3 1.4s infinite linear;
}
.load3 .loader:before {
width:50%;
height:50%;
background: #FFF;
border-radius: 100% 0 0 0;
position:absolute;
top:0;
left:0;
content:'';
}
.load3 .loader:after {
background:@bg;
width:75%;
height:75%;
border-radius:50%;
content:'';
margin:auto;
position: absolute;
top: 0; left: 0; bottom: 0; right: 0;
}
@-webkit-keyframes load3 {.load3-frames;}
@keyframes load3 {.load3-frames;}
.load3-frames() {
0% {
-webkit-transform:rotate(0deg);
transform:rotate(0deg);
}
100% {
-webkit-transform:rotate(360deg);
transform:rotate(360deg);
}
}