Skip to content

feat: add Swup back as a bundled configuration #1037

@jaredcwhite

Description

@jaredcwhite

We actually had a bundled configuration for adding Swup once, but then it seemed like the project was abandoned and some outstanding bugs weren't addressed. Now there's a whole new version and release cycle and it's receiving more frequent updates, so we should add it back. For fans of "Turbo Drive", Swup is very much in that vein and I haven't found anything better. (I'm already using this new version on a recent client project, it rocks.)

It should be pointed out that one could make the argument that cross-document view transitions is the new Drive. And for "simple" use cases, that's true. A line or two of CSS and you're good to go, you don't need anything else to make your MPA feel more SPA-like. But as soon as you need any part of your DOM to persist between page navigations, you have to move to something else. Swup supports native client-side view transitions which is pretty cool. It should also be noted Swup has an official Astro integration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions