summaryrefslogtreecommitdiff
path: root/packages/frontend/src/components/global/MkEllipsis.vue
blob: b3cf69c0751c6121014f76c670e3705e9ca93af7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<template>
<span :class="$style.root">
	<span :class="$style.dot">.</span><span :class="$style.dot">.</span><span :class="$style.dot">.</span>
</span>
</template>

<style lang="scss" module>
@keyframes ellipsis {
	0%, 80%, 100% {
		opacity: 1;
	}
	40% {
		opacity: 0;
	}
}

.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>