<div class="container">
<div class="loader-container">
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</div>
<div class="spinner-container">
<div class="spinner-path">
<div></div>
<div></div>
<div></div>
<div></div>
</div>
</div>
</div>
<svg xmlns="http://www.w3.org/2000/svg" version="1.1">
<defs>
<filter id="gooey">
<feGaussianBlur in="SourceGraphic" stdDeviation="10" result="blur" />
<feColorMatrix in="blur" mode="matrix" values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 21 -7" result="goo" />
<feBlend in="SourceGraphic" in2="goo" />
</filter>
</defs>
</svg>
body {
background-color: #1a1a1a;
}
.container {
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
flex-direction: row;
flex-wrap: wrap;
}
svg {
display: none;
}
.loader-container, .spinner-container {
width: 50%;
height: 50%;
position: relative;
filter: url(#gooey);
}
.loader-container > * {
position: absolute;
display: inline-block;
left: 0;
width: 4rem;
height: 4rem;
background: #1EE4F2;
top: 25%;
border-radius: 50%;
animation: loading 4s infinite;
transform: scale(0.1);
opacity: 0;
}
.loader-container > *:nth-child(1) {
animation-delay: 0.5s;
}
.loader-container > *:nth-child(2) {
animation-delay: 1s;
}
.loader-container > *:nth-child(3) {
animation-delay: 1.5s;
}
.loader-container > *:nth-child(4) {
animation-delay: 2s;
}
@keyframes loading {
50% {
transform: scale(1.25);
left: 50%;
opacity: 1;
}
100% {
transform: scale(0.1);
left: 100%;
opacity: 0;
}
}
.spinner-path {
position: relative;
left: 25%;
top: 50%;
width: 10rem;
height: 10rem;
}
.spinner-path > * {
animation: spinner 3s infinite;
}
.spinner-path > *:after {
content: " ";
display: block;
position: absolute;
width: 2rem;
height: 2rem;
border-radius: 50%;
background-color: #f880f1;
}
.spinner-path > *:nth-child(1) {
animation-delay: 0.5s;
}
.spinner-path > *:nth-child(2) {
animation-delay: 1s;
}
.spinner-path > *:nth-child(3) {
animation-delay: 1.5;
}
.spinner-path > *:nth-child(4) {
animation-delay: 2s;
}
@keyframes spinner {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.