zmp-core
Version:
Full featured mobile HTML framework for building iOS & Android apps
64 lines (63 loc) • 1.38 kB
text/less
// zmp-cover-v
.router-transition-zmp-cover-v-forward,
.router-transition-zmp-cover-v-backward {
background: #000;
perspective: 1200px;
.page-next,
.page-current,
.page-previous:not(.stacked) {
pointer-events: none;
}
}
.router-transition-zmp-cover-v-forward {
.page-next {
animation: zmp-cover-v-next-to-current var(--zmp-page-cover-transition-duration) forwards;
}
.page-current {
animation: zmp-cover-v-current-to-prev var(--zmp-page-cover-transition-duration) forwards;
}
}
.router-transition-zmp-cover-v-backward {
.page-current {
animation: zmp-cover-v-current-to-next var(--zmp-page-cover-transition-duration) forwards;
}
.page-previous {
animation: zmp-cover-v-prev-to-current var(--zmp-page-cover-transition-duration) forwards;
}
}
@keyframes zmp-cover-v-next-to-current {
from {
transform: translateY(100%);
}
to {
transform: translateY(0%);
}
}
@keyframes zmp-cover-v-current-to-next {
from {
transform: translateY(0%);
}
to {
transform: translateY(100%);
}
}
@keyframes zmp-cover-v-current-to-prev {
from {
transform: translateZ(0);
opacity: 1;
}
to {
transform: translateZ(-300px);
opacity: 0.5;
}
}
@keyframes zmp-cover-v-prev-to-current {
from {
transform: translateZ(-300px);
opacity: 0.5;
}
to {
transform: translateZ(0);
opacity: 1;
}
}