Versatile and extensible page transition library for server-rendered websites 🎉
Go to file
Rasso Hilber 31db3b293e
Merge pull request #996 from swup/version/automated
Update package version (automated)
2025-04-29 13:36:26 +02:00
.github/workflows Remove automerge action 2025-02-02 12:38:48 +01:00
.husky Upgrade husky setup 2024-09-24 15:06:46 +02:00
src Handle empty array as `Path` in `matchPath` 2025-04-29 10:28:38 +02:00
tests Handle empty array as `Path` in `matchPath` 2025-04-29 10:28:38 +02:00
.editorconfig update .editorconfig to include TS 2023-01-09 13:47:00 +01:00
.eslintrc.cjs Fix eslint errors 2023-11-21 00:16:17 +01:00
.eslintrc.compat.cjs Tweak browsers to match current compatibility 2024-02-03 16:21:21 +01:00
.gitignore Group and comment gitignore file 2023-09-05 20:21:38 +02:00
.nvmrc provide .nvmrc file to keep the node version consistent across maintainers 2023-01-11 23:50:55 +01:00
CHANGELOG.md Fix changelog release date 2025-04-29 13:01:29 +02:00
LICENSE Fixed error on empty page classes 2017-10-31 00:28:18 +01:00
README.md Update for main branch 2025-01-31 17:40:44 +01:00
package-lock.json Update package version 2025-04-29 10:02:43 +00:00
package.json Update package version 2025-04-29 10:02:43 +00:00
tsconfig.json Pass around the `Visit` object 2023-11-20 13:23:08 +01:00

README.md

swup 4 is released  🎉  Check out the release notes and upgrade guide.


swup

npm version Bundle size npm downloads Test status License


Swup

Versatile and extensible page transition library for server-rendered websites.

FeaturesDemosPluginsThemesDocumentationDiscussions

Overview

Swup adds page transitions to server-rendered websites. It manages the complete page load lifecycle and smoothly animates between the current and next page. In addition, it offers many other quality-of-life improvements like caching, smart preloading, native browser history and enhanced accessibility.

Make your site feel like a snappy single-page app — without any of the complexity.

Features

  • ✏️ Works out of the box with minimal markup
  • Auto-detects CSS transitions & animations for perfect timing
  • 🔗 Updates URLs and preserves native browser history
  • 🏓 Manages the scroll position between pages and anchor links
  • 🚀 Uses a cache to speed up subsequent page loads
  • 📡 Offers hooks to customize and extend the page load lifecycle
  • 🔌 Has a powerful plugin system and many official and third-party plugins
  • 🎨 Provides ready-to-go themes to get started quickly

Demos

Explore our interactive demos to see swup in action.

Documentation

Visit our official documentation to learn more.

Plugins

Swup is small by design. Extended features can be added via plugins:

Check out the list of official plugins and third-party integrations.

Themes

Get started quickly with one of three official themes: fade, slide, and overlay.

Examples

Take a look at the interactive demos and sites using swup for more examples.

Having trouble?

If you're having trouble implementing swup, check out the Common Issues section of the docs, look at closed issues or create a new discussion.

Want to Contribute?

We're looking for maintainers!   👀

Become a sponsor on Open Collective or support development through GitHub sponsors.

This project is tested with BrowserStack.