2015-07-01 17:25:16 +08:00
|
|
|
.slide-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-08-19 15:46:33 +08:00
|
|
|
animation-timing-function: @ease-out-quint;
|
2015-07-01 17:25:16 +08:00
|
|
|
}
|
2021-02-08 17:09:13 +08:00
|
|
|
.@{name}-leave {
|
2015-08-19 15:46:33 +08:00
|
|
|
animation-timing-function: @ease-in-quint;
|
2015-07-01 17:25:16 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-09-15 15:00:23 +08:00
|
|
|
.slide-motion(slide-up, antSlideUp);
|
|
|
|
.slide-motion(slide-down, antSlideDown);
|
|
|
|
.slide-motion(slide-left, antSlideLeft);
|
|
|
|
.slide-motion(slide-right, antSlideRight);
|
2015-07-01 17:25:16 +08:00
|
|
|
|
2015-09-15 15:00:23 +08:00
|
|
|
@keyframes antSlideUpIn {
|
2015-07-01 17:25:16 +08:00
|
|
|
0% {
|
2018-12-07 16:17:45 +08:00
|
|
|
transform: scaleY(0.8);
|
2019-02-15 10:48:07 +08:00
|
|
|
transform-origin: 0% 0%;
|
|
|
|
opacity: 0;
|
2015-07-01 17:25:16 +08:00
|
|
|
}
|
2021-10-13 15:38:59 +08:00
|
|
|
|
2015-07-01 17:25:16 +08:00
|
|
|
100% {
|
|
|
|
transform: scaleY(1);
|
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 antSlideUpOut {
|
2015-07-01 17:25:16 +08:00
|
|
|
0% {
|
|
|
|
transform: scaleY(1);
|
2019-02-15 10:48:07 +08:00
|
|
|
transform-origin: 0% 0%;
|
|
|
|
opacity: 1;
|
2015-07-01 17:25:16 +08:00
|
|
|
}
|
2021-10-13 15:38:59 +08:00
|
|
|
|
2015-07-01 17:25:16 +08:00
|
|
|
100% {
|
2018-12-07 16:17:45 +08:00
|
|
|
transform: scaleY(0.8);
|
2019-02-15 10:48:07 +08:00
|
|
|
transform-origin: 0% 0%;
|
|
|
|
opacity: 0;
|
2015-07-01 17:25:16 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-09-15 15:00:23 +08:00
|
|
|
@keyframes antSlideDownIn {
|
2015-07-01 17:25:16 +08:00
|
|
|
0% {
|
2018-12-07 16:17:45 +08:00
|
|
|
transform: scaleY(0.8);
|
2019-02-15 10:48:07 +08:00
|
|
|
transform-origin: 100% 100%;
|
|
|
|
opacity: 0;
|
2015-07-01 17:25:16 +08:00
|
|
|
}
|
2021-10-13 15:38:59 +08:00
|
|
|
|
2015-07-01 17:25:16 +08:00
|
|
|
100% {
|
|
|
|
transform: scaleY(1);
|
2019-02-15 10:48:07 +08:00
|
|
|
transform-origin: 100% 100%;
|
|
|
|
opacity: 1;
|
2015-07-01 17:25:16 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-09-15 15:00:23 +08:00
|
|
|
@keyframes antSlideDownOut {
|
2015-07-01 17:25:16 +08:00
|
|
|
0% {
|
|
|
|
transform: scaleY(1);
|
2019-02-15 10:48:07 +08:00
|
|
|
transform-origin: 100% 100%;
|
|
|
|
opacity: 1;
|
2015-07-01 17:25:16 +08:00
|
|
|
}
|
2021-10-13 15:38:59 +08:00
|
|
|
|
2015-07-01 17:25:16 +08:00
|
|
|
100% {
|
2018-12-07 16:17:45 +08:00
|
|
|
transform: scaleY(0.8);
|
2019-02-15 10:48:07 +08:00
|
|
|
transform-origin: 100% 100%;
|
|
|
|
opacity: 0;
|
2015-07-01 17:25:16 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-09-15 15:00:23 +08:00
|
|
|
@keyframes antSlideLeftIn {
|
2015-07-01 17:25:16 +08:00
|
|
|
0% {
|
2018-12-07 16:17:45 +08:00
|
|
|
transform: scaleX(0.8);
|
2019-02-15 10:48:07 +08:00
|
|
|
transform-origin: 0% 0%;
|
|
|
|
opacity: 0;
|
2015-07-01 17:25:16 +08:00
|
|
|
}
|
2021-10-13 15:38:59 +08:00
|
|
|
|
2015-07-01 17:25:16 +08:00
|
|
|
100% {
|
|
|
|
transform: scaleX(1);
|
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 antSlideLeftOut {
|
2015-07-01 17:25:16 +08:00
|
|
|
0% {
|
|
|
|
transform: scaleX(1);
|
2019-02-15 10:48:07 +08:00
|
|
|
transform-origin: 0% 0%;
|
|
|
|
opacity: 1;
|
2015-07-01 17:25:16 +08:00
|
|
|
}
|
2021-10-13 15:38:59 +08:00
|
|
|
|
2015-07-01 17:25:16 +08:00
|
|
|
100% {
|
2018-12-07 16:17:45 +08:00
|
|
|
transform: scaleX(0.8);
|
2019-02-15 10:48:07 +08:00
|
|
|
transform-origin: 0% 0%;
|
|
|
|
opacity: 0;
|
2015-07-01 17:25:16 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-09-15 15:00:23 +08:00
|
|
|
@keyframes antSlideRightIn {
|
2015-07-01 17:25:16 +08:00
|
|
|
0% {
|
2018-12-07 16:17:45 +08:00
|
|
|
transform: scaleX(0.8);
|
2019-02-15 10:48:07 +08:00
|
|
|
transform-origin: 100% 0%;
|
|
|
|
opacity: 0;
|
2015-07-01 17:25:16 +08:00
|
|
|
}
|
2021-10-13 15:38:59 +08:00
|
|
|
|
2015-07-01 17:25:16 +08:00
|
|
|
100% {
|
|
|
|
transform: scaleX(1);
|
2019-02-15 10:48:07 +08:00
|
|
|
transform-origin: 100% 0%;
|
|
|
|
opacity: 1;
|
2015-07-01 17:25:16 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-09-15 15:00:23 +08:00
|
|
|
@keyframes antSlideRightOut {
|
2015-07-01 17:25:16 +08:00
|
|
|
0% {
|
|
|
|
transform: scaleX(1);
|
2019-02-15 10:48:07 +08:00
|
|
|
transform-origin: 100% 0%;
|
|
|
|
opacity: 1;
|
2015-07-01 17:25:16 +08:00
|
|
|
}
|
2021-10-13 15:38:59 +08:00
|
|
|
|
2015-07-01 17:25:16 +08:00
|
|
|
100% {
|
2018-12-07 16:17:45 +08:00
|
|
|
transform: scaleX(0.8);
|
2019-02-15 10:48:07 +08:00
|
|
|
transform-origin: 100% 0%;
|
|
|
|
opacity: 0;
|
2015-07-01 17:25:16 +08:00
|
|
|
}
|
2015-07-09 11:04:45 +08:00
|
|
|
}
|