x
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
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
<div class="flex flex-wrap gap-8 p-8 items-center justify-center"> <div class="flex flex-col items-center gap-2"> <div class="midwest-loading-icon text-4xl" role="img" aria-label="Loading"> <div class="midwest-loading-icon-inner"> <!-- By Sam Herbert (@sherb), for everyone. More @ http://goo.gl/7AJzbL --> <svg viewbox="0 0 55 80" xmlns="http://www.w3.org/2000/svg" class="Midwest-LoadingIcon__Svg" focusable="false" aria-hidden="true"> <g transform="matrix(1 0 0 -1 0 80)"> <rect width="10" height="20" rx="3" fill="currentColor"> <animate attributename="height" begin="0s" dur="4.3s" values="20;45;57;80;64;32;66;45;64;23;66;13;64;56;34;34;2;23;76;79;20" calcmode="linear" repeatcount="indefinite"></animate> </rect> <rect x="15" width="10" height="80" rx="3" fill="currentColor"> <animate attributename="height" begin="0s" dur="2s" values="80;55;33;5;75;23;73;33;12;14;60;80" calcmode="linear" repeatcount="indefinite"></animate> </rect> <rect x="30" width="10" height="50" rx="3" fill="currentColor"> <animate attributename="height" begin="0s" dur="1.4s" values="50;34;78;23;56;23;34;76;80;54;21;50" calcmode="linear" repeatcount="indefinite"></animate> </rect> <rect x="45" width="10" height="30" rx="3" fill="currentColor"> <animate attributename="height" begin="0s" dur="2s" values="30;45;13;80;56;72;45;76;34;23;67;30" calcmode="linear" repeatcount="indefinite"></animate> </rect> </g> </svg> </div> </div> <span class="text-xs text-gray-500">audio</span> </div> <div class="flex flex-col items-center gap-2"> <div class="midwest-loading-icon text-4xl" role="img" aria-label="Loading"> <div class="midwest-loading-icon-inner"> <!-- By Sam Herbert (@sherb), for everyone. More @ http://goo.gl/7AJzbL --> <svg viewbox="0 0 57 57" xmlns="http://www.w3.org/2000/svg" stroke="currentColor" class="Midwest-LoadingIcon__Svg" focusable="false" aria-hidden="true"> <g fill="none" fill-rule="evenodd"> <g transform="translate(1 1)" stroke-width="2"> <circle cx="5" cy="50" r="5"> <animate attributename="cy" begin="0s" dur="2.2s" values="50;5;50;50" calcmode="linear" repeatcount="indefinite"></animate> <animate attributename="cx" begin="0s" dur="2.2s" values="5;27;49;5" calcmode="linear" repeatcount="indefinite"></animate> </circle> <circle cx="27" cy="5" r="5"> <animate attributename="cy" begin="0s" dur="2.2s" from="5" to="5" values="5;50;50;5" calcmode="linear" repeatcount="indefinite"></animate> <animate attributename="cx" begin="0s" dur="2.2s" from="27" to="27" values="27;49;5;27" calcmode="linear" repeatcount="indefinite"></animate> </circle> <circle cx="49" cy="50" r="5"> <animate attributename="cy" begin="0s" dur="2.2s" values="50;50;5;50" calcmode="linear" repeatcount="indefinite"></animate> <animate attributename="cx" from="49" to="49" begin="0s" dur="2.2s" values="49;5;27;49" calcmode="linear" repeatcount="indefinite"></animate> </circle> </g> </g> </svg> </div> </div> <span class="text-xs text-gray-500">ball-triangle</span> </div> <div class="flex flex-col items-center gap-2"> <div class="midwest-loading-icon text-4xl" role="img" aria-label="Loading"> <div class="midwest-loading-icon-inner"> <svg viewbox="0 0 135 140" xmlns="http://www.w3.org/2000/svg" fill="currentColor" class="Midwest-LoadingIcon__Svg" focusable="false" aria-hidden="true"> <rect y="10" width="15" height="120" rx="6"> <animate attributename="height" begin="0.5s" dur="1s" values="120;110;100;90;80;70;60;50;40;140;120" calcmode="linear" repeatcount="indefinite"></animate> <animate attributename="y" begin="0.5s" dur="1s" values="10;15;20;25;30;35;40;45;50;0;10" calcmode="linear" repeatcount="indefinite"></animate> </rect> <rect x="30" y="10" width="15" height="120" rx="6"> <animate attributename="height" begin="0.25s" dur="1s" values="120;110;100;90;80;70;60;50;40;140;120" calcmode="linear" repeatcount="indefinite"></animate> <animate attributename="y" begin="0.25s" dur="1s" values="10;15;20;25;30;35;40;45;50;0;10" calcmode="linear" repeatcount="indefinite"></animate> </rect> <rect x="60" width="15" height="140" rx="6"> <animate attributename="height" begin="0s" dur="1s" values="120;110;100;90;80;70;60;50;40;140;120" calcmode="linear" repeatcount="indefinite"></animate> <animate attributename="y" begin="0s" dur="1s" values="10;15;20;25;30;35;40;45;50;0;10" calcmode="linear" repeatcount="indefinite"></animate> </rect> <rect x="90" y="10" width="15" height="120" rx="6"> <animate attributename="height" begin="0.25s" dur="1s" values="120;110;100;90;80;70;60;50;40;140;120" calcmode="linear" repeatcount="indefinite"></animate> <animate attributename="y" begin="0.25s" dur="1s" values="10;15;20;25;30;35;40;45;50;0;10" calcmode="linear" repeatcount="indefinite"></animate> </rect> <rect x="120" y="10" width="15" height="120" rx="6"> <animate attributename="height" begin="0.5s" dur="1s" values="120;110;100;90;80;70;60;50;40;140;120" calcmode="linear" repeatcount="indefinite"></animate> <animate attributename="y" begin="0.5s" dur="1s" values="10;15;20;25;30;35;40;45;50;0;10" calcmode="linear" repeatcount="indefinite"></animate> </rect> </svg> </div> </div> <span class="text-xs text-gray-500">bars</span> </div> <div class="flex flex-col items-center gap-2"> <div class="midwest-loading-icon text-4xl" role="img" aria-label="Loading"> <div class="midwest-loading-icon-inner"> <svg viewbox="0 0 135 135" xmlns="http://www.w3.org/2000/svg" fill="currentColor" class="Midwest-LoadingIcon__Svg" focusable="false" aria-hidden="true"> <path d="M67.447 58c5.523 0 10-4.477 10-10s-4.477-10-10-10-10 4.477-10 10 4.477 10 10 10zm9.448 9.447c0 5.523 4.477 10 10 10 5.522 0 10-4.477 10-10s-4.478-10-10-10c-5.523 0-10 4.477-10 10zm-9.448 9.448c-5.523 0-10 4.477-10 10 0 5.522 4.477 10 10 10s10-4.478 10-10c0-5.523-4.477-10-10-10zM58 67.447c0-5.523-4.477-10-10-10s-10 4.477-10 10 4.477 10 10 10 10-4.477 10-10z"> <animatetransform attributename="transform" type="rotate" from="0 67 67" to="-360 67 67" dur="2.5s" repeatcount="indefinite"></animatetransform> </path> <path d="M28.19 40.31c6.627 0 12-5.374 12-12 0-6.628-5.373-12-12-12-6.628 0-12 5.372-12 12 0 6.626 5.372 12 12 12zm30.72-19.825c4.686 4.687 12.284 4.687 16.97 0 4.686-4.686 4.686-12.284 0-16.97-4.686-4.687-12.284-4.687-16.97 0-4.687 4.686-4.687 12.284 0 16.97zm35.74 7.705c0 6.627 5.37 12 12 12 6.626 0 12-5.373 12-12 0-6.628-5.374-12-12-12-6.63 0-12 5.372-12 12zm19.822 30.72c-4.686 4.686-4.686 12.284 0 16.97 4.687 4.686 12.285 4.686 16.97 0 4.687-4.686 4.687-12.284 0-16.97-4.685-4.687-12.283-4.687-16.97 0zm-7.704 35.74c-6.627 0-12 5.37-12 12 0 6.626 5.373 12 12 12s12-5.374 12-12c0-6.63-5.373-12-12-12zm-30.72 19.822c-4.686-4.686-12.284-4.686-16.97 0-4.686 4.687-4.686 12.285 0 16.97 4.686 4.687 12.284 4.687 16.97 0 4.687-4.685 4.687-12.283 0-16.97zm-35.74-7.704c0-6.627-5.372-12-12-12-6.626 0-12 5.373-12 12s5.374 12 12 12c6.628 0 12-5.373 12-12zm-19.823-30.72c4.687-4.686 4.687-12.284 0-16.97-4.686-4.686-12.284-4.686-16.97 0-4.687 4.686-4.687 12.284 0 16.97 4.686 4.687 12.284 4.687 16.97 0z"> <animatetransform attributename="transform" type="rotate" from="0 67 67" to="360 67 67" dur="8s" repeatcount="indefinite"></animatetransform> </path> </svg> </div> </div> <span class="text-xs text-gray-500">circles</span> </div> <div class="flex flex-col items-center gap-2"> <div class="midwest-loading-icon text-4xl" role="img" aria-label="Loading"> <div class="midwest-loading-icon-inner"> <svg viewbox="0 0 105 105" xmlns="http://www.w3.org/2000/svg" fill="currentColor" class="Midwest-LoadingIcon__Svg" focusable="false" aria-hidden="true"> <circle cx="12.5" cy="12.5" r="12.5"> <animate attributename="fill-opacity" begin="0s" dur="1s" values="1;.2;1" calcmode="linear" repeatcount="indefinite"></animate> </circle> <circle cx="12.5" cy="52.5" r="12.5" fill-opacity=".5"> <animate attributename="fill-opacity" begin="100ms" dur="1s" values="1;.2;1" calcmode="linear" repeatcount="indefinite"></animate> </circle> <circle cx="52.5" cy="12.5" r="12.5"> <animate attributename="fill-opacity" begin="300ms" dur="1s" values="1;.2;1" calcmode="linear" repeatcount="indefinite"></animate> </circle> <circle cx="52.5" cy="52.5" r="12.5"> <animate attributename="fill-opacity" begin="600ms" dur="1s" values="1;.2;1" calcmode="linear" repeatcount="indefinite"></animate> </circle> <circle cx="92.5" cy="12.5" r="12.5"> <animate attributename="fill-opacity" begin="800ms" dur="1s" values="1;.2;1" calcmode="linear" repeatcount="indefinite"></animate> </circle> <circle cx="92.5" cy="52.5" r="12.5"> <animate attributename="fill-opacity" begin="400ms" dur="1s" values="1;.2;1" calcmode="linear" repeatcount="indefinite"></animate> </circle> <circle cx="12.5" cy="92.5" r="12.5"> <animate attributename="fill-opacity" begin="700ms" dur="1s" values="1;.2;1" calcmode="linear" repeatcount="indefinite"></animate> </circle> <circle cx="52.5" cy="92.5" r="12.5"> <animate attributename="fill-opacity" begin="500ms" dur="1s" values="1;.2;1" calcmode="linear" repeatcount="indefinite"></animate> </circle> <circle cx="92.5" cy="92.5" r="12.5"> <animate attributename="fill-opacity" begin="200ms" dur="1s" values="1;.2;1" calcmode="linear" repeatcount="indefinite"></animate> </circle> </svg> </div> </div> <span class="text-xs text-gray-500">grid</span> </div> <div class="flex flex-col items-center gap-2"> <div class="midwest-loading-icon text-4xl" role="img" aria-label="Loading"> <div class="midwest-loading-icon-inner"> <!-- By Sam Herbert (@sherb), for everyone. More @ http://goo.gl/7AJzbL --> <svg viewbox="0 0 38 38" xmlns="http://www.w3.org/2000/svg" stroke="currentColor" class="Midwest-LoadingIcon__Svg" focusable="false" aria-hidden="true"> <g fill="none" fill-rule="evenodd"> <g transform="translate(1 1)" stroke-width="2"> <circle stroke-opacity=".5" cx="18" cy="18" r="18"></circle> <path d="M36 18c0-9.94-8.06-18-18-18"> <animatetransform attributename="transform" type="rotate" from="0 18 18" to="360 18 18" dur="1s" repeatcount="indefinite"></animatetransform> </path> </g> </g> </svg> </div> </div> <span class="text-xs text-gray-500">oval</span> </div> <div class="flex flex-col items-center gap-2"> <div class="midwest-loading-icon text-4xl" role="img" aria-label="Loading"> <div class="midwest-loading-icon-inner"> <!-- By Sam Herbert (@sherb), for everyone. More @ http://goo.gl/7AJzbL --> <svg viewbox="0 0 44 44" xmlns="http://www.w3.org/2000/svg" stroke="currentColor" class="Midwest-LoadingIcon__Svg" focusable="false" aria-hidden="true"> <g fill="none" fill-rule="evenodd" stroke-width="2"> <circle cx="22" cy="22" r="1"> <animate attributename="r" begin="0s" dur="1.8s" values="1; 20" calcmode="spline" keytimes="0; 1" keysplines="0.165, 0.84, 0.44, 1" repeatcount="indefinite"></animate> <animate attributename="stroke-opacity" begin="0s" dur="1.8s" values="1; 0" calcmode="spline" keytimes="0; 1" keysplines="0.3, 0.61, 0.355, 1" repeatcount="indefinite"></animate> </circle> <circle cx="22" cy="22" r="1"> <animate attributename="r" begin="-0.9s" dur="1.8s" values="1; 20" calcmode="spline" keytimes="0; 1" keysplines="0.165, 0.84, 0.44, 1" repeatcount="indefinite"></animate> <animate attributename="stroke-opacity" begin="-0.9s" dur="1.8s" values="1; 0" calcmode="spline" keytimes="0; 1" keysplines="0.3, 0.61, 0.355, 1" repeatcount="indefinite"></animate> </circle> </g> </svg> </div> </div> <span class="text-xs text-gray-500">puff</span> </div> <div class="flex flex-col items-center gap-2"> <div class="midwest-loading-icon text-4xl" role="img" aria-label="Loading"> <div class="midwest-loading-icon-inner"> <!-- By Sam Herbert (@sherb), for everyone. More @ http://goo.gl/7AJzbL --> <svg viewbox="0 0 45 45" xmlns="http://www.w3.org/2000/svg" stroke="currentColor" class="Midwest-LoadingIcon__Svg" focusable="false" aria-hidden="true"> <g fill="none" fill-rule="evenodd" transform="translate(1 1)" stroke-width="2"> <circle cx="22" cy="22" r="6" stroke-opacity="0"> <animate attributename="r" begin="1.5s" dur="3s" values="6;22" calcmode="linear" repeatcount="indefinite"></animate> <animate attributename="stroke-opacity" begin="1.5s" dur="3s" values="1;0" calcmode="linear" repeatcount="indefinite"></animate> <animate attributename="stroke-width" begin="1.5s" dur="3s" values="2;0" calcmode="linear" repeatcount="indefinite"></animate> </circle> <circle cx="22" cy="22" r="6" stroke-opacity="0"> <animate attributename="r" begin="3s" dur="3s" values="6;22" calcmode="linear" repeatcount="indefinite"></animate> <animate attributename="stroke-opacity" begin="3s" dur="3s" values="1;0" calcmode="linear" repeatcount="indefinite"></animate> <animate attributename="stroke-width" begin="3s" dur="3s" values="2;0" calcmode="linear" repeatcount="indefinite"></animate> </circle> <circle cx="22" cy="22" r="8"> <animate attributename="r" begin="0s" dur="1.5s" values="6;1;2;3;4;5;6" calcmode="linear" repeatcount="indefinite"></animate> </circle> </g> </svg> </div> </div> <span class="text-xs text-gray-500">rings</span> </div> <div class="flex flex-col items-center gap-2"> <div class="midwest-loading-icon text-4xl" role="img" aria-label="Loading"> <div class="midwest-loading-icon-inner"> <!-- By Sam Herbert (@sherb), for everyone. More @ http://goo.gl/7AJzbL --> <svg viewbox="0 0 58 58" xmlns="http://www.w3.org/2000/svg" class="Midwest-LoadingIcon__Svg" focusable="false" aria-hidden="true"> <g fill="none" fill-rule="evenodd"> <g transform="translate(2 1)" stroke="currentColor" stroke-width="1.5"> <circle cx="42.601" cy="11.462" r="5" fill-opacity="1" fill="currentColor"> <animate attributename="fill-opacity" begin="0s" dur="1.3s" values="1;0;0;0;0;0;0;0" calcmode="linear" repeatcount="indefinite"></animate> </circle> <circle cx="49.063" cy="27.063" r="5" fill-opacity="0" fill="currentColor"> <animate attributename="fill-opacity" begin="0s" dur="1.3s" values="0;1;0;0;0;0;0;0" calcmode="linear" repeatcount="indefinite"></animate> </circle> <circle cx="42.601" cy="42.663" r="5" fill-opacity="0" fill="currentColor"> <animate attributename="fill-opacity" begin="0s" dur="1.3s" values="0;0;1;0;0;0;0;0" calcmode="linear" repeatcount="indefinite"></animate> </circle> <circle cx="27" cy="49.125" r="5" fill-opacity="0" fill="currentColor"> <animate attributename="fill-opacity" begin="0s" dur="1.3s" values="0;0;0;1;0;0;0;0" calcmode="linear" repeatcount="indefinite"></animate> </circle> <circle cx="11.399" cy="42.663" r="5" fill-opacity="0" fill="currentColor"> <animate attributename="fill-opacity" begin="0s" dur="1.3s" values="0;0;0;0;1;0;0;0" calcmode="linear" repeatcount="indefinite"></animate> </circle> <circle cx="4.938" cy="27.063" r="5" fill-opacity="0" fill="currentColor"> <animate attributename="fill-opacity" begin="0s" dur="1.3s" values="0;0;0;0;0;1;0;0" calcmode="linear" repeatcount="indefinite"></animate> </circle> <circle cx="11.399" cy="11.462" r="5" fill-opacity="0" fill="currentColor"> <animate attributename="fill-opacity" begin="0s" dur="1.3s" values="0;0;0;0;0;0;1;0" calcmode="linear" repeatcount="indefinite"></animate> </circle> <circle cx="27" cy="5" r="5" fill-opacity="0" fill="currentColor"> <animate attributename="fill-opacity" begin="0s" dur="1.3s" values="0;0;0;0;0;0;0;1" calcmode="linear" repeatcount="indefinite"></animate> </circle> </g> </g> </svg> </div> </div> <span class="text-xs text-gray-500">spinning-circles</span> </div> <div class="flex flex-col items-center gap-2"> <div class="midwest-loading-icon text-4xl" role="img" aria-label="Loading"> <div class="midwest-loading-icon-inner"> <!-- By Sam Herbert (@sherb), for everyone. More @ http://goo.gl/7AJzbL --> <svg viewbox="0 0 38 38" xmlns="http://www.w3.org/2000/svg" class="Midwest-LoadingIcon__Svg" focusable="false" aria-hidden="true"> <defs> <lineargradient x1="8.042%" y1="0%" x2="65.682%" y2="23.865%" id="a"> <stop stop-color="currentColor" stop-opacity="0" offset="0%"></stop> <stop stop-color="currentColor" stop-opacity=".631" offset="63.146%"></stop> <stop stop-color="currentColor" offset="100%"></stop> </lineargradient> </defs> <g fill="none" fill-rule="evenodd"> <g transform="translate(1 1)"> <path d="M36 18c0-9.94-8.06-18-18-18" id="Oval-2" stroke="url(#a)" stroke-width="2"> <animatetransform attributename="transform" type="rotate" from="0 18 18" to="360 18 18" dur="0.9s" repeatcount="indefinite"></animatetransform> </path> <circle fill="currentColor" cx="36" cy="18" r="1"> <animatetransform attributename="transform" type="rotate" from="0 18 18" to="360 18 18" dur="0.9s" repeatcount="indefinite"></animatetransform> </circle> </g> </g> </svg> </div> </div> <span class="text-xs text-gray-500">tail-spin</span> </div> <div class="flex flex-col items-center gap-2"> <div class="midwest-loading-icon text-4xl" role="img" aria-label="Loading"> <div class="midwest-loading-icon-inner"> <!-- By Sam Herbert (@sherb), for everyone. More @ http://goo.gl/7AJzbL --> <svg viewbox="0 0 120 30" xmlns="http://www.w3.org/2000/svg" fill="currentColor" class="Midwest-LoadingIcon__Svg" focusable="false" aria-hidden="true"> <circle cx="15" cy="15" r="15"> <animate attributename="r" from="15" to="15" begin="0s" dur="0.8s" values="15;9;15" calcmode="linear" repeatcount="indefinite"></animate> <animate attributename="fill-opacity" from="1" to="1" begin="0s" dur="0.8s" values="1;.5;1" calcmode="linear" repeatcount="indefinite"></animate> </circle> <circle cx="60" cy="15" r="9" fill-opacity="0.3"> <animate attributename="r" from="9" to="9" begin="0s" dur="0.8s" values="9;15;9" calcmode="linear" repeatcount="indefinite"></animate> <animate attributename="fill-opacity" from="0.5" to="0.5" begin="0s" dur="0.8s" values=".5;1;.5" calcmode="linear" repeatcount="indefinite"></animate> </circle> <circle cx="105" cy="15" r="15"> <animate attributename="r" from="15" to="15" begin="0s" dur="0.8s" values="15;9;15" calcmode="linear" repeatcount="indefinite"></animate> <animate attributename="fill-opacity" from="1" to="1" begin="0s" dur="0.8s" values="1;.5;1" calcmode="linear" repeatcount="indefinite"></animate> </circle> </svg> </div> </div> <span class="text-xs text-gray-500">three-dots</span> </div></div>1
2
3
4
5
6
7
8
<div class="flex flex-wrap gap-8 p-8 items-center justify-center"> <% Midwest::LoadingIconComponent::LOADERS.each do |loader| %> <div class="flex flex-col items-center gap-2"> <%= midwest_loading_icon(loader, class: "text-4xl") %> <span class="text-xs text-gray-500"><%= loader.delete_prefix("loader-") %></span> </div> <% end %></div>All Loaders
All available loading indicators at a glance.
No params configured.
No assets to display.
Add a .js or .css file alongside the component to see it here.
Figma embed for Loading Icon/default
Annotate a preview to embed its Figma design here:
@figma "https://figma.com/..."