feat: Add small exit animation to timelines

This commit is contained in:
Jesse Wierzbinski 2024-04-26 21:51:16 -10:00
parent b14a616ef4
commit 83ff97d7ff
No known key found for this signature in database

View file

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