branchErp/public/static/loading.css
2025-09-24 13:28:05 +08:00

88 lines
1.8 KiB
CSS

.first-loading-wrp .content {
box-sizing: content-box!important;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
width: 100px!important;
height: 100px!important;
border-radius: 50%;
background: var(--theme-primary, #94B68D);
padding: 5px!important;
}
.first-loading-wrp .content img {
width: 90px!important;
height: 90px!important;
}
.loading-wrp {
display: flex;
}
.line {
width: 5px;
height: 50px;
margin: 0 5px;
border-radius: 30px;
}
.loading-wrp > span:nth-child(even) {
background-color: #eb0f0f;
animation: growAnim 0.4s linear infinite alternate-reverse;
}
.loading-wrp > span:nth-child(odd) {
background-color: #18a058;
animation: growAnimReverse 0.4s linear infinite alternate-reverse;
}
@keyframes growAnim {
0% {
transform: scale(1, 0.3);
-ms-transform: scale(1, 0.3);
-webkit-transform: scale(1, 0.3);
-moz-transform: scale(1, 0.3);
-o-transform: scale(1, 0.3);
}
100% {
transform: scale(1, 1);
-ms-transform: scale(1, 1);
-webkit-transform: scale(1, 1);
-moz-transform: scale(1, 1);
-o-transform: scale(1, 1);
}
}
@keyframes growAnimReverse {
from {
transform: scale(1, 1);
-ms-transform: scale(1, 1);
-webkit-transform: scale(1, 1);
-moz-transform: scale(1, 1);
-o-transform: scale(1, 1);
}
to {
transform: scale(1, 0.3);
-ms-transform: scale(1, 0.3);
-webkit-transform: scale(1, 0.3);
-moz-transform: scale(1, 0.3);
-o-transform: scale(1, 0.3);
}
}
.first-loading-wrp .title {
font-size: 28px;
font-weight: bold;
text-align: center;
margin-top: 50px;
}