UNPKG

framework7

Version:

Full featured mobile HTML framework for building iOS & Android apps

62 lines (61 loc) 1.31 kB
// f7-cover-v .router-transition-f7-cover-v-forward, .router-transition-f7-cover-v-backward { background: #000; perspective: 1200px; .page { pointer-events: none; } } .router-transition-f7-cover-v-forward { .page-next { animation: f7-cover-v-next-to-current var(--f7-page-cover-transition-duration) forwards; } .page-current { animation: f7-cover-v-current-to-prev var(--f7-page-cover-transition-duration) forwards; } } .router-transition-f7-cover-v-backward { .page-current { animation: f7-cover-v-current-to-next var(--f7-page-cover-transition-duration) forwards; } .page-previous { animation: f7-cover-v-prev-to-current var(--f7-page-cover-transition-duration) forwards; } } @keyframes f7-cover-v-next-to-current { from { transform: translateY(100%); } to { transform: translateY(0%); } } @keyframes f7-cover-v-current-to-next { from { transform: translateY(0%); } to { transform: translateY(100%); } } @keyframes f7-cover-v-current-to-prev { from { transform: translateZ(0); opacity: 1; } to { transform: translateZ(-300px); opacity: 0.5; } } @keyframes f7-cover-v-prev-to-current { from { transform: translateZ(-300px); opacity: 0.5; } to { transform: translateZ(0); opacity: 1; } }