You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
119 lines
2.0 KiB
119 lines
2.0 KiB
.move-motion(@className, @keyframeName) {
|
|
.make-motion(@className, @keyframeName);
|
|
.@{className}-enter, .@{className}-appear {
|
|
opacity: 0;
|
|
animation-timing-function: @ease-out-circ;
|
|
}
|
|
.@{className}-leave {
|
|
animation-timing-function: @ease-in-circ;
|
|
}
|
|
}
|
|
|
|
.move-motion(move-up, moveUp);
|
|
.move-motion(move-down, moveDown);
|
|
.move-motion(move-left, moveLeft);
|
|
.move-motion(move-right, moveRight);
|
|
|
|
@keyframes moveDownIn {
|
|
0% {
|
|
transform-origin: 0 0;
|
|
transform: translateY(100%);
|
|
opacity: 0;
|
|
}
|
|
100% {
|
|
transform-origin: 0 0;
|
|
transform: translateY(0%);
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
@keyframes moveDownOut {
|
|
0% {
|
|
transform-origin: 0 0;
|
|
transform: translateY(0%);
|
|
opacity: 1;
|
|
}
|
|
100% {
|
|
transform-origin: 0 0;
|
|
transform: translateY(100%);
|
|
opacity: 0;
|
|
}
|
|
}
|
|
|
|
@keyframes moveLeftIn {
|
|
0% {
|
|
transform-origin: 0 0;
|
|
transform: translateX(-100%);
|
|
opacity: 0;
|
|
}
|
|
100% {
|
|
transform-origin: 0 0;
|
|
transform: translateX(0%);
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
@keyframes moveLeftOut {
|
|
0% {
|
|
transform-origin: 0 0;
|
|
transform: translateX(0%);
|
|
opacity: 1;
|
|
}
|
|
100% {
|
|
transform-origin: 0 0;
|
|
transform: translateX(-100%);
|
|
opacity: 0;
|
|
}
|
|
}
|
|
|
|
@keyframes moveRightIn {
|
|
0% {
|
|
opacity: 0;
|
|
transform-origin: 0 0;
|
|
transform: translateX(100%);
|
|
}
|
|
100% {
|
|
opacity: 1;
|
|
transform-origin: 0 0;
|
|
transform: translateX(0%);
|
|
}
|
|
}
|
|
|
|
@keyframes moveRightOut {
|
|
0% {
|
|
transform-origin: 0 0;
|
|
transform: translateX(0%);
|
|
opacity: 1;
|
|
}
|
|
100% {
|
|
transform-origin: 0 0;
|
|
transform: translateX(100%);
|
|
opacity: 0;
|
|
}
|
|
}
|
|
|
|
@keyframes moveUpIn {
|
|
0% {
|
|
transform-origin: 0 0;
|
|
transform: translateY(-100%);
|
|
opacity: 0;
|
|
}
|
|
100% {
|
|
transform-origin: 0 0;
|
|
transform: translateY(0%);
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
@keyframes moveUpOut {
|
|
0% {
|
|
transform-origin: 0 0;
|
|
transform: translateY(0%);
|
|
opacity: 1;
|
|
}
|
|
100% {
|
|
transform-origin: 0 0;
|
|
transform: translateY(-100%);
|
|
opacity: 0;
|
|
}
|
|
}
|
|
|