Swup animates navigations between pages on traditional multi-page websites while updating history, scroll position, and optional caches.
Overview
Swup targets server-rendered sites that want smoother transitions without adopting a full single-page application framework. It hooks the page load lifecycle, detects CSS transitions, and swaps content between the current and next document.
History and URL updates stay compatible with native browser navigation, and built-in behavior restores scroll positions and anchor jumps. A cache speeds repeat visits, and hooks let developers extend loading stages.
Official and community plugins add progress bars, preloading, meta tag updates, accessibility tweaks, and JavaScript-driven animations. Theme packages provide starter fade and slide effects.
Key features
- Animated page changes
- Native history integration
- Scroll position handling
- Optional page cache
- Plugin extension system
- CSS transition detection
- Preload and a11y plugins
- Official transition themes
Use cases
- Multipage sites with transitions
- Marketing sites needing SPA feel
- Server-rendered blogs
- Progressive enhancement layers