forked from maxbeier/text-spinners
-
Notifications
You must be signed in to change notification settings - Fork 0
/
spinners.scss
214 lines (175 loc) · 5.35 KB
/
spinners.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
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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
/* --- Basics --- */
.loading {
display: inline-block;
overflow: hidden;
height: 1.3em;
margin-top: -0.3em;
line-height: 1.5em;
vertical-align: text-bottom;
}
.loading::after {
display: inline-table;
white-space: pre;
text-align: left;
}
/* --- Types --- */
/* default loading is ellip */
.loading::after {
content: "\A.\A..\A...";
animation: spin4 2s steps(4) infinite;
}
.loading.line::after {
content: "/\A–\A\\\A|";
text-align: center;
animation: spin4 1s steps(4) infinite;
}
.loading.line2::after {
content: "╲\A│\A╱\A─";
text-align: center;
animation: spin4 1s steps(4) infinite;
}
.loading.plus::after {
content: "┽\A╀\A┾\A╁";
animation: spin4 1s steps(4) infinite;
}
.loading.dots::after {
content: "⠋\A⠙\A⠹\A⠸\A⠼\A⠴\A⠦\A⠧\A⠇\A⠏";
animation: spin10 1s steps(10) infinite;
}
.loading.dots2::after {
content: "⠋\A⠙\A⠚\A⠞\A⠖\A⠦\A⠴\A⠲\A⠳";
animation: spin9 1s steps(9) infinite;
}
.loading.dots3::after {
content: "⋮\A⋰\A⋯\A⋱";
text-align: center;
animation: spin4 1s steps(4) infinite;
}
.loading.lifting::after {
content: "꜈꜍\A꜉꜎\A꜊꜏\A꜋꜐\A꜌꜑";
animation: spin5 .5s steps(5) infinite alternate;
}
.loading.hamburger::after {
content: "☱\A☲\A☴";
animation: spin3 .3s steps(3) infinite alternate;
}
.loading.bar::after {
content: "▏\A▎\A▍\A▌\A▋\A▊\A▉";
animation: spin7 1s steps(7) infinite alternate;
}
.loading.bar2::after {
content: "▁\A▂\A▃\A▄\A▅\A▆\A▇\A█";
animation: spin8 2s steps(8) infinite alternate;
}
.loading.circle::after {
content: "◴\A◷\A◶\A◵";
animation: spin4 1s steps(4) infinite;
}
.loading.open-circle::after {
content: "◜\A◠\A◝\A◞\A◡\A◟";
animation: spin6 .6s steps(6) infinite;
}
.loading.arrow::after {
content: "←\A↖\A↑\A↗\A→\A↘\A↓\A↙";
animation: spin8 1s steps(8) infinite;
}
.loading.triangle::after {
content: "◢\A◣\A◤\A◥";
animation: spin4 1s steps(4) infinite;
}
.loading.triangles::after {
content: "▹▹▹▹▹\A ▸▹▹▹▹\A ▹▸▹▹▹\A ▹▹▸▹▹\A ▹▹▹▸▹\A ▹▹▹▹▸";
animation: spin6 1s steps(6) infinite;
}
.loading.beam::after {
content: "\A= \A == \A === \A ====\A ===\A ==\A =\A";
animation: spin9 1.2s steps(9) infinite;
font-family: monospace;
}
.loading.bullet::after {
content: " ● \A ● \A ● \A ● \A ●\A ● \A ● \A ● \A ● \A ● ";
animation: spin10 1s steps(10) infinite;
}
.loading.bullseye::after {
content: "◎◎◎\A◉◎◎\A◎◉◎\A◎◎◉";
animation: spin4 1s steps(4) infinite;
}
.loading.rhomb::after {
content: "◇◇◇\A◈◇◇\A◇◈◇\A◇◇◈";
animation: spin4 1s steps(4) infinite;
}
.loading.fish::after {
content: ">))'>\A >))'>\A >))'>\A >))'>\A >))'>\A <'((<\A <'((<\A <'((<\A <'((<\A <'((<\A";
animation: spin10 5s steps(10) infinite;
}
.loading.toggle::after {
content: "⊶\A⊷";
animation: spin2 1s steps(2) infinite;
}
.loading.countdown::after {
content: "0\A 1\A 2\A 3\A 4\A 5\A 6\A 7\A 8\A 9";
animation: spin10 10s steps(10) reverse;
}
.loading.time::after {
content: "🕐\A🕑\A🕒\A🕓\A🕔\A🕕\A🕖\A🕗\A🕘\A🕙\A🕚\A🕛";
animation: spin12 3s steps(12) infinite;
width: 1.3em;
}
.loading.hearts::after {
content: "💛\A💙\A💜\A💚";
animation: spin4 2s steps(4) infinite;
width: 1.3em;
}
.loading.earth::after {
content: "🌍\A🌎\A🌏";
animation: spin3 1s steps(3) infinite;
width: 1.3em;
}
.loading.moon::after {
content: "🌑\A🌒\A🌓\A🌔\A🌕\A🌖\A🌗\A🌘";
animation: spin8 2s steps(8) infinite;
width: 1.3em;
}
.loading.monkey::after {
content: "🙈\A🙉\A🙊";
animation: spin3 1.5s steps(3) infinite;
width: 1.3em;
}
.loading.runner::after {
content: "🚶\A🏃";
animation: spin2 1s steps(2) infinite;
width: 1.3em;
}
.loading.box-bounce::after {
content:"▖\A▘\A▝\A▗";
animation: spin4 1s steps(4) infinite;
}
.loading.star::after {
content:"✶\A✸\A✹\A✺\A✹\A✷";
animation: spin6 1s steps(6) infinite;
}
.loading.matrix::after {
content:"░ ░░░░\A░░ ░░░\A░░░ ░░\A░░░░ ░";
animation: spin4 .5s steps(4) infinite alternate;
}
.loading.square::after {
content: "◰\A◳\A◲\A◱";
animation: spin4 1s steps(4) infinite;
}
.loading.words::after {
content: "Loading\A Still loading\A Mostly done\A A bit more \A Almost done\A Ready-ish";
animation: spin6 12s steps(6) infinite;
}
/* --- Animations --- */
@keyframes spin1 { to { transform: translateY( -1.5em); } }
@keyframes spin2 { to { transform: translateY( -3.0em); } }
@keyframes spin3 { to { transform: translateY( -4.5em); } }
@keyframes spin4 { to { transform: translateY( -6.0em); } }
@keyframes spin5 { to { transform: translateY( -7.5em); } }
@keyframes spin6 { to { transform: translateY( -9.0em); } }
@keyframes spin7 { to { transform: translateY(-10.5em); } }
@keyframes spin8 { to { transform: translateY(-12.0em); } }
@keyframes spin9 { to { transform: translateY(-13.5em); } }
@keyframes spin10 { to { transform: translateY(-15.0em); } }
@keyframes spin11 { to { transform: translateY(-16.5em); } }
@keyframes spin12 { to { transform: translateY(-18.0em); } }