I have 2 pages embedded on my single HTML file. so what it does is that initially it shows PAGE1, then if i swipe from right to left OR left to right PAGE2 should show. my problem is how can I change the page animation based on my swipe? like when I swipe form right to left the animation should be the page scrolling from right to left and vice versa?
i am aware of the page swipe events but i dont know how to programatically change its animation
thank you!
Updated Answer:
If you’re looking for page transitions I would suggest reading:
Example:
Adding this attribute will slide from right to left
Adding these attributes will slide from left to right
Original Answer below:
Live Example:
JS:
HTML:
Related: