iview/src/styles/animation/index.less

33 lines
898 B
Text
Raw Normal View History

2019-09-06 15:32:44 +08:00
.motion-common(@time) {
animation-duration: @time;
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);
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);
animation-play-state: paused;
}
2017-03-02 11:50:02 +08:00
.@{className}-enter-active, .@{className}-appear {
animation-name: ~"@{keyframeName}In";
animation-play-state: running;
}
2017-03-02 11:50:02 +08:00
.@{className}-leave-active {
animation-name: ~"@{keyframeName}Out";
animation-play-state: running;
}
}
@import "fade";
@import "move";
@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
}