2015-07-01 17:25:16 +08:00
|
|
|
.motion-common() {
|
2015-07-12 22:01:05 +08:00
|
|
|
animation-duration: .3s;
|
2015-06-15 21:18:08 +08:00
|
|
|
animation-fill-mode: both;
|
|
|
|
display: block !important;
|
2015-06-09 15:21:44 +08:00
|
|
|
}
|
|
|
|
|
2015-07-01 17:25:16 +08:00
|
|
|
.make-motion(@className, @keyframeName) {
|
2015-06-25 10:39:43 +08:00
|
|
|
.@{className}-enter {
|
2015-07-01 17:25:16 +08:00
|
|
|
.motion-common();
|
2015-06-25 10:39:43 +08:00
|
|
|
animation-play-state: paused;
|
|
|
|
}
|
|
|
|
.@{className}-leave {
|
2015-07-01 17:25:16 +08:00
|
|
|
.motion-common();
|
2015-06-25 10:39:43 +08:00
|
|
|
animation-play-state: paused;
|
|
|
|
}
|
|
|
|
.@{className}-enter.@{className}-enter-active {
|
|
|
|
animation-name: ~"@{keyframeName}In";
|
|
|
|
animation-play-state: running;
|
|
|
|
}
|
|
|
|
.@{className}-leave.@{className}-leave-active {
|
|
|
|
animation-name: ~"@{keyframeName}Out";
|
|
|
|
animation-play-state: running;
|
|
|
|
}
|
2015-06-09 15:21:44 +08:00
|
|
|
}
|
|
|
|
|
2015-07-01 17:25:16 +08:00
|
|
|
@import "motion/fade";
|
|
|
|
@import "motion/move";
|
|
|
|
@import "motion/other";
|
|
|
|
@import "motion/slide";
|
|
|
|
@import "motion/swing";
|
2015-07-12 22:01:05 +08:00
|
|
|
@import "motion/zoom";
|