motion.less 818 字节
Newer Older
Y
yiminghe 已提交
1
.motion-common() {
偏右 已提交
2
  animation-duration: .3s;
Y
yiminghe 已提交
3 4
  animation-fill-mode: both;
  display: block !important;
A
afc163 已提交
5 6
}

Y
yiminghe 已提交
7
.make-motion(@className, @keyframeName) {
Y
yiminghe 已提交
8
  .@{className}-enter, .@{className}-appear {
Y
yiminghe 已提交
9
    .motion-common();
A
afc163 已提交
10 11 12
    animation-play-state: paused;
  }
  .@{className}-leave {
Y
yiminghe 已提交
13
    .motion-common();
A
afc163 已提交
14 15
    animation-play-state: paused;
  }
Y
yiminghe 已提交
16
  .@{className}-enter.@{className}-enter-active, .@{className}-appear.@{className}-appear-active {
A
afc163 已提交
17 18 19 20 21 22 23
    animation-name: ~"@{keyframeName}In";
    animation-play-state: running;
  }
  .@{className}-leave.@{className}-leave-active {
    animation-name: ~"@{keyframeName}Out";
    animation-play-state: running;
  }
A
afc163 已提交
24 25
}

Y
yiminghe 已提交
26 27 28 29 30
@import "motion/fade";
@import "motion/move";
@import "motion/other";
@import "motion/slide";
@import "motion/swing";
偏右 已提交
31
@import "motion/zoom";
J
jljsj 已提交
32
@import "motion/blur";