Created
June 1, 2020 06:47
-
-
Save ratul16/3d25228a2a1909c970eba76559e9e318 to your computer and use it in GitHub Desktop.
Simple and easily transition effect for vue page routing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<v-app id="app"> | |
<transition name="fade" mode="out-in"> | |
<router-view /> | |
</transition> | |
<AppBar /> | |
</v-app> | |
</template> | |
<style> | |
.fade-enter-active, | |
.fade-leave-active { | |
transition-duration: 0.3s; | |
transition-property: opacity; | |
transition-timing-function: ease; | |
} | |
.fade-enter, | |
.fade-leave-active { | |
opacity: 0; | |
} | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment