2015-07-01 17:25:16 +08:00
|
|
|
.move-motion(@className, @keyframeName) {
|
2021-02-08 17:09:13 +08:00
|
|
|
@name: ~'@{ant-prefix}-@{className}';
|
|
|
|
.make-motion(@name, @keyframeName);
|
|
|
|
.@{name}-enter,
|
|
|
|
.@{name}-appear {
|
2015-07-01 17:25:16 +08:00
|
|
|
opacity: 0;
|
2015-07-09 11:04:45 +08:00
|
|
|
animation-timing-function: @ease-out-circ;
|
2015-07-01 17:25:16 +08:00
|
|
|
}
|
2021-02-08 17:09:13 +08:00
|
|
|
.@{name}-leave {
|
2015-07-09 11:04:45 +08:00
|
|
|
animation-timing-function: @ease-in-circ;
|
2015-07-01 17:25:16 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-09-15 15:00:23 +08:00
|
|
|
.move-motion(move-up, antMoveUp);
|
|
|
|
.move-motion(move-down, antMoveDown);
|
|
|
|
.move-motion(move-left, antMoveLeft);
|
|
|
|
.move-motion(move-right, antMoveRight);
|
2015-07-01 17:25:16 +08:00
|
|
|
|
2015-09-15 15:00:23 +08:00
|
|
|
@keyframes antMoveDownIn {
|
2015-07-01 17:25:16 +08:00
|
|
|
0% {
|
|
|
|
transform: translateY(100%);
|
2019-02-15 10:48:07 +08:00
|
|
|
transform-origin: 0 0;
|
2015-07-01 17:25:16 +08:00
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
transform: translateY(0%);
|
2019-02-15 10:48:07 +08:00
|
|
|
transform-origin: 0 0;
|
2015-07-01 17:25:16 +08:00
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-09-15 15:00:23 +08:00
|
|
|
@keyframes antMoveDownOut {
|
2015-07-01 17:25:16 +08:00
|
|
|
0% {
|
|
|
|
transform: translateY(0%);
|
2019-02-15 10:48:07 +08:00
|
|
|
transform-origin: 0 0;
|
2015-07-01 17:25:16 +08:00
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
transform: translateY(100%);
|
2019-02-15 10:48:07 +08:00
|
|
|
transform-origin: 0 0;
|
2015-07-01 17:25:16 +08:00
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-09-15 15:00:23 +08:00
|
|
|
@keyframes antMoveLeftIn {
|
2015-07-01 17:25:16 +08:00
|
|
|
0% {
|
|
|
|
transform: translateX(-100%);
|
2019-02-15 10:48:07 +08:00
|
|
|
transform-origin: 0 0;
|
2015-07-01 17:25:16 +08:00
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
transform: translateX(0%);
|
2019-02-15 10:48:07 +08:00
|
|
|
transform-origin: 0 0;
|
2015-07-01 17:25:16 +08:00
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-09-15 15:00:23 +08:00
|
|
|
@keyframes antMoveLeftOut {
|
2015-07-01 17:25:16 +08:00
|
|
|
0% {
|
|
|
|
transform: translateX(0%);
|
2019-02-15 10:48:07 +08:00
|
|
|
transform-origin: 0 0;
|
2015-07-01 17:25:16 +08:00
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
transform: translateX(-100%);
|
2019-02-15 10:48:07 +08:00
|
|
|
transform-origin: 0 0;
|
2015-07-01 17:25:16 +08:00
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-09-15 15:00:23 +08:00
|
|
|
@keyframes antMoveRightIn {
|
2015-07-01 17:25:16 +08:00
|
|
|
0% {
|
|
|
|
transform: translateX(100%);
|
2019-02-15 10:48:07 +08:00
|
|
|
transform-origin: 0 0;
|
|
|
|
opacity: 0;
|
2015-07-01 17:25:16 +08:00
|
|
|
}
|
|
|
|
100% {
|
|
|
|
transform: translateX(0%);
|
2019-02-15 10:48:07 +08:00
|
|
|
transform-origin: 0 0;
|
|
|
|
opacity: 1;
|
2015-07-01 17:25:16 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-09-15 15:00:23 +08:00
|
|
|
@keyframes antMoveRightOut {
|
2015-07-01 17:25:16 +08:00
|
|
|
0% {
|
|
|
|
transform: translateX(0%);
|
2019-02-15 10:48:07 +08:00
|
|
|
transform-origin: 0 0;
|
2015-07-01 17:25:16 +08:00
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
transform: translateX(100%);
|
2019-02-15 10:48:07 +08:00
|
|
|
transform-origin: 0 0;
|
2015-07-01 17:25:16 +08:00
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-09-15 15:00:23 +08:00
|
|
|
@keyframes antMoveUpIn {
|
2015-07-01 17:25:16 +08:00
|
|
|
0% {
|
|
|
|
transform: translateY(-100%);
|
2019-02-15 10:48:07 +08:00
|
|
|
transform-origin: 0 0;
|
2015-07-01 17:25:16 +08:00
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
transform: translateY(0%);
|
2019-02-15 10:48:07 +08:00
|
|
|
transform-origin: 0 0;
|
2015-07-01 17:25:16 +08:00
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-09-15 15:00:23 +08:00
|
|
|
@keyframes antMoveUpOut {
|
2015-07-01 17:25:16 +08:00
|
|
|
0% {
|
|
|
|
transform: translateY(0%);
|
2019-02-15 10:48:07 +08:00
|
|
|
transform-origin: 0 0;
|
2015-07-01 17:25:16 +08:00
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
transform: translateY(-100%);
|
2019-02-15 10:48:07 +08:00
|
|
|
transform-origin: 0 0;
|
2015-07-01 17:25:16 +08:00
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
}
|