swup

适用于服务器渲染网站的多功能、可扩展的页面转换库。「Versatile and extensible page transition library for server-rendered websites 🎉」

Github星跟蹤圖

Swup

Complete, flexible, extensible, and easy-to-use page transition library for your server-side rendered website.

Features
Documentation
Plugins
Themes
Discussions

Overview

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.

Features

  • ✨ 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

Examples

Take a look at 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.

主要指標

概覽
名稱與所有者swup/swup
主編程語言TypeScript
編程語言JavaScript (語言數: 2)
平台
許可證MIT License
所有者活动
創建於2017-10-09 23:19:14
推送於2025-06-28 13:12:51
最后一次提交
發布數46
最新版本名稱4.8.2 (發布於 )
第一版名稱2.0.9-2 (發布於 )
用户参与
星數4.9k
關注者數37
派生數204
提交數1.9k
已啟用問題?
問題數487
打開的問題數2
拉請求數250
打開的拉請求數0
關閉的拉請求數76
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?