speed up basic animation

This commit is contained in:
afc163 2016-01-18 14:19:09 +08:00
parent 88f040c429
commit 617c0e4618
2 changed files with 9 additions and 3 deletions

View File

@ -92,7 +92,7 @@
}
.notification-fade-effect {
animation-duration: 0.3s;
animation-duration: 0.24s;
animation-fill-mode: both;
animation-timing-function: @ease-in-out;
}
@ -106,6 +106,7 @@
&-fade-leave {
.notification-fade-effect();
animation-duration: 0.2s;
animation-play-state: paused;
}

View File

@ -1,5 +1,10 @@
.motion-common() {
animation-duration: .3s;
animation-duration: .24s;
animation-fill-mode: both;
}
.motion-common-leave() {
animation-duration: .2s;
animation-fill-mode: both;
}
@ -10,7 +15,7 @@
animation-play-state: paused;
}
.@{className}-leave {
.motion-common();
.motion-common-leave();
animation-play-state: paused;
}
.@{className}-enter.@{className}-enter-active,