Skip to content
Snippets Groups Projects
Commit 63278691 authored by Pan's avatar Pan
Browse files

perf[transition]: refine transition animation

parent c861dd10
No related branches found
No related tags found
No related merge requests found
......@@ -11,7 +11,21 @@
opacity: 0;
}
/*fade*/
/*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);
}
/*breadcrumb transition*/
.breadcrumb-enter-active,
.breadcrumb-leave-active {
transition: all .5s;
......
<template>
<section class="app-main" style="min-height: 100%">
<transition name="fade" mode="out-in">
<transition name="fade-transform" mode="out-in">
<keep-alive :include="cachedViews">
<router-view></router-view>
</keep-alive>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment