2019-09-06 15:32:44 +08:00
|
|
|
.motion-common(@time) {
|
|
|
|
animation-duration: @time;
|
2016-09-19 14:50:32 +08:00
|
|
|
animation-fill-mode: both;
|
|
|
|
}
|
|
|
|
|
2019-09-06 15:32:44 +08:00
|
|
|
.make-motion(@className, @keyframeName, @time: @animation-time) {
|
2017-03-02 11:50:02 +08:00
|
|
|
.@{className}-enter-active, .@{className}-appear {
|
2019-09-06 15:32:44 +08:00
|
|
|
.motion-common(@time);
|
2016-09-19 14:50:32 +08:00
|
|
|
animation-play-state: paused;
|
|
|
|
}
|
2017-03-02 11:50:02 +08:00
|
|
|
.@{className}-leave-active {
|
2019-09-06 15:32:44 +08:00
|
|
|
.motion-common(@time);
|
2016-09-19 14:50:32 +08:00
|
|
|
animation-play-state: paused;
|
|
|
|
}
|
2017-03-02 11:50:02 +08:00
|
|
|
.@{className}-enter-active, .@{className}-appear {
|
2016-09-19 14:50:32 +08:00
|
|
|
animation-name: ~"@{keyframeName}In";
|
|
|
|
animation-play-state: running;
|
|
|
|
}
|
2017-03-02 11:50:02 +08:00
|
|
|
.@{className}-leave-active {
|
2016-09-19 14:50:32 +08:00
|
|
|
animation-name: ~"@{keyframeName}Out";
|
|
|
|
animation-play-state: running;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@import "fade";
|
2016-09-29 15:47:19 +08:00
|
|
|
@import "move";
|
2016-10-17 12:34:20 +08:00
|
|
|
@import "ease";
|
2017-06-02 14:23:34 +08:00
|
|
|
@import "slide";
|
|
|
|
|
|
|
|
.collapse-transition {
|
|
|
|
transition: @transition-time height ease-in-out, @transition-time padding-top ease-in-out, @transition-time padding-bottom ease-in-out;
|
2019-09-06 15:32:44 +08:00
|
|
|
}
|