Installation
Swup can be installed from npm…
npm install swup
…or include the file from the dist folder…
<script src="./dist/swup.js"></script>
<!-- or directly from unpkg -->
<script src="https://unpkg.com/swup@latest/dist/swup.min.js"></script>
Run Swup
To run swup, create new instance of Swup class.
import Swup from 'swup';
const swup = new Swup(); // only this line when included with script tag