zmp-core
Version:
Full featured mobile HTML framework for building iOS & Android apps
78 lines (77 loc) • 1.53 kB
text/less
// zmp-Push
.router-transition-zmp-push-forward {
.page-next {
animation: zmp-push-next-to-current var(--zmp-page-push-transition-duration) forwards;
}
.page-current {
animation: zmp-push-current-to-prev var(--zmp-page-push-transition-duration) forwards;
}
}
.router-transition-zmp-push-backward {
.page-current {
animation: zmp-push-current-to-next var(--zmp-page-push-transition-duration) forwards;
}
.page-previous {
animation: zmp-push-prev-to-current var(--zmp-page-push-transition-duration) forwards;
}
}
.router-transition-zmp-push-forward,
.router-transition-zmp-push-backward {
.page-next,
.page-current,
.page-previous:not(.stacked) {
pointer-events: none;
}
}
@keyframes zmp-push-next-to-current {
from {
.ltr({
transform: translateX(100%);
});
.rtl({
transform: translateX(-100%);
});
}
to {
transform: translateX(0%);
}
}
@keyframes zmp-push-current-to-next {
from {
transform: translateX(0%);
}
to {
.ltr({
transform: translateX(100%);
});
.rtl({
transform: translateX(-100%);
});
}
}
@keyframes zmp-push-current-to-prev {
from {
transform: translateX(0%);
}
to {
.ltr({
transform: translateX(-100%);
});
.rtl({
transform: translateX(100%);
});
}
}
@keyframes zmp-push-prev-to-current {
from {
.ltr({
transform: translateX(-100%);
});
.rtl({
transform: translateX(100%);
});
}
to {
transform: translateX(-0%);
}
}