2015-09-15 16:15:07 +08:00
|
|
|
.fade-motion(@className, @keyframeName) {
|
2021-02-08 17:09:13 +08:00
|
|
|
@name: ~'@{ant-prefix}-@{className}';
|
|
|
|
.make-motion(@name, @keyframeName);
|
|
|
|
.@{name}-enter,
|
|
|
|
.@{name}-appear {
|
2015-09-15 16:15:07 +08:00
|
|
|
opacity: 0;
|
|
|
|
animation-timing-function: linear;
|
|
|
|
}
|
2021-02-08 17:09:13 +08:00
|
|
|
.@{name}-leave {
|
2015-09-15 16:15:07 +08:00
|
|
|
animation-timing-function: linear;
|
|
|
|
}
|
2015-07-01 17:25:16 +08:00
|
|
|
}
|
|
|
|
|
2015-09-15 16:15:07 +08:00
|
|
|
.fade-motion(fade, antFade);
|
2015-07-01 17:25:16 +08:00
|
|
|
|
2015-09-15 15:00:23 +08:00
|
|
|
@keyframes antFadeIn {
|
2015-07-01 17:25:16 +08:00
|
|
|
0% {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
2021-10-13 15:38:59 +08:00
|
|
|
|
2015-07-01 17:25:16 +08:00
|
|
|
100% {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-09-15 15:00:23 +08:00
|
|
|
@keyframes antFadeOut {
|
2015-07-01 17:25:16 +08:00
|
|
|
0% {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
2021-10-13 15:38:59 +08:00
|
|
|
|
2015-07-01 17:25:16 +08:00
|
|
|
100% {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
2015-07-09 11:04:45 +08:00
|
|
|
}
|