Add transition

This commit is contained in:
Daniel Egger 2022-06-20 18:22:39 +02:00
parent fef31bf189
commit 3dfb9af7c9
1 changed files with 56 additions and 40 deletions

View File

@ -26,6 +26,7 @@ onMounted(() => {
</script>
<template>
<Transition>
<div v-if="state.showOverview">
<CircleOverview :circle-data="circleStore.circleData" @close="state.showOverview = false"/>
</div>
@ -77,7 +78,22 @@ onMounted(() => {
</div>
</div>
</Transition>
</template>
<style scoped>
.v-enter-active,
.v-leave-active {
transition: opacity 0.3s ease;
}
.v-enter-from,
.v-leave-to {
opacity: 0;
}
.v-enter-active {
transition-delay: 0.3s;
}
</style>