Add inside <head>
<link rel="stylesheet" href="push-transition.css">then inside <body>
<script src="push.js"></script>Add push attribute with the link of the HTML page
<button push="content.html">Swap</button>push-target : Specifies where the fetched HTML will go, Default: <body></body>.
Any patterns that work with querySelector will work in push-target
transition : Specifies the type of transition Default: slide-in and another is slide-out
<button push="content.html" push-target="body" transition="slide-out">Swap</button>