Interesting! I’ve been using Swup for the past three years in my core Wordpress theme, and am quite happy with it. It takes some getting used to (like with how third party scripts will take some special care, since a JS page replace doesn’t always trigger script load events), but once you know the basics, it’s a powerful and neat tool to speed up a website that has a CMS.
The one thing I’m looking forward to in v4 is more advanced hooks, so I can do “fade into eachother” animations. Right now content is replaced in the same container, but it would be real cool if we could have the from and to page exist together during the transition.
Is this a modern day pjax/turbolinks? It feels that way from the reading of swup.
Started web dev five years prior but went through the same trajectory in the 00s. This is rather clever and reminds me of ajax. The a11y focus is great, definitely modernizes this. I don't think the script kiddies these days are going to appreciate this as much though.
This is the opposite of what I want the web to be.
Took me a while to understand, maybe some images are required..
e.g. "Instead of [screenshot of Characters page in a browser window] -> text: click a character -> [screenshot of the blank browser window with caption "navigation, full page fetch and rendering"]-> [screenshot of a character modal in a browser window]
You get: [screenshot of Characters page in a browser window] -> text: click a character -> [screenshot of a character modal in browser window with caption: Swup/Fragment Plugin handles the loading and rendering of the modal, making your website an SPA]"