From 6b91d85bdcc168054154bdee2317757d6fc06a24 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Tue, 8 Oct 2019 20:01:00 +0200 Subject: [PATCH] Add transition to vue router Signed-off-by: Thomas Citharel --- js/src/App.vue | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/js/src/App.vue b/js/src/App.vue index c71c6923..46a295aa 100644 --- a/js/src/App.vue +++ b/js/src/App.vue @@ -2,7 +2,9 @@
- + + +
@@ -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; }