2019-05-06 12:04:39 +08:00
|
|
|
@import '../themes/index';
|
2016-10-07 18:29:55 +08:00
|
|
|
|
|
|
|
.motion-common(@duration: @animation-duration-base) {
|
2016-10-07 18:18:23 +08:00
|
|
|
animation-duration: @duration;
|
2016-01-18 14:19:09 +08:00
|
|
|
animation-fill-mode: both;
|
|
|
|
}
|
|
|
|
|
2016-10-07 18:29:55 +08:00
|
|
|
.motion-common-leave(@duration: @animation-duration-base) {
|
2016-10-07 18:18:23 +08:00
|
|
|
animation-duration: @duration;
|
2015-06-15 21:18:08 +08:00
|
|
|
animation-fill-mode: both;
|
2015-06-09 15:21:44 +08:00
|
|
|
}
|
|
|
|
|
2016-10-07 18:29:55 +08:00
|
|
|
.make-motion(@className, @keyframeName, @duration: @animation-duration-base) {
|
2015-11-26 19:32:55 +08:00
|
|
|
.@{className}-enter,
|
|
|
|
.@{className}-appear {
|
2016-10-07 18:18:23 +08:00
|
|
|
.motion-common(@duration);
|
2019-04-15 10:52:00 +08:00
|
|
|
|
2015-06-25 10:39:43 +08:00
|
|
|
animation-play-state: paused;
|
|
|
|
}
|
|
|
|
.@{className}-leave {
|
2016-10-07 18:18:23 +08:00
|
|
|
.motion-common-leave(@duration);
|
2019-04-15 10:52:00 +08:00
|
|
|
|
2015-06-25 10:39:43 +08:00
|
|
|
animation-play-state: paused;
|
|
|
|
}
|
2015-11-26 19:32:55 +08:00
|
|
|
.@{className}-enter.@{className}-enter-active,
|
|
|
|
.@{className}-appear.@{className}-appear-active {
|
2018-12-07 16:17:45 +08:00
|
|
|
animation-name: ~'@{keyframeName}In';
|
2015-06-25 10:39:43 +08:00
|
|
|
animation-play-state: running;
|
|
|
|
}
|
|
|
|
.@{className}-leave.@{className}-leave-active {
|
2018-12-07 16:17:45 +08:00
|
|
|
animation-name: ~'@{keyframeName}Out';
|
2015-06-25 10:39:43 +08:00
|
|
|
animation-play-state: running;
|
2017-06-01 12:03:36 +08:00
|
|
|
pointer-events: none;
|
2015-06-25 10:39:43 +08:00
|
|
|
}
|
2015-06-09 15:21:44 +08:00
|
|
|
}
|