feat: improve leave animation timing function (#5954)

This commit is contained in:
neverland
2020-03-30 20:43:40 +08:00
committed by GitHub
parent d0132f23f3
commit b6d23cd9d3
4 changed files with 37 additions and 12 deletions
+14
View File
@@ -68,6 +68,20 @@
padding-bottom: env(safe-area-inset-bottom);
}
&-slide-top-enter-active,
&-slide-left-enter-active,
&-slide-right-enter-active,
&-slide-bottom-enter-active {
transition-timing-function: ease-out;
}
&-slide-top-leave-active,
&-slide-left-leave-active,
&-slide-right-leave-active,
&-slide-bottom-leave-active {
transition-timing-function: ease-in;
}
&-slide-top-enter,
&-slide-top-leave-active {
transform: translate3d(0, -100%, 0);