2015-07-01 17:25:16 +08:00
|
|
|
.slide-motion(@className, @keyframeName) {
|
|
|
|
.make-motion(@className, @keyframeName);
|
2015-11-26 19:32:55 +08:00
|
|
|
.@{className}-enter,
|
|
|
|
.@{className}-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
|
|
|
}
|
|
|
|
.@{className}-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% {
|
|
|
|
opacity: 0;
|
|
|
|
transform-origin: 0% 0%;
|
2018-12-07 20:02:01 +08:00
|
|
|
transform: scaleY(0.8);
|
2015-07-01 17:25:16 +08:00
|
|
|
}
|
|
|
|
100% {
|
|
|
|
opacity: 1;
|
|
|
|
transform-origin: 0% 0%;
|
|
|
|
transform: scaleY(1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-09-15 15:00:23 +08:00
|
|
|
@keyframes antSlideUpOut {
|
2015-07-01 17:25:16 +08:00
|
|
|
0% {
|
|
|
|
opacity: 1;
|
|
|
|
transform-origin: 0% 0%;
|
|
|
|
transform: scaleY(1);
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
opacity: 0;
|
|
|
|
transform-origin: 0% 0%;
|
2018-12-07 20:02:01 +08:00
|
|
|
transform: scaleY(0.8);
|
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% {
|
|
|
|
opacity: 0;
|
|
|
|
transform-origin: 100% 100%;
|
2018-12-07 20:02:01 +08:00
|
|
|
transform: scaleY(0.8);
|
2015-07-01 17:25:16 +08:00
|
|
|
}
|
|
|
|
100% {
|
|
|
|
opacity: 1;
|
|
|
|
transform-origin: 100% 100%;
|
|
|
|
transform: scaleY(1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-09-15 15:00:23 +08:00
|
|
|
@keyframes antSlideDownOut {
|
2015-07-01 17:25:16 +08:00
|
|
|
0% {
|
|
|
|
opacity: 1;
|
|
|
|
transform-origin: 100% 100%;
|
|
|
|
transform: scaleY(1);
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
opacity: 0;
|
|
|
|
transform-origin: 100% 100%;
|
2018-12-07 20:02:01 +08:00
|
|
|
transform: scaleY(0.8);
|
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% {
|
|
|
|
opacity: 0;
|
|
|
|
transform-origin: 0% 0%;
|
2018-12-07 20:02:01 +08:00
|
|
|
transform: scaleX(0.8);
|
2015-07-01 17:25:16 +08:00
|
|
|
}
|
|
|
|
100% {
|
|
|
|
opacity: 1;
|
|
|
|
transform-origin: 0% 0%;
|
|
|
|
transform: scaleX(1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-09-15 15:00:23 +08:00
|
|
|
@keyframes antSlideLeftOut {
|
2015-07-01 17:25:16 +08:00
|
|
|
0% {
|
|
|
|
opacity: 1;
|
|
|
|
transform-origin: 0% 0%;
|
|
|
|
transform: scaleX(1);
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
opacity: 0;
|
|
|
|
transform-origin: 0% 0%;
|
2018-12-07 20:02:01 +08:00
|
|
|
transform: scaleX(0.8);
|
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% {
|
|
|
|
opacity: 0;
|
|
|
|
transform-origin: 100% 0%;
|
2018-12-07 20:02:01 +08:00
|
|
|
transform: scaleX(0.8);
|
2015-07-01 17:25:16 +08:00
|
|
|
}
|
|
|
|
100% {
|
|
|
|
opacity: 1;
|
|
|
|
transform-origin: 100% 0%;
|
|
|
|
transform: scaleX(1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-09-15 15:00:23 +08:00
|
|
|
@keyframes antSlideRightOut {
|
2015-07-01 17:25:16 +08:00
|
|
|
0% {
|
|
|
|
opacity: 1;
|
|
|
|
transform-origin: 100% 0%;
|
|
|
|
transform: scaleX(1);
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
opacity: 0;
|
|
|
|
transform-origin: 100% 0%;
|
2018-12-07 20:02:01 +08:00
|
|
|
transform: scaleX(0.8);
|
2015-07-01 17:25:16 +08:00
|
|
|
}
|
2015-07-09 11:04:45 +08:00
|
|
|
}
|