sharkey/packages/frontend/src/components/global/MkEllipsis.vue

37 lines
499 B
Vue
Raw Normal View History

<template>
2023-01-14 11:23:02 +09:00
<span :class="$style.root">
<span :class="$style.dot">.</span><span :class="$style.dot">.</span><span :class="$style.dot">.</span>
</span>
</template>
2023-01-14 11:23:02 +09:00
<style lang="scss" module>
@keyframes ellipsis {
0%, 80%, 100% {
opacity: 1;
}
40% {
opacity: 0;
}
}
2023-01-14 11:23:02 +09:00
.root {
}
.dot {
animation: ellipsis 1.4s infinite ease-in-out both;
&:nth-child(1) {
animation-delay: 0s;
}
&:nth-child(2) {
animation-delay: 0.16s;
}
&:nth-child(3) {
animation-delay: 0.32s;
}
}
</style>