How to Use :
First include this library using CDN (https://unpkg.com/swup@latest/dist/swup.min.js).
wrap all code into a main tag and give it a id with name "swap" and class with any name
(example: id="swup" class="transition-fade")
Enable swup using JS :-
const swup = new Swup();
animate main using CSS with class identifier :-
My Project with swup JS :- https://nvnamanvyas.github.io/portfolio/