پیشنمایش زنده
کد HTML
<div class="loader-liquid" aria-label="Loading" role="status"></div>
کد CSS
.loader-liquid {
width: 58px;
height: 58px;
border-radius: 999px;
position: relative;
background: rgba(255, 255, 255, 0.04);
border: 1px solid rgba(255, 255, 255, 0.12);
box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
overflow: hidden;
}
.loader-liquid::before {
content: "";
position: absolute;
inset: -30%;
border-radius: 999px;
background: conic-gradient(
from 180deg,
rgba(110, 231, 255, 0),
rgba(110, 231, 255, 0.85),
rgba(176, 140, 255, 0.85),
rgba(110, 231, 255, 0)
);
animation: liquidSpin 1s linear infinite;
filter: blur(0.2px) saturate(1.15);
}
.loader-liquid::after {
content: "";
position: absolute;
inset: 10px;
border-radius: 999px;
background: radial-gradient(
circle at 30% 25%,
rgba(255, 255, 255, 0.18),
rgba(255, 255, 255, 0.04) 40%,
rgba(0, 0, 0, 0.25) 100%
);
border: 1px solid rgba(255, 255, 255, 0.1);
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
}
@keyframes liquidSpin {
to {
transform: rotate(360deg);
}
}