Add transition to vue router
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
0820866bb8
commit
6b91d85bdc
@ -2,7 +2,9 @@
|
||||
<div id="mobilizon">
|
||||
<NavBar />
|
||||
<main>
|
||||
<transition name="fade">
|
||||
<router-view />
|
||||
</transition>
|
||||
</main>
|
||||
<mobilizon-footer />
|
||||
</div>
|
||||
@ -71,18 +73,10 @@ export default class App extends Vue {
|
||||
/* Buefy imports */
|
||||
@import "~buefy/src/scss/buefy";
|
||||
|
||||
.router-enter-active,
|
||||
.router-leave-active {
|
||||
transition-property: opacity;
|
||||
transition-duration: 0.25s;
|
||||
.fade-enter-active, .fade-leave-active {
|
||||
transition: opacity .75s;
|
||||
}
|
||||
|
||||
.router-enter-active {
|
||||
transition-delay: 0.25s;
|
||||
}
|
||||
|
||||
.router-enter,
|
||||
.router-leave-active {
|
||||
.fade-enter, .fade-leave-to {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user