Skip to content
Advertisement

How to transition to top of the page with swup js

Using Swup JS I achieved a nice transition effect which works fine except for one issue.

If I scroll down to a certain point on page “A”, hit the url to transition to page “B”, I am not transitioned to the very top of page “B” but instead the scroll point is the same or close.

How can I make swup js not remember the scroll position and transition me to the top of the page?

Advertisement

Answer

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement