From 93d3cc310d6aa2db5b35fc73fbb4e3443a053fa8 Mon Sep 17 00:00:00 2001
From: syuilo <Syuilotan@yahoo.co.jp>
Date: Fri, 30 Dec 2022 13:52:40 +0900
Subject: :art:

---
 packages/frontend/src/components/MkReactionsViewer.vue | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

(limited to 'packages/frontend/src/components/MkReactionsViewer.vue')

diff --git a/packages/frontend/src/components/MkReactionsViewer.vue b/packages/frontend/src/components/MkReactionsViewer.vue
index a88311efa1..4af9d6baa2 100644
--- a/packages/frontend/src/components/MkReactionsViewer.vue
+++ b/packages/frontend/src/components/MkReactionsViewer.vue
@@ -1,6 +1,8 @@
 <template>
 <div class="tdflqwzn" :class="{ isMe }">
-	<XReaction v-for="(count, reaction) in note.reactions" :key="reaction" :reaction="reaction" :count="count" :is-initial="initialReactions.has(reaction)" :note="note"/>
+	<TransitionGroup :name="$store.state.animation ? 'x' : ''">
+		<XReaction v-for="(count, reaction) in note.reactions" :key="reaction" :reaction="reaction" :count="count" :is-initial="initialReactions.has(reaction)" :note="note"/>
+	</TransitionGroup>
 </div>
 </template>
 
@@ -20,6 +22,17 @@ const isMe = computed(() => $i && $i.id === props.note.userId);
 </script>
 
 <style lang="scss" scoped>
+.x-move, .x-enter-active, .x-leave-active {
+	transition: opacity 0.2s cubic-bezier(0,.5,.5,1), transform 0.2s cubic-bezier(0,.5,.5,1) !important;
+}
+.x-enter-from, .x-leave-to {
+	opacity: 0;
+	transform: scale(0.7);
+}
+.x-leave-active {
+  position: absolute;
+}
+
 .tdflqwzn {
 	margin: 4px -2px 0 -2px;
 
-- 
cgit v1.2.3-freya

