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