iview/src/styles/animation/index.less

32 lines
868 B
Text
Raw Normal View History

.motion-common() {
animation-duration: @animation-time;
animation-fill-mode: both;
}
.make-motion(@className, @keyframeName) {
2017-03-02 11:50:02 +08:00
.@{className}-enter-active, .@{className}-appear {
.motion-common();
animation-play-state: paused;
}
2017-03-02 11:50:02 +08:00
.@{className}-leave-active {
.motion-common();
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;
}