2023-12-09 15:47:03 +01:00
|
|
|
<template>
|
2024-04-15 19:39:03 +02:00
|
|
|
<transition
|
2024-09-20 12:07:04 +02:00
|
|
|
v-if="name === 'slideInUp'"
|
2024-04-15 19:39:03 +02:00
|
|
|
enter-active-class="linear duration-300 overflow-hidden"
|
|
|
|
|
enter-from-class="max-h-0"
|
|
|
|
|
enter-to-class="max-h-screen"
|
|
|
|
|
leave-active-class="linear duration-300 overflow-hidden"
|
|
|
|
|
leave-from-class="max-h-screen"
|
|
|
|
|
leave-to-class="max-h-0"
|
2023-12-09 15:47:03 +01:00
|
|
|
>
|
|
|
|
|
<slot />
|
|
|
|
|
</transition>
|
2024-09-20 12:07:04 +02:00
|
|
|
<transition
|
|
|
|
|
v-else-if="name === 'fade'"
|
|
|
|
|
mode="out-in"
|
|
|
|
|
enter-active-class="transition-opacity duration-300"
|
|
|
|
|
enter-from-class="opacity-0"
|
|
|
|
|
enter-to-class="opacity-100"
|
|
|
|
|
leave-active-class="transition-opacity duration-300"
|
|
|
|
|
leave-from-class="opacity-100"
|
|
|
|
|
leave-to-class="opacity-0"
|
|
|
|
|
>
|
|
|
|
|
<slot />
|
|
|
|
|
</transition>
|
2023-12-09 15:47:03 +01:00
|
|
|
</template>
|
|
|
|
|
|
2024-09-20 12:07:04 +02:00
|
|
|
<script setup>
|
2025-01-27 18:24:27 +01:00
|
|
|
defineProps({
|
2024-09-20 12:07:04 +02:00
|
|
|
name: {
|
|
|
|
|
type: String,
|
|
|
|
|
default: "slideInUp"
|
|
|
|
|
}
|
|
|
|
|
})
|
2023-12-09 15:47:03 +01:00
|
|
|
</script>
|