[go: up one dir, main page]

Skip to content
/ swup Public

Versatile and extensible page transition library for server-rendered websites ๐ŸŽ‰

License

Notifications You must be signed in to change notification settings

swup/swup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

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.

Features โ€ข Demos โ€ข Plugins โ€ข Themes โ€ข Documentation โ€ข Discussions

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.