style: 统一加载图标

This commit is contained in:
2025-06-15 22:09:35 +08:00
parent 17937d1502
commit bb3c082146
5 changed files with 11 additions and 37 deletions

View File

@@ -7,16 +7,12 @@
<link rel="stylesheet" href="/static/css/loading.css" type="text/css" />
<title></title>
</head>
<body>
<div id="app">
<section class="init-box">
<div class="init-loading">
<div class="init-loading-rect"></div>
<div class="init-loading-rect"></div>
<div class="init-loading-rect"></div>
<div class="init-loading-rect"></div>
<div class="init-loading-rect"></div>
<img src="/static/images/loading.svg" class="init-loading-icon" alt="loading" />
</div>
</section>
</div>

View File

@@ -14,36 +14,14 @@ body {
display: flex;
justify-content: space-between;
}
.init-loading-rect {
background-color: #007aff;
height: 100%;
width: 15%;
animation: init-wave 1.2s infinite ease-in-out;
}
.init-loading-rect:nth-child(1) {
animation-delay: -1.2s;
}
.init-loading-rect:nth-child(2) {
animation-delay: -1.1s;
}
.init-loading-rect:nth-child(3) {
animation-delay: -1s;
}
.init-loading-rect:nth-child(4) {
animation-delay: -0.9s;
}
.init-loading-rect:nth-child(5) {
animation-delay: -0.8s;
}
@keyframes init-wave {
0%,
40%,
100% {
transform: scaleY(0.4);
@keyframes arco-loading-circle {
from {
transform: rotate(0deg);
}
20% {
transform: scaleY(1);
to {
transform: rotate(360deg);
}
}
.init-loading-icon {
animation: arco-loading-circle 1s infinite cubic-bezier(0,0,1,1);
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

View File

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

File diff suppressed because one or more lines are too long