If I understand you correctly, to get your desired behaviour, it should be as straightforward as adjusting the initial, animate and exit props to fit your needs for each page separately. In the example I describe in the original post, we use the same props for both pages in order to gain the same transition when navigating through each page.
However, if you wanted to adjust, say, Page2's transition animation in, you simply need to change the properties for the Page2 component!
Here's an example. Below, Page1 would enter with a scaleY effect (stretching vertically), and Page2 would enter with a scaleX effect (stretching horizontally).
Hey Willem!
Glad you enjoyed the guide :)
If I understand you correctly, to get your desired behaviour, it should be as straightforward as adjusting the
initial,animateandexitprops to fit your needs for each page separately. In the example I describe in the original post, we use the same props for both pages in order to gain the same transition when navigating through each page.However, if you wanted to adjust, say,
Page2's transition animation in, you simply need to change the properties for thePage2component!Here's an example. Below,
Page1would enter with ascaleYeffect (stretching vertically), andPage2would enter with ascaleXeffect (stretching horizontally).You're not limited to just
scaleXorscaleY- it can be any combination of any CSS properties! I'm just using these as a simple example.Hope that helps!