forked from jlong/css-spinners
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathatebits.scss
66 lines (48 loc) · 2.06 KB
/
atebits.scss
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
@import "compass/css3";
$atebits-loader-size: 33px !default;
$atebits-loader-color: rgba(black, 0.5) !default;
$atebits-loader-speed: 8s !default;
$atebits-loader-segment: $atebits-loader-size / 11 !default;
@include keyframes(atebits-loader) {
0% { @include rotateZ(0deg); }
3% { @include rotateZ(90deg); }
10% { @include rotateZ(90deg); }
13% { @include rotateZ(180deg); }
20% { @include rotateZ(180deg); }
23% { @include rotateZ(90deg); }
30% { @include rotateZ(90deg); }
33% { @include rotateZ(180deg); }
40% { @include rotateZ(180deg); }
43% { @include rotateZ(270deg); }
50% { @include rotateZ(270deg); }
53% { @include rotateZ(180deg); }
60% { @include rotateZ(180deg); }
63% { @include rotateZ(90deg); }
70% { @include rotateZ(90deg); }
73% { @include rotateZ(0deg); }
80% { @include rotateZ(0deg); }
83% { @include rotateZ(-90deg); }
90% { @include rotateZ(-90deg); }
93% { @include rotateZ(0deg); }
}
/* :not(:required) hides this rule from IE9 and below */
.atebits-loader:not(:required) {
background: $atebits-loader-color;
display: inline-block;
width: $atebits-loader-segment * 3;
height: $atebits-loader-segment * 3;
overflow: hidden;
position: relative;
text-indent: -9999px;
@include box-shadow(
$atebits-loader-color (-4 * $atebits-loader-segment) (-4 * $atebits-loader-segment) 0 0,
$atebits-loader-color ( 4 * $atebits-loader-segment) (-4 * $atebits-loader-segment) 0 0,
$atebits-loader-color (-4 * $atebits-loader-segment) 0 0 0,
$atebits-loader-color ( 4 * $atebits-loader-segment) 0 0 0,
$atebits-loader-color (-4 * $atebits-loader-segment) ( 4 * $atebits-loader-segment) 0 0,
$atebits-loader-color 0 ( 4 * $atebits-loader-segment) 0 0,
$atebits-loader-color ( 4 * $atebits-loader-segment) ( 4 * $atebits-loader-segment) 0 0
);
@include animation(atebits-loader $atebits-loader-speed infinite ease-in-out);
@include transform-origin(50%, 50%);
}