[Improvement] uniform fade animation (#410)

This commit is contained in:
neverland
2017-12-11 20:00:26 +08:00
committed by GitHub
parent 49ef814d1e
commit 7dbb5db256
8 changed files with 36 additions and 25 deletions
@@ -19,6 +19,25 @@
}
}
@keyframes van-fade-out {
from {
opacity: 1;
}
to {
opacity: 0;
}
}
.van-fade {
&-enter-active {
animation: .3s van-fade-in;
}
&-leave-active {
animation: .3s van-fade-out;
}
}
.van-slide-bottom {
&-enter-active {
animation: van-slide-bottom-enter .3s both ease;