Skip to content
This repository was archived by the owner on Dec 5, 2025. It is now read-only.

Commit aa6ad08

Browse files
authored
Merge pull request #1595 from kkukelka/feat/page-transition
1442 add transition between pages
2 parents 8c777ff + 3fe9c3e commit aa6ad08

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

layouts/centered-half-layout.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<div class="container">
77
<div class="columns is-centered">
88
<div class="column is-half">
9-
<router-view />
9+
<Nuxt />
1010
</div>
1111
</div>
1212
</div>

layouts/default.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
<main class="is-flex-grow-1">
55
<section class="section">
66
<div class="container">
7-
<router-view :key="$route.fullPath" />
7+
<!-- <router-view :key="$route.fullPath" /> -->
8+
<Nuxt />
89
</div>
910
</section>
1011
</main>

layouts/full-width-layout.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div class="min-h-full is-flex is-flex-direction-column">
33
<Navbar v-if="isNavbarVisible" />
44
<main class="is-flex-grow-1">
5-
<router-view />
5+
<Nuxt />
66
</main>
77
<Footer />
88
</div>

styles/global.scss

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,3 +156,14 @@ body {
156156
color: $primary-light !important;
157157
}
158158
}
159+
160+
// global CSS for page transitions
161+
.page-enter-active,
162+
.page-leave-active {
163+
transition: opacity 250ms
164+
}
165+
166+
.page-enter,
167+
.page-leave-active {
168+
opacity: 0
169+
}

0 commit comments

Comments
 (0)