|
1 | 1 | .md {
|
| 2 | + .page-previous { |
| 3 | + transform: translate3d(0, -32px, 0); |
| 4 | + } |
2 | 5 | .page-next {
|
3 |
| - opacity: 0; |
4 | 6 | pointer-events: none;
|
5 |
| - transform: translate3d(0, 56px, 0); |
| 7 | + transform: translate3d(0, 128px, 0); |
6 | 8 | &.page-next-on-right {
|
7 | 9 | .ltr({
|
8 | 10 | transform: translate3d(100%, 0, 0);
|
|
15 | 17 | // Animations
|
16 | 18 | .router-transition-forward {
|
17 | 19 | .page-next {
|
18 |
| - animation: md-page-next-to-current var(--f7-page-transition-duration) forwards; |
| 20 | + animation: md-page-next-to-current var(--f7-page-transition-duration) forwards |
| 21 | + cubic-bezier(0, 0.8, 0.3, 1); |
19 | 22 | }
|
20 | 23 | .page-current {
|
21 |
| - animation: none; |
| 24 | + animation: md-page-current-to-previous var(--f7-page-transition-duration) forwards |
| 25 | + cubic-bezier(0, 0.8, 0.3, 1); |
22 | 26 | }
|
23 | 27 | }
|
24 | 28 | .router-transition-backward {
|
25 | 29 | .page-current {
|
26 |
| - animation: md-page-current-to-next var(--f7-page-transition-duration) forwards; |
| 30 | + animation: md-page-current-to-next calc(var(--f7-page-transition-duration) / 4) forwards |
| 31 | + cubic-bezier(0.8, 0, 1, 0.3), |
| 32 | + md-page-current-to-next-opacity 0ms calc(var(--f7-page-transition-duration) / 4) forwards; |
27 | 33 | }
|
28 | 34 | .page-previous {
|
29 |
| - animation: none; |
| 35 | + animation: md-page-previous-to-current var(--f7-page-transition-duration) forwards; |
30 | 36 | }
|
31 | 37 | }
|
32 | 38 | }
|
33 | 39 | @keyframes md-page-next-to-current {
|
34 | 40 | from {
|
35 |
| - transform: translate3d(0, 56px, 0); |
36 |
| - opacity: 0; |
| 41 | + transform: translate3d(0, 128px, 0); |
37 | 42 | }
|
38 | 43 | to {
|
39 | 44 | transform: translate3d(0, 0px, 0);
|
40 |
| - opacity: 1; |
41 | 45 | }
|
42 | 46 | }
|
43 | 47 | @keyframes md-page-current-to-next {
|
44 | 48 | from {
|
45 | 49 | transform: translate3d(0, 0, 0);
|
| 50 | + } |
| 51 | + to { |
| 52 | + transform: translate3d(0, 128px, 0); |
| 53 | + } |
| 54 | +} |
| 55 | +@keyframes md-page-current-to-next-opacity { |
| 56 | + from { |
46 | 57 | opacity: 1;
|
47 | 58 | }
|
48 | 59 | to {
|
49 |
| - transform: translate3d(0, 56px, 0); |
50 | 60 | opacity: 0;
|
51 | 61 | }
|
52 | 62 | }
|
| 63 | +@keyframes md-page-current-to-previous { |
| 64 | + from { |
| 65 | + transform: translate3d(0, 0, 0); |
| 66 | + } |
| 67 | + to { |
| 68 | + transform: translate3d(0, -32px, 0); |
| 69 | + } |
| 70 | +} |
| 71 | +@keyframes md-page-previous-to-current { |
| 72 | + from { |
| 73 | + transform: translate3d(0, -32px, 0); |
| 74 | + } |
| 75 | + to { |
| 76 | + transform: translate3d(0, 0px, 0); |
| 77 | + } |
| 78 | +} |
0 commit comments