refactor:add transition

This commit is contained in:
Pan 2017-11-24 14:03:56 +08:00 committed by 花裤衩
parent 4332f02642
commit e431fa9714
2 changed files with 34 additions and 11 deletions

View File

@ -1,5 +1,7 @@
@import './element-ui.scss';
@import './mixin.scss';
@import './transition.scss';
body {
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
@ -45,17 +47,6 @@ a:hover {
}
}
//vue router transition css
.fade-enter-active,
.fade-leave-active {
transition: all .2s ease
}
.fade-enter,
.fade-leave-active {
opacity: 0;
}
//main-container全局样式
.app-main{
min-height: 100%

View File

@ -0,0 +1,32 @@
//globl transition css
/*fade*/
.fade-enter-active,
.fade-leave-active {
transition: opacity 0.28s;
}
.fade-enter,
.fade-leave-active {
opacity: 0;
}
/*fade*/
.breadcrumb-enter-active,
.breadcrumb-leave-active {
transition: all .5s;
}
.breadcrumb-enter,
.breadcrumb-leave-active {
opacity: 0;
transform: translateX(20px);
}
.breadcrumb-move {
transition: all .5s;
}
.breadcrumb-leave-active {
position: absolute;
}