-
Notifications
You must be signed in to change notification settings - Fork 0
/
jquery.spin.css
144 lines (139 loc) · 4.9 KB
/
jquery.spin.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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
/* jQuery Modal
* Copyright 2014 Kevin Sylvestre
* 1.1.6
*/
@-webkit-keyframes spin {
0% {
opacity: 0.2; }
100% {
opacity: 0.4; } }
@-moz-keyframes spin {
0% {
opacity: 0.2; }
100% {
opacity: 0.4; } }
@-ms-keyframes spin {
0% {
opacity: 0.2; }
100% {
opacity: 0.4; } }
@-o-keyframes spin {
0% {
opacity: 0.2; }
100% {
opacity: 0.4; } }
@-keyframes spin {
0% {
opacity: 0.2; }
100% {
opacity: 0.4; } }
.spin {
position: relative;
display: inline-block;
width: 128px;
height: 128px;
margin: 16px; }
.spin.spin-gleam {
background: #444444;
border-radius: 16px; }
.spin.spin-gleam > * {
background: #eeeeee; }
.spin.spin-dusky {
background: #eeeeee;
border-radius: 16px; }
.spin.spin-dusky > * {
background: #444444; }
.spin > * {
opacity: 0.2;
position: absolute;
width: 8%;
height: 24%;
left: 46%;
top: 38%;
background: black;
border-radius: 128px;
box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.4);
-webkit-animation: spin 0.8s linear infinite;
-moz-animation: spin 0.8s linear infinite;
animation: spin 0.8s linear infinite; }
.spin > *:nth-child(1) {
-webkit-transform: rotate(40deg) translate(0, -120%);
-moz-transform: rotate(40deg) translate(0, -120%);
-ms-transform: rotate(40deg) translate(0, -120%);
-o-transform: rotate(40deg) translate(0, -120%);
transform: rotate(40deg) translate(0, -120%);
-webkit-animation-delay: 0.08889s;
-moz-animation-delay: 0.08889s;
animation-delay: 0.08889s; }
.spin > *:nth-child(2) {
-webkit-transform: rotate(80deg) translate(0, -120%);
-moz-transform: rotate(80deg) translate(0, -120%);
-ms-transform: rotate(80deg) translate(0, -120%);
-o-transform: rotate(80deg) translate(0, -120%);
transform: rotate(80deg) translate(0, -120%);
-webkit-animation-delay: 0.17778s;
-moz-animation-delay: 0.17778s;
animation-delay: 0.17778s; }
.spin > *:nth-child(3) {
-webkit-transform: rotate(120deg) translate(0, -120%);
-moz-transform: rotate(120deg) translate(0, -120%);
-ms-transform: rotate(120deg) translate(0, -120%);
-o-transform: rotate(120deg) translate(0, -120%);
transform: rotate(120deg) translate(0, -120%);
-webkit-animation-delay: 0.26667s;
-moz-animation-delay: 0.26667s;
animation-delay: 0.26667s; }
.spin > *:nth-child(4) {
-webkit-transform: rotate(160deg) translate(0, -120%);
-moz-transform: rotate(160deg) translate(0, -120%);
-ms-transform: rotate(160deg) translate(0, -120%);
-o-transform: rotate(160deg) translate(0, -120%);
transform: rotate(160deg) translate(0, -120%);
-webkit-animation-delay: 0.35556s;
-moz-animation-delay: 0.35556s;
animation-delay: 0.35556s; }
.spin > *:nth-child(5) {
-webkit-transform: rotate(200deg) translate(0, -120%);
-moz-transform: rotate(200deg) translate(0, -120%);
-ms-transform: rotate(200deg) translate(0, -120%);
-o-transform: rotate(200deg) translate(0, -120%);
transform: rotate(200deg) translate(0, -120%);
-webkit-animation-delay: 0.44444s;
-moz-animation-delay: 0.44444s;
animation-delay: 0.44444s; }
.spin > *:nth-child(6) {
-webkit-transform: rotate(240deg) translate(0, -120%);
-moz-transform: rotate(240deg) translate(0, -120%);
-ms-transform: rotate(240deg) translate(0, -120%);
-o-transform: rotate(240deg) translate(0, -120%);
transform: rotate(240deg) translate(0, -120%);
-webkit-animation-delay: 0.53333s;
-moz-animation-delay: 0.53333s;
animation-delay: 0.53333s; }
.spin > *:nth-child(7) {
-webkit-transform: rotate(280deg) translate(0, -120%);
-moz-transform: rotate(280deg) translate(0, -120%);
-ms-transform: rotate(280deg) translate(0, -120%);
-o-transform: rotate(280deg) translate(0, -120%);
transform: rotate(280deg) translate(0, -120%);
-webkit-animation-delay: 0.62222s;
-moz-animation-delay: 0.62222s;
animation-delay: 0.62222s; }
.spin > *:nth-child(8) {
-webkit-transform: rotate(320deg) translate(0, -120%);
-moz-transform: rotate(320deg) translate(0, -120%);
-ms-transform: rotate(320deg) translate(0, -120%);
-o-transform: rotate(320deg) translate(0, -120%);
transform: rotate(320deg) translate(0, -120%);
-webkit-animation-delay: 0.71111s;
-moz-animation-delay: 0.71111s;
animation-delay: 0.71111s; }
.spin > *:nth-child(9) {
-webkit-transform: rotate(360deg) translate(0, -120%);
-moz-transform: rotate(360deg) translate(0, -120%);
-ms-transform: rotate(360deg) translate(0, -120%);
-o-transform: rotate(360deg) translate(0, -120%);
transform: rotate(360deg) translate(0, -120%);
-webkit-animation-delay: 0.8s;
-moz-animation-delay: 0.8s;
animation-delay: 0.8s; }