During the page transition, if first page is scrolled down it will jump to the top before transitioning to the another page. This is not an error nor is there a perfect solution for this situation. The issue is this, to animate the transition to the another page the viewport has to be at the top of the page so that the current page and the page we are transitioning to are vertically lined-up.