Binary Stars
Orbit · Twin satellites · space, playful, warm
HTML
<div class="utw-loader-binary-stars" role="status"> <span class="utw-loader-binary-stars__arm"></span> <span class="utw-loader-binary-stars__sr">Loading…</span> </div>
CSS
/* Orbit loader (Twin satellites) */
.utw-loader-binary-stars {
box-sizing: border-box;
position: relative;
display: inline-block;
width: 52px;
height: 52px;
}
.utw-loader-binary-stars *,
.utw-loader-binary-stars *::before,
.utw-loader-binary-stars *::after {
box-sizing: border-box;
}
.utw-loader-binary-stars__arm {
position: absolute;
inset: 0;
animation: utw-loader-binary-stars-spin 1.6s ease-in-out infinite;
}
.utw-loader-binary-stars__arm::before {
content: '';
position: absolute;
left: calc(50% - 5px);
width: 10px;
height: 10px;
border-radius: 50%;
background: #f97316;
top: 0;
animation: utw-loader-binary-stars-swell 0.8s ease-in-out infinite alternate;
}
.utw-loader-binary-stars__arm::after {
content: '';
position: absolute;
left: calc(50% - 5px);
width: 10px;
height: 10px;
border-radius: 50%;
background: #eab308;
bottom: 0;
animation: utw-loader-binary-stars-swell 0.8s ease-in-out infinite alternate;
animation-delay: -0.8s;
}
.utw-loader-binary-stars__sr {
position: absolute;
width: 1px;
height: 1px;
margin: -1px;
padding: 0;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
@keyframes utw-loader-binary-stars-spin {
to {
transform: rotate(360deg);
}
}
@keyframes utw-loader-binary-stars-swell {
from {
transform: scale(0.6);
}
to {
transform: scale(1.2);
}
}
@keyframes utw-loader-binary-stars-calm {
from {
opacity: 1;
}
to {
opacity: 0.5;
}
}
@media (prefers-reduced-motion: reduce) {
.utw-loader-binary-stars *,
.utw-loader-binary-stars *::before,
.utw-loader-binary-stars *::after {
animation: none !important;
}
.utw-loader-binary-stars {
animation: utw-loader-binary-stars-calm 2s ease-in-out infinite alternate !important;
}
}