restore: add ... animation
This commit is contained in:
26
dashboard/src/components/AnimatedDots.vue
Normal file
26
dashboard/src/components/AnimatedDots.vue
Normal file
@@ -0,0 +1,26 @@
|
||||
<template>
|
||||
<span class="dots"></span>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
|
||||
.dots {
|
||||
display: inline-block;
|
||||
width: 1.5em; /* reserve enough space for '...' */
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.dots::after {
|
||||
content: '';
|
||||
animation: dots 1.5s steps(4, end) infinite;
|
||||
}
|
||||
|
||||
@keyframes dots {
|
||||
0% { content: ''; }
|
||||
25% { content: '.'; }
|
||||
50% { content: '..'; }
|
||||
75% { content: '...'; }
|
||||
100% { content: ''; }
|
||||
}
|
||||
|
||||
</style>
|
||||
Reference in New Issue
Block a user