2015-07-01 17:25:16 +08:00
|
|
|
.zoom-motion(@className, @keyframeName) {
|
|
|
|
.make-motion(@className, @keyframeName);
|
2015-11-26 19:32:55 +08:00
|
|
|
.@{className}-enter,
|
|
|
|
.@{className}-appear {
|
2015-08-27 12:22:49 +08:00
|
|
|
transform: scale(0); // need this by yiminghe
|
|
|
|
animation-timing-function: @ease-out-circ;
|
2015-07-01 17:25:16 +08:00
|
|
|
}
|
|
|
|
.@{className}-leave {
|
2015-08-27 12:22:49 +08:00
|
|
|
animation-timing-function: @ease-in-out-circ;
|
2015-07-01 17:25:16 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-06-27 16:40:11 +08:00
|
|
|
// For Modal
|
2015-09-15 15:00:23 +08:00
|
|
|
.zoom-motion(zoom, antZoom);
|
2016-06-27 16:40:11 +08:00
|
|
|
// For Tooltip、Popover、Popconfirm、Dropdown
|
2015-09-15 15:00:23 +08:00
|
|
|
.zoom-motion(zoom-big, antZoomBig);
|
|
|
|
.zoom-motion(zoom-up, antZoomUp);
|
|
|
|
.zoom-motion(zoom-down, antZoomDown);
|
|
|
|
.zoom-motion(zoom-left, antZoomLeft);
|
|
|
|
.zoom-motion(zoom-right, antZoomRight);
|
2015-07-01 17:25:16 +08:00
|
|
|
|
2015-09-15 15:00:23 +08:00
|
|
|
@keyframes antZoomIn {
|
2015-07-01 17:25:16 +08:00
|
|
|
0% {
|
|
|
|
opacity: 0;
|
2016-06-27 16:40:11 +08:00
|
|
|
transform: scale(0.2);
|
2015-07-01 17:25:16 +08:00
|
|
|
}
|
|
|
|
100% {
|
2016-04-04 17:38:39 +08:00
|
|
|
opacity: 1;
|
2015-08-27 12:22:49 +08:00
|
|
|
transform: scale(1);
|
2015-07-01 17:25:16 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-09-15 15:00:23 +08:00
|
|
|
@keyframes antZoomOut {
|
2015-07-01 17:25:16 +08:00
|
|
|
0% {
|
2015-08-27 12:22:49 +08:00
|
|
|
transform: scale(1);
|
2015-07-01 17:25:16 +08:00
|
|
|
}
|
|
|
|
100% {
|
|
|
|
opacity: 0;
|
2016-06-27 16:40:11 +08:00
|
|
|
transform: scale(0.2);
|
2015-07-01 17:25:16 +08:00
|
|
|
}
|
|
|
|
}
|
2015-11-18 23:42:01 +08:00
|
|
|
|
2015-09-15 15:00:23 +08:00
|
|
|
@keyframes antZoomBigIn {
|
2015-09-11 14:02:00 +08:00
|
|
|
0% {
|
|
|
|
opacity: 0;
|
|
|
|
transform: scale(.8);
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
transform: scale(1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-09-15 15:00:23 +08:00
|
|
|
@keyframes antZoomBigOut {
|
2015-09-11 14:02:00 +08:00
|
|
|
0% {
|
|
|
|
transform: scale(1);
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
opacity: 0;
|
|
|
|
transform: scale(.8);
|
|
|
|
}
|
|
|
|
}
|
2015-07-01 17:25:16 +08:00
|
|
|
|
2015-09-15 15:00:23 +08:00
|
|
|
@keyframes antZoomUpIn {
|
2015-07-01 17:25:16 +08:00
|
|
|
0% {
|
|
|
|
opacity: 0;
|
|
|
|
transform-origin: 50% 0%;
|
2015-08-27 12:22:49 +08:00
|
|
|
transform: scale(.8);
|
2015-07-01 17:25:16 +08:00
|
|
|
}
|
|
|
|
100% {
|
|
|
|
transform-origin: 50% 0%;
|
2015-08-27 12:22:49 +08:00
|
|
|
transform: scale(1);
|
2015-07-01 17:25:16 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-09-15 15:00:23 +08:00
|
|
|
@keyframes antZoomUpOut {
|
2015-07-01 17:25:16 +08:00
|
|
|
0% {
|
|
|
|
transform-origin: 50% 0%;
|
2015-08-27 12:22:49 +08:00
|
|
|
transform: scale(1);
|
2015-07-01 17:25:16 +08:00
|
|
|
}
|
|
|
|
100% {
|
|
|
|
opacity: 0;
|
|
|
|
transform-origin: 50% 0%;
|
2015-08-27 12:22:49 +08:00
|
|
|
transform: scale(.8);
|
2015-07-01 17:25:16 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-09-15 15:00:23 +08:00
|
|
|
@keyframes antZoomLeftIn {
|
2015-07-01 17:25:16 +08:00
|
|
|
0% {
|
|
|
|
opacity: 0;
|
|
|
|
transform-origin: 0% 50%;
|
2015-08-27 12:22:49 +08:00
|
|
|
transform: scale(.8);
|
2015-07-01 17:25:16 +08:00
|
|
|
}
|
|
|
|
100% {
|
|
|
|
transform-origin: 0% 50%;
|
2015-08-27 12:22:49 +08:00
|
|
|
transform: scale(1);
|
2015-07-01 17:25:16 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-09-15 15:00:23 +08:00
|
|
|
@keyframes antZoomLeftOut {
|
2015-07-01 17:25:16 +08:00
|
|
|
0% {
|
|
|
|
transform-origin: 0% 50%;
|
2015-08-27 12:22:49 +08:00
|
|
|
transform: scale(1);
|
2015-07-01 17:25:16 +08:00
|
|
|
}
|
|
|
|
100% {
|
|
|
|
opacity: 0;
|
|
|
|
transform-origin: 0% 50%;
|
2015-08-27 12:22:49 +08:00
|
|
|
transform: scale(.8);
|
2015-07-01 17:25:16 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-09-15 15:00:23 +08:00
|
|
|
@keyframes antZoomRightIn {
|
2015-07-01 17:25:16 +08:00
|
|
|
0% {
|
|
|
|
opacity: 0;
|
|
|
|
transform-origin: 100% 50%;
|
2015-08-27 12:22:49 +08:00
|
|
|
transform: scale(.8);
|
2015-07-01 17:25:16 +08:00
|
|
|
}
|
|
|
|
100% {
|
|
|
|
transform-origin: 100% 50%;
|
2015-08-27 12:22:49 +08:00
|
|
|
transform: scale(1);
|
2015-07-01 17:25:16 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-09-15 15:00:23 +08:00
|
|
|
@keyframes antZoomRightOut {
|
2015-07-01 17:25:16 +08:00
|
|
|
0% {
|
|
|
|
transform-origin: 100% 50%;
|
2015-08-27 12:22:49 +08:00
|
|
|
transform: scale(1);
|
2015-07-01 17:25:16 +08:00
|
|
|
}
|
|
|
|
100% {
|
|
|
|
opacity: 0;
|
|
|
|
transform-origin: 100% 50%;
|
2015-08-27 12:22:49 +08:00
|
|
|
transform: scale(.8);
|
2015-07-01 17:25:16 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-09-15 15:00:23 +08:00
|
|
|
@keyframes antZoomDownIn {
|
2015-07-01 17:25:16 +08:00
|
|
|
0% {
|
|
|
|
opacity: 0;
|
|
|
|
transform-origin: 50% 100%;
|
2015-08-27 12:22:49 +08:00
|
|
|
transform: scale(.8);
|
2015-07-01 17:25:16 +08:00
|
|
|
}
|
|
|
|
100% {
|
|
|
|
transform-origin: 50% 100%;
|
2015-08-27 12:22:49 +08:00
|
|
|
transform: scale(1);
|
2015-07-01 17:25:16 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-09-15 15:00:23 +08:00
|
|
|
@keyframes antZoomDownOut {
|
2015-07-01 17:25:16 +08:00
|
|
|
0% {
|
|
|
|
transform-origin: 50% 100%;
|
2015-08-27 12:22:49 +08:00
|
|
|
transform: scale(1);
|
2015-07-01 17:25:16 +08:00
|
|
|
}
|
|
|
|
100% {
|
|
|
|
opacity: 0;
|
|
|
|
transform-origin: 50% 100%;
|
2015-08-27 12:22:49 +08:00
|
|
|
transform: scale(.8);
|
2015-07-01 17:25:16 +08:00
|
|
|
}
|
2015-07-08 16:29:57 +08:00
|
|
|
}
|