mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-28 05:00:22 +08:00
146 lines
2.5 KiB
HTML
146 lines
2.5 KiB
HTML
<div class="loader">
|
|
<div class="bar"></div>
|
|
<div class="bar"></div>
|
|
<div class="bar"></div>
|
|
<div class="bar"></div>
|
|
<div class="bar"></div>
|
|
<div class="bar"></div>
|
|
<div class="bar"></div>
|
|
<div class="bar"></div>
|
|
<div class="bar"></div>
|
|
<div class="bar"></div>
|
|
</div>
|
|
|
|
<div class="loader loader--reflect">
|
|
<div class="bar"></div>
|
|
<div class="bar"></div>
|
|
<div class="bar"></div>
|
|
<div class="bar"></div>
|
|
<div class="bar"></div>
|
|
<div class="bar"></div>
|
|
<div class="bar"></div>
|
|
<div class="bar"></div>
|
|
<div class="bar"></div>
|
|
<div class="bar"></div>
|
|
</div>
|
|
<style>
|
|
/* From Uiverse.io by Pradeepsaranbishnoi - Tags: loader */
|
|
/* The loader container */
|
|
.loader {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
width: 200px;
|
|
height: 100px;
|
|
margin-top: -100px;
|
|
margin-left: -100px;
|
|
perspective: 1000px;
|
|
transform-style: preserv3d;
|
|
}
|
|
|
|
.loader--reflect {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.loader--reflect:after {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: -25%;
|
|
width: 150%;
|
|
height: 110%;
|
|
background: linear-gradient(0deg, rgba(238, 238, 238, 1), rgba(238, 238, 238, 1) 20%, rgba(238, 238, 238, 0.3));
|
|
}
|
|
|
|
|
|
/* The bar */
|
|
.bar {
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
width: 20px;
|
|
height: 100px;
|
|
background-color: #1e3f57;
|
|
transform: scaleY(0);
|
|
transform-style: preserve3d;
|
|
animation: bar 3s cubic-bezier(.81,.04,.4,.7) infinite;
|
|
}
|
|
|
|
.bar:nth-child(2) {
|
|
left: 20px;
|
|
background-color: #264a63;
|
|
animation-delay: 50ms;
|
|
}
|
|
|
|
.bar:nth-child(3) {
|
|
left: 40px;
|
|
background-color: #2d566f;
|
|
animation-delay: 100ms;
|
|
}
|
|
|
|
.bar:nth-child(4) {
|
|
left: 60px;
|
|
background-color: #35617a;
|
|
animation-delay: 150ms;
|
|
}
|
|
|
|
.bar:nth-child(5) {
|
|
left: 80px;
|
|
background-color: #3d6d86;
|
|
animation-delay: 200ms;
|
|
}
|
|
|
|
.bar:nth-child(6) {
|
|
left: 100px;
|
|
background-color: #447892;
|
|
animation-delay: 250ms;
|
|
}
|
|
|
|
.bar:nth-child(7) {
|
|
left: 120px;
|
|
background-color: #4c849e;
|
|
animation-delay: 300ms;
|
|
}
|
|
|
|
.bar:nth-child(8) {
|
|
left: 140px;
|
|
background-color: #548fa9;
|
|
animation-delay: 350ms;
|
|
}
|
|
|
|
.bar:nth-child(9) {
|
|
left: 160px;
|
|
background-color: #5c9bb5;
|
|
animation-delay: 400ms;
|
|
}
|
|
|
|
.bar:nth-child(10) {
|
|
left: 180px;
|
|
background-color: #63a6c1;
|
|
animation-delay: 450ms;
|
|
}
|
|
|
|
.loader--reflect .bar {
|
|
animation-name: bar-reflect;
|
|
}
|
|
|
|
@keyframes bar {
|
|
0% {
|
|
transform: rotateZ(-180deg) rotateX(-360deg);
|
|
}
|
|
|
|
75%,100% {
|
|
transform: rotateZ(0) rotateX(0);
|
|
}
|
|
}
|
|
|
|
@keyframes bar-reflect {
|
|
0% {
|
|
transform: rotateZ(180deg) rotateX(360deg);
|
|
}
|
|
|
|
75%,100% {
|
|
transform: rotateZ(0) rotateX(0);
|
|
}
|
|
}
|
|
</style>
|