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
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.zoom-motion(zoom, zoom);
|
2015-09-11 14:02:00 +08:00
|
|
|
.zoom-motion(zoom-big, zoomBig);
|
2015-07-01 17:25:16 +08:00
|
|
|
.zoom-motion(zoom-up, zoomUp);
|
|
|
|
.zoom-motion(zoom-down, zoomDown);
|
|
|
|
.zoom-motion(zoom-left, zoomLeft);
|
|
|
|
.zoom-motion(zoom-right, zoomRight);
|
|
|
|
|
|
|
|
@keyframes zoomIn {
|
|
|
|
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
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes zoomOut {
|
|
|
|
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-11 14:02:00 +08:00
|
|
|
@keyframes zoomBigIn {
|
|
|
|
0% {
|
|
|
|
opacity: 0;
|
|
|
|
transform: scale(.8);
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
transform: scale(1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes zoomBigOut {
|
|
|
|
0% {
|
|
|
|
transform: scale(1);
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
opacity: 0;
|
|
|
|
transform: scale(.8);
|
|
|
|
}
|
|
|
|
}
|
2015-07-01 17:25:16 +08:00
|
|
|
|
|
|
|
@keyframes zoomUpIn {
|
|
|
|
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
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes zoomUpOut {
|
|
|
|
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
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes zoomLeftIn {
|
|
|
|
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
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes zoomLeftOut {
|
|
|
|
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
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes zoomRightIn {
|
|
|
|
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
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes zoomRightOut {
|
|
|
|
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
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes zoomDownIn {
|
|
|
|
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
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes zoomDownOut {
|
|
|
|
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
|
|
|
}
|