mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-28 05:00:22 +08:00
102 lines
1.6 KiB
HTML
102 lines
1.6 KiB
HTML
<div class="loader">
|
|
<span></span>
|
|
<span></span>
|
|
<span></span>
|
|
<span></span>
|
|
<span></span>
|
|
<span></span>
|
|
</div>
|
|
<style>
|
|
/* From Uiverse.io by mrhyddenn - Tags: loader */
|
|
.loader {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
width: 100px;
|
|
height: 100px;
|
|
border-radius: 50%;
|
|
overflow: hidden;
|
|
animation: mac0123 1s linear infinite;
|
|
}
|
|
|
|
.loader span {
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: #f00;
|
|
left: 50%;
|
|
border-radius: 50%;
|
|
transform-origin: left;
|
|
}
|
|
|
|
.loader span:nth-child(1) {
|
|
background: #0fa503;
|
|
transform: rotate(0deg);
|
|
z-index: 2;
|
|
}
|
|
|
|
.loader span:nth-child(2) {
|
|
background: #ffd203;
|
|
transform: rotate(60deg);
|
|
z-index: 3;
|
|
}
|
|
|
|
.loader span:nth-child(3) {
|
|
background: #54cd28;
|
|
transform: rotate(120deg);
|
|
z-index: 4;
|
|
}
|
|
|
|
.loader span:nth-child(4) {
|
|
background: #129cf5;
|
|
transform: rotate(180deg);
|
|
z-index: 5;
|
|
}
|
|
|
|
.loader span:nth-child(5) {
|
|
background: #bb5ed3;
|
|
transform: rotate(240deg);
|
|
z-index: 6;
|
|
}
|
|
|
|
.loader span:nth-child(6) {
|
|
background: #ff4f45;
|
|
transform: rotate(300deg);
|
|
z-index: 7;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.loader span:nth-child(6):before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 45px;
|
|
left: -72px;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: #ffd203;
|
|
border-radius: 50%;
|
|
z-index: 2;
|
|
}
|
|
|
|
.loader span:nth-child(6):after {
|
|
content: '';
|
|
position: absolute;
|
|
top: 42px;
|
|
left: -23px;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: #fea503;
|
|
border-radius: 50%;
|
|
}
|
|
|
|
@keyframes mac0123 {
|
|
0% {
|
|
transform: translate(-50%, -50%) rotate(359deg);
|
|
}
|
|
|
|
100% {
|
|
transform: translate(-50%, -50%) rotate(0deg);
|
|
}
|
|
}
|
|
</style>
|