mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-28 13:10:21 +08:00
118 lines
2.1 KiB
HTML
118 lines
2.1 KiB
HTML
<div class="loader">
|
|
<div class="loaders"></div>
|
|
<div class="loaders"></div>
|
|
<div class="loaders"></div>
|
|
<div class="loaders"></div>
|
|
<div class="loaders"></div>
|
|
<div class="loaders"></div>
|
|
<div class="loaders"></div>
|
|
<div class="loaders"></div>
|
|
</div>
|
|
<style>
|
|
/* From Uiverse.io by aliaypov1 - Tags: loader */
|
|
.loader {
|
|
--uib-size: 2.8rem;
|
|
--uib-speed: .9s;
|
|
--uib-color: #183153;
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-start;
|
|
height: var(--uib-size);
|
|
width: var(--uib-size);
|
|
}
|
|
|
|
.loaders {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-start;
|
|
height: 100%;
|
|
width: 100%;
|
|
}
|
|
|
|
.loaders::before {
|
|
content: '';
|
|
height: 20%;
|
|
width: 20%;
|
|
border-radius: 50%;
|
|
background-color: var(--uib-color);
|
|
transform: scale(0);
|
|
opacity: 0.5;
|
|
animation: pulse0112 calc(var(--uib-speed) * 1.111) ease-in-out infinite;
|
|
box-shadow: 0 0 20px rgba(18, 31, 53, 0.3);
|
|
padding-bottom: 222px;
|
|
}
|
|
|
|
.loaders:nth-child(2) {
|
|
transform: rotate(45deg);
|
|
}
|
|
|
|
.loaders:nth-child(2)::before {
|
|
animation-delay: calc(var(--uib-speed) * -0.875);
|
|
}
|
|
|
|
.loaders:nth-child(3) {
|
|
transform: rotate(90deg);
|
|
}
|
|
|
|
.loaders:nth-child(3)::before {
|
|
animation-delay: calc(var(--uib-speed) * -0.75);
|
|
}
|
|
|
|
.loaders:nth-child(4) {
|
|
transform: rotate(135deg);
|
|
}
|
|
|
|
.loaders:nth-child(4)::before {
|
|
animation-delay: calc(var(--uib-speed) * -0.625);
|
|
}
|
|
|
|
.loaders:nth-child(5) {
|
|
transform: rotate(180deg);
|
|
}
|
|
|
|
.loaders:nth-child(5)::before {
|
|
animation-delay: calc(var(--uib-speed) * -0.5);
|
|
}
|
|
|
|
.loaders:nth-child(6) {
|
|
transform: rotate(225deg);
|
|
}
|
|
|
|
.loaders:nth-child(6)::before {
|
|
animation-delay: calc(var(--uib-speed) * -0.375);
|
|
}
|
|
|
|
.dot-spinner__dot:nth-child(7) {
|
|
transform: rotate(270deg);
|
|
}
|
|
|
|
.loaders:nth-child(7)::before {
|
|
animation-delay: calc(var(--uib-speed) * -0.25);
|
|
}
|
|
|
|
.loaders:nth-child(8) {
|
|
transform: rotate(315deg);
|
|
}
|
|
|
|
.loaders:nth-child(8)::before {
|
|
animation-delay: calc(var(--uib-speed) * -0.125);
|
|
}
|
|
|
|
@keyframes pulse0112 {
|
|
0%,
|
|
100% {
|
|
transform: scale(0);
|
|
opacity: 0.5;
|
|
}
|
|
|
|
50% {
|
|
transform: scale(1);
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
</style>
|