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