I load yes yes yes
By alexdmotoc · Web · Svelte 5.57.3 · Published 22 November 2026
Code
<div class="spinner">
{#each [0, 1, 2, 3, 4] as i}
<div class="dot" style:animation-delay="{i * 0.24}s"></div>
{/each}
</div>
<style>
.spinner {
position: relative;
width: 60px;
height: 60px;
margin: 270px auto;
}
.dot {
position: absolute;
inset: 0;
opacity: 0;
animation: orbit 5.0s infinite;
}
.dot::after {
content: "";
position: absolute;
left: 26px;
width: 8px;
height: 8px;
border-radius: 50%;
background: #0078d7;
}
@keyframes orbit {
0% { rotate: 225deg; opacity: 1; animation-timing-function: ease-out; }
7% { rotate: 345deg; animation-timing-function: linear; }
30% { rotate: 455deg; animation-timing-function: ease-in-out; }
39% { rotate: 690deg; animation-timing-function: linear; }
70% { rotate: 815deg; opacity: 1; animation-timing-function: ease-out; }
75% { rotate: 945deg; opacity: 1; }
76%, 100% { rotate: 945deg; opacity: 0; }
}
</style>
© 2026 alexdmotoc. Published under the MIT licence: you may copy and change this code if you keep this credit.
Comments (0)
No comments yet.
Sign in to like or comment.