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