Skip to content

Instantly share code, notes, and snippets.

@ratul16
Created June 1, 2020 06:47
Show Gist options
  • Save ratul16/3d25228a2a1909c970eba76559e9e318 to your computer and use it in GitHub Desktop.
Save ratul16/3d25228a2a1909c970eba76559e9e318 to your computer and use it in GitHub Desktop.
Simple and easily transition effect for vue page routing
<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