Skip to content

Commit e08d90d

Browse files
committed
Add a new loading animation what called spiral
1 parent aa3b239 commit e08d90d

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

src/components/InfiniteLoading.vue

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
.icon-loading{
112112
position: relative;
113113
border: 1px solid #999;
114-
animation: ease loading 1.5s infinite;
114+
animation: ease icon-rotating 1.5s infinite;
115115
&:before{
116116
@size: 6px;
117117
content: '';
@@ -146,8 +146,8 @@
146146
height: @size;
147147
background-color: @c-near-wave;
148148
border-radius: 50%;
149-
animation: linear wave-dots 2.8s infinite;
150-
@keyframes wave-dots{
149+
animation: linear icon-wave-dots 2.8s infinite;
150+
@keyframes icon-wave-dots{
151151
0%{
152152
box-shadow: -@size * 4 0 0 @c-near-wave,
153153
-@size * 2 0 0 @c-near-wave,
@@ -222,6 +222,12 @@
222222
}
223223
}
224224
225+
.icon-spiral{
226+
border: 2px solid #777;
227+
border-right-color: transparent;
228+
animation: linear icon-rotating .85s infinite;
229+
}
230+
225231
.infinite-loading-container{
226232
clear: both;
227233
text-align: center;
@@ -244,7 +250,7 @@
244250
padding: 10px 0;
245251
}
246252
247-
@keyframes loading{
253+
@keyframes icon-rotating{
248254
0%{
249255
transform: rotate(0);
250256
}

0 commit comments

Comments
 (0)