Complete, flexible, extensible, and easy-to-use page transition library for your server-side rendered website.
Swup is a library that helps you add page transitions to server-side rendered websites. It handles the complete lifecycle of a page visit by intercepting link clicks, loading the new page in the background, replacing the content and transitioning between the old and the new page.
Its goal is to make adding transitions to a site as simple as possible, while providing lots of other quality-of-life improvements.
✨Auto-detects CSS transitions for perfect timing 🔗Updates URLs and preserves native browser history behavior 📦Uses a cache to speed up subsequent page loads 💡Offers events for hooking into the lifecycle 🔌Has a powerful plugin system and many official and third-party plugins 🎨Provides ready-to-go themes to get started quickly
Take a look at Sites using swup for more examples.