diff --git a/src/styles/transition.scss b/src/styles/transition.scss index c4d47ad..8dd9b04 100644 --- a/src/styles/transition.scss +++ b/src/styles/transition.scss @@ -11,6 +11,20 @@ opacity: 0; } +/*fade-transform*/ +.fade-transform-leave-active, +.fade-transform-enter-active { + transition: all .5s; +} +.fade-transform-enter { + opacity: 0; + transform: translateX(-30px); +} +.fade-transform-leave-to { + opacity: 0; + transform: translateX(30px); +} + /*fade*/ .breadcrumb-enter-active, .breadcrumb-leave-active { diff --git a/src/views/layout/components/AppMain.vue b/src/views/layout/components/AppMain.vue index 7f83200..8b46239 100644 --- a/src/views/layout/components/AppMain.vue +++ b/src/views/layout/components/AppMain.vue @@ -1,6 +1,7 @@