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" /> <link rel="stylesheet" href="/static/css/loading.css" type="text/css" />
<title></title> <title></title>
</head> </head>
<body> <body>
<div id="app"> <div id="app">
<section class="init-box"> <section class="init-box">
<div class="init-loading"> <div class="init-loading">
<div class="init-loading-rect"></div> <img src="/static/images/loading.svg" class="init-loading-icon" alt="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> </div>
</section> </section>
</div> </div>

View File

@@ -14,36 +14,14 @@ body {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
} }
.init-loading-rect { @keyframes arco-loading-circle {
background-color: #007aff; from {
height: 100%; transform: rotate(0deg);
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);
} }
20% { to {
transform: scaleY(1); 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