Skip to content

Commit

Permalink
feat: ✨ Add small exit animation to timelines
Browse files Browse the repository at this point in the history
  • Loading branch information
CPlusPatch committed Apr 27, 2024
1 parent b14a616 commit 83ff97d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions components/timelines/timeline.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
<template>
<ClientOnly>

<SocialElementsNotesNote @delete="emits('delete', note.id)" v-for="note of timeline" :key="note.id"
:note="note" />
<TransitionGroup leave-active-class="ease-in duration-200" leave-from-class="scale-100 opacity-100"
leave-to-class="opacity-0 scale-90">
<SocialElementsNotesNote @delete="emits('delete', note.id)" v-for="note of timeline" :key="note.id"
:note="note" />
</TransitionGroup>
<span ref="skeleton"></span>
<SocialElementsNotesNote v-for="index of 5" v-if="!hasReachedEnd" :skeleton="true" />

Expand Down

0 comments on commit 83ff97d

Please sign in to comment.