|
1 | 1 | .md { |
2 | 2 | .page-previous { |
3 | | - transform: translate3d(0, -20px, 0); |
| 3 | + transform: translate3d(-24px, 0px, 0); |
4 | 4 | } |
5 | 5 | .page-next { |
6 | 6 | pointer-events: none; |
7 | | - transform: translate3d(0, 128px, 0); |
| 7 | + transform: translate3d(128px, 0px, 0); |
8 | 8 | opacity: 0; |
9 | 9 | &.page-next-on-right { |
10 | 10 | .ltr({ |
|
32 | 32 | .router-transition-backward { |
33 | 33 | .page-current { |
34 | 34 | animation: |
35 | | - md-page-current-to-next calc(var(--f7-page-transition-duration) / 4) forwards |
36 | | - cubic-bezier(0.8, 0, 1, 0.3), |
37 | | - md-page-current-to-next-opacity 0ms calc(var(--f7-page-transition-duration) / 4) forwards; |
| 35 | + md-page-current-to-next calc(var(--f7-page-transition-duration) / 2) forwards |
| 36 | + cubic-bezier(0, 1, 0.8, 1), |
| 37 | + md-page-current-to-next-opacity calc(var(--f7-page-transition-duration) / 2) forwards; |
38 | 38 | } |
39 | 39 | .page-previous { |
40 | | - animation: md-page-previous-to-current var(--f7-page-transition-duration) forwards; |
| 40 | + animation: md-page-previous-to-current calc(var(--f7-page-transition-duration) / 2) forwards |
| 41 | + cubic-bezier(0, 1, 0.8, 1); |
41 | 42 | } |
42 | 43 | } |
43 | 44 | } |
44 | 45 | @keyframes md-page-next-to-current { |
45 | 46 | from { |
46 | | - transform: translate3d(0, 128px, 0); |
| 47 | + transform: translate3d(128px, 0px, 0); |
47 | 48 | } |
48 | 49 | to { |
49 | | - transform: translate3d(0, 0px, 0); |
| 50 | + transform: translate3d(0px, 0px, 0); |
50 | 51 | } |
51 | 52 | } |
52 | 53 | @keyframes md-page-current-to-next { |
53 | 54 | from { |
54 | 55 | transform: translate3d(0, 0, 0); |
55 | 56 | } |
56 | 57 | to { |
57 | | - transform: translate3d(0, 128px, 0); |
| 58 | + transform: translate3d(128px, 0px, 0); |
58 | 59 | } |
59 | 60 | } |
60 | 61 | @keyframes md-page-current-to-next-opacity { |
|
70 | 71 | transform: translate3d(0, 0, 0); |
71 | 72 | } |
72 | 73 | to { |
73 | | - transform: translate3d(0, -20px, 0); |
| 74 | + transform: translate3d(-24px, 0px, 0); |
74 | 75 | } |
75 | 76 | } |
76 | 77 | @keyframes md-page-previous-to-current { |
77 | 78 | from { |
78 | | - transform: translate3d(0, -20px, 0); |
| 79 | + transform: translate3d(-24px, 0px, 0); |
79 | 80 | } |
80 | 81 | to { |
81 | 82 | transform: translate3d(0, 0px, 0); |
|
0 commit comments