Skip to content

Commit bb3c082

Browse files
committed
style: 统一加载图标
1 parent 17937d1 commit bb3c082

5 files changed

Lines changed: 11 additions & 37 deletions

File tree

‎index.html‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,12 @@
77
<link rel="stylesheet" href="/static/css/loading.css" type="text/css" />
88
<title></title>
99
</head>
10-
10+
1111
<body>
1212
<div id="app">
1313
<section class="init-box">
1414
<div class="init-loading">
15-
<div class="init-loading-rect"></div>
16-
<div class="init-loading-rect"></div>
17-
<div class="init-loading-rect"></div>
18-
<div class="init-loading-rect"></div>
19-
<div class="init-loading-rect"></div>
15+
<img src="/static/images/loading.svg" class="init-loading-icon" alt="loading" />
2016
</div>
2117
</section>
2218
</div>

‎public/static/css/loading.css‎

Lines changed: 8 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -14,36 +14,14 @@ body {
1414
display: flex;
1515
justify-content: space-between;
1616
}
17-
.init-loading-rect {
18-
background-color: #007aff;
19-
height: 100%;
20-
width: 15%;
21-
animation: init-wave 1.2s infinite ease-in-out;
22-
}
23-
24-
.init-loading-rect:nth-child(1) {
25-
animation-delay: -1.2s;
26-
}
27-
.init-loading-rect:nth-child(2) {
28-
animation-delay: -1.1s;
29-
}
30-
.init-loading-rect:nth-child(3) {
31-
animation-delay: -1s;
32-
}
33-
.init-loading-rect:nth-child(4) {
34-
animation-delay: -0.9s;
35-
}
36-
.init-loading-rect:nth-child(5) {
37-
animation-delay: -0.8s;
38-
}
39-
40-
@keyframes init-wave {
41-
0%,
42-
40%,
43-
100% {
44-
transform: scaleY(0.4);
17+
@keyframes arco-loading-circle {
18+
from {
19+
transform: rotate(0deg);
4520
}
46-
20% {
47-
transform: scaleY(1);
21+
to {
22+
transform: rotate(360deg);
4823
}
4924
}
25+
.init-loading-icon {
26+
animation: arco-loading-circle 1s infinite cubic-bezier(0,0,1,1);
27+
}

‎public/static/images/loading.gif‎

-25.8 KB
Binary file not shown.

‎src/App.vue‎

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)