pref: fix fade transition
This commit is contained in:
parent
d796ffa08c
commit
54ac696913
@ -2,14 +2,14 @@
|
|||||||
<v-app class="flex flex-col">
|
<v-app class="flex flex-col">
|
||||||
<Nav />
|
<Nav />
|
||||||
|
|
||||||
<v-main style="--v-layout-top: 25px;--v-layout-bottom: 70px;">
|
<div style="--v-layout-top: 25px;--v-layout-bottom: 70px;">
|
||||||
<div class="prose max-w-110ch m-auto p-3">
|
<router-view v-slot="{ Component, route }">
|
||||||
<router-view v-slot="{ Component, route }">
|
<transition name="fade" mode="out-in">
|
||||||
<transition name="fade">
|
<div :key="route.path" class="prose max-w-110ch m-auto p-3">
|
||||||
<component :is="Component" :key="route.path" />
|
<component :is="Component" />
|
||||||
</transition>
|
</div>
|
||||||
</router-view>
|
</transition>
|
||||||
</div>
|
</router-view>
|
||||||
</v-main>
|
</div>
|
||||||
</v-app>
|
</v-app>
|
||||||
</template>
|
</template>
|
||||||
|
@ -3,9 +3,9 @@
|
|||||||
<Nav />
|
<Nav />
|
||||||
|
|
||||||
<div style="--v-layout-top: 25px" class="m-auto">
|
<div style="--v-layout-top: 25px" class="m-auto">
|
||||||
<router-view v-slot="{ Component }">
|
<router-view v-slot="{ Component, route }">
|
||||||
<transition name="fade">
|
<transition name="fade" mode="out-in">
|
||||||
<div class="">
|
<div :key="route.path" class="prose max-w-110ch m-auto p-3">
|
||||||
<component :is="Component" />
|
<component :is="Component" />
|
||||||
</div>
|
</div>
|
||||||
</transition>
|
</transition>
|
||||||
|
@ -28,7 +28,7 @@ body,
|
|||||||
|
|
||||||
.fade-enter-active,
|
.fade-enter-active,
|
||||||
.fade-leave-active {
|
.fade-leave-active {
|
||||||
transition: opacity 0.5s ease;
|
transition: opacity 0.3s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fade-enter-from,
|
.fade-enter-from,
|
||||||
|
Loading…
Reference in New Issue
Block a user