Lifecycle
Swup handles the complete lifecycle of a page visit: it will intercept link clicks, load the new page in the background, replace the content and animate between the old and the new page.
To change how swup will transition to the new page, you can:
- use lifecycle hooks to trigger custom code
- update the visit object to custimize the current transition