loading2
<div class="wrap">
<div class="loading">
<span style="--i:1"></span>
<span style="--i:2"></span>
<span style="--i:3"></span>
<span style="--i:4"></span>
<span style="--i:5"></span>
<span style="--i:6"></span>
<span style="--i:7"></span>
<span style="--i:8"></span>
<span style="--i:9"></span>
<span style="--i:10"></span>
<span style="--i:11"></span>
<span style="--i:12"></span>
<span style="--i:13"></span>
<span style="--i:14"></span>
<span style="--i:15"></span>
</div>
</div>
body {
margin: 0;
}
.wrap {
display:flex;
flex-direction: column;
justify-content: center;
align-items: center;
min-height: 100vh;
background: #e3e3e3;
animation: animateBg 10s linear infinite;
}
@keyframes animateBg{
0%{
filter: hue-rotate(0deg);
}
100%{
filter: hue-rotate(360deg);
}
}
.loading {
position: relative;
width: 70px;
height: 70px;
}
.loading span {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
transform: rotate(calc(24deg * var(--i)))
}
.loading span::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 10px;
height: 10px;
background:#292929;
border-radius: 50%;
box-shadow: 0 0 5px #292929,
0 0 10px gray,
0 0 20px darkgray;
animation: animate 1.5s linear infinite;
animation-delay: calc(0.1s * var(--i));
transform:scale(0);
}
@keyframes animate {
0% {
transform: scale(1);
}
80%,100% {
transform: scale(0);
}
}