ant-design/style/core/motion/zoom.less

159 lines
2.5 KiB
Plaintext
Raw Normal View History

2015-07-01 17:25:16 +08:00
.zoom-motion(@className, @keyframeName) {
.make-motion(@className, @keyframeName);
2015-08-24 00:31:49 +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
}
}
2015-09-15 15:00:23 +08:00
.zoom-motion(zoom, antZoom);
.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-16 16:19:07 +08:00
.zoom-tag-leave{
animation: antZoomOut .3s @ease-in-out-circ;
}
2015-09-15 15:00:23 +08:00
@keyframes antZoomIn {
2015-07-01 17:25:16 +08:00
0% {
opacity: 0;
2015-08-27 12:22:49 +08:00
transform: scale(0);
2015-07-01 17:25:16 +08:00
}
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 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;
2015-08-27 12:22:49 +08:00
transform: scale(0);
2015-07-01 17:25:16 +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
}