mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-28 05:00:22 +08:00
73 lines
1.1 KiB
HTML
73 lines
1.1 KiB
HTML
<div class="anim-box">
|
|
<div class="anim-interieur">
|
|
<div class="rect rect1"></div>
|
|
<div class="rect rect2"></div>
|
|
<div class="rect rect3"></div>
|
|
<div class="rect rect4"></div>
|
|
<div class="rect rect5"></div>
|
|
</div>
|
|
</div>
|
|
<style>
|
|
/* From Uiverse.io by garerim - Tags: loader */
|
|
.anim-box {
|
|
width: 200px;
|
|
height: 200px;
|
|
border: 5px solid #333;
|
|
margin: 100px auto;
|
|
position: relative;
|
|
}
|
|
|
|
.anim-interieur {
|
|
width: 100px;
|
|
height: 50px;
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
/* background-color: orange; */
|
|
text-align: center;
|
|
}
|
|
|
|
.rect {
|
|
background-color: #333;
|
|
display: inline-block;
|
|
height: 60px;
|
|
width: 6px;
|
|
margin: 0px 1px;
|
|
animation: etire 1.2s infinite ease-in-out;
|
|
}
|
|
|
|
@keyframes etire {
|
|
0% {
|
|
transform: scaleY(0.4);
|
|
}
|
|
|
|
20% {
|
|
transform: scaleY(1);
|
|
}
|
|
|
|
40% {
|
|
transform: scaleY(0.4);
|
|
}
|
|
|
|
100% {
|
|
transform: scaleY(0.4);
|
|
}
|
|
}
|
|
|
|
.rect2 {
|
|
animation-delay: -1.1s;
|
|
}
|
|
|
|
.rect3 {
|
|
animation-delay: -1s;
|
|
}
|
|
|
|
.rect4 {
|
|
animation-delay: -0.9s;
|
|
}
|
|
|
|
.rect5 {
|
|
animation-delay: -0.8s;
|
|
}
|
|
</style>
|