Back

Loader

1 
2<div class="loader">
3 <svg height="0" width="0" viewBox="0 0 64 64" class="absolute">
4 <defs class="s-xJBuHA073rTt" xmlns="http://www.w3.org/2000/svg">
5 <linearGradient class="s-xJBuHA073rTt" gradientUnits="userSpaceOnUse" y2="2" x2="0" y1="62" x1="0" id="b">
6 <stop class="s-xJBuHA073rTt" stop-color="#973BED"></stop>
7 <stop class="s-xJBuHA073rTt" stop-color="#007CFF" offset="1"></stop>
8 </linearGradient>
9 <linearGradient class="s-xJBuHA073rTt" gradientUnits="userSpaceOnUse" y2="0" x2="0" y1="64" x1="0" id="c">
10 <stop class="s-xJBuHA073rTt" stop-color="#FFC800"></stop>
11 <stop class="s-xJBuHA073rTt" stop-color="#F0F" offset="1"></stop>
12 <animateTransform repeatCount="indefinite" keySplines=".42,0,.58,1;.42,0,.58,1;.42,0,.58,1;.42,0,.58,1;.42,0,.58,1;.42,0,.58,1;.42,0,.58,1;.42,0,.58,1" keyTimes="0; 0.125; 0.25; 0.375; 0.5; 0.625; 0.75; 0.875; 1" dur="8s" values="0 32 32;-270 32 32;-270 32 32;-540 32 32;-540 32 32;-810 32 32;-810 32 32;-1080 32 32;-1080 32 32" type="rotate" attributeName="gradientTransform"></animateTransform>
13 </linearGradient>
14 <linearGradient class="s-xJBuHA073rTt" gradientUnits="userSpaceOnUse" y2="2" x2="0" y1="62" x1="0" id="d">
15 <stop class="s-xJBuHA073rTt" stop-color="#00E0ED"></stop>
16 <stop class="s-xJBuHA073rTt" stop-color="#00DA72" offset="1"></stop>
17 </linearGradient>
18 </defs>
19 </svg>
20 <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 64 64" height="64" width="64" class="inline-block">
21 <path stroke-linejoin="round" stroke-linecap="round" stroke-width="8" stroke="url(#b)" d="M 54.722656,3.9726563 A 2.0002,2.0002 0 0 0 54.941406,4 h 5.007813 C 58.955121,17.046124 49.099667,27.677057 36.121094,29.580078 a 2.0002,2.0002 0 0 0 -1.708985,1.978516 V 60 H 29.587891 V 31.558594 A 2.0002,2.0002 0 0 0 27.878906,29.580078 C 14.900333,27.677057 5.0448787,17.046124 4.0507812,4 H 9.28125 c 1.231666,11.63657 10.984383,20.554048 22.6875,20.734375 a 2.0002,2.0002 0 0 0 0.02344,0 c 11.806958,0.04283 21.70649,-9.003371 22.730469,-20.7617187 z" class="dash" id="y" pathLength="360"></path>
22 </svg>
23 <svg xmlns="http://www.w3.org/2000/svg" fill="none" style="--rotation-duration:0ms; --rotation-direction:normal;" viewBox="0 0 64 64" height="64" width="64" class="inline-block">
24 <path stroke-linejoin="round" stroke-linecap="round" stroke-width="10" stroke="url(#c)" d="M 32 32
25 m 0 -27
26 a 27 27 0 1 1 0 54
27 a 27 27 0 1 1 0 -54" class="spin" id="o" pathLength="360"></path>
28 </svg>
29 <div class="w-2"></div>
30 <svg xmlns="http://www.w3.org/2000/svg" fill="none" style="--rotation-duration:0ms; --rotation-direction:normal;" viewBox="0 0 64 64" height="64" width="64" class="inline-block">
31 <path stroke-linejoin="round" stroke-linecap="round" stroke-width="8" stroke="url(#d)" d="M 4,4 h 4.6230469 v 25.919922 c -0.00276,11.916203 9.8364941,21.550422 21.7500001,21.296875 11.616666,-0.240651 21.014356,-9.63894 21.253906,-21.25586 a 2.0002,2.0002 0 0 0 0,-0.04102 V 4 H 56.25 v 25.919922 c 0,14.33873 -11.581192,25.919922 -25.919922,25.919922 a 2.0002,2.0002 0 0 0 -0.0293,0 C 15.812309,56.052941 3.998433,44.409961 4,29.919922 Z" class="dash" id="u" pathLength="360"></path>
32 </svg>
33</div>
1 
2.absolute {
3 position: absolute;
4}
5 
6.inline-block {
7 display: inline-block;
8}
9 
10.loader {
11 display: flex;
12 margin: 0.25em 0;
13}
14 
15.w-2 {
16 width: 0.5em;
17}
18 
19.dash {
20 animation: dashArray 2s ease-in-out infinite,
21 dashOffset 2s linear infinite;
22}
23 
24.spin {
25 animation: spinDashArray 2s ease-in-out infinite,
26 spin 8s ease-in-out infinite,
27 dashOffset 2s linear infinite;
28 transform-origin: center;
29}
30 
31@keyframes dashArray {
32 0% {
33 stroke-dasharray: 0 1 359 0;
34 }
35 
36 50% {
37 stroke-dasharray: 0 359 1 0;
38 }
39 
40 100% {
41 stroke-dasharray: 359 1 0 0;
42 }
43}
44 
45@keyframes spinDashArray {
46 0% {
47 stroke-dasharray: 270 90;
48 }
49 
50 50% {
51 stroke-dasharray: 0 360;
52 }
53 
54 100% {
55 stroke-dasharray: 270 90;
56 }
57}
58 
59@keyframes dashOffset {
60 0% {
61 stroke-dashoffset: 365;
62 }
63 
64 100% {
65 stroke-dashoffset: 5;
66 }
67}
68 
69@keyframes spin {
70 0% {
71 rotate: 0deg;
72 }
73 
74 12.5%,
75 25% {
76 rotate: 270deg;
77 }
78 
79 37.5%,
80 50% {
81 rotate: 540deg;
82 }
83 
84 62.5%,
85 75% {
86 rotate: 810deg;
87 }
88 
89 87.5%,
90 100% {
91 rotate: 1080deg;
92 }
93}

MIT License

Copyright © 2026 SelfMadeSystem (SelfMadeSystem)


Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:


The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.


THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.