Debian Codegraph @

README.md

raw
1 <div align="center">
2
3 **swup 4 is released  🎉  Check out the [release notes](https://swup.js.org/announcements/swup-4/) and [upgrade guide](https://swup.js.org/getting-started/upgrading/).**
4
5 </div>
6
7 <br>
8
9 <p align="center">
10 <img width="280" alt="swup" src="https://swup.js.org/assets/images/swup-logo.svg">
11 </p>
12
13 <div align="center">
14
15 [![npm version](https://img.shields.io/npm/v/swup.svg)](https://www.npmjs.com/package/swup)
16 [![Bundle size](https://img.shields.io/bundlejs/size/swup?exports=default%20as%20Swup&label=size)](https://bundlejs.com/?q=swup&treeshake=%5B%7B+default+%7D%5D)
17 [![npm downloads](https://img.shields.io/npm/dt/swup.svg)](https://www.npmjs.com/package/swup)
18 [![Test status](https://img.shields.io/github/actions/workflow/status/swup/swup/e2e-tests.yml?branch=main&label=tests)](https://github.com/swup/swup/actions/workflows/e2e-tests.yml)
19 [![License](https://img.shields.io/github/license/swup/swup.svg)](https://github.com/swup/swup/blob/main/LICENSE)
20
21 </div>
22
23 <br>
24
25 # Swup
26
27 Versatile and extensible **page transition library** for server-rendered websites.
28
29 [Features](#features) •
30 [Demos](#demos) •
31 [Plugins](#plugins) •
32 [Themes](#themes) •
33 [Documentation](https://swup.js.org/getting-started) •
34 [Discussions](https://github.com/swup/swup/discussions)
35
36 ## Overview
37
38 Swup adds **page transitions** to server-rendered websites. It manages the complete page load lifecycle
39 and smoothly animates between the current and next page. In addition, it offers many other
40 quality-of-life improvements like **caching**, **smart preloading**, native **browser history** and
41 enhanced **accessibility**.
42
43 Make your site feel like a snappy single-page app — without any of the complexity.
44
45 ## Features
46
47 - ✏️ Works out of the box with [minimal markup](https://swup.js.org/getting-started/example/)
48 - ✨ Auto-detects [CSS transitions](https://swup.js.org/getting-started/how-it-works/) & animations for perfect timing
49 - 🔗 Updates URLs and preserves native [browser history](https://swup.js.org/options/#animatehistorybrowsing)
50 - 🏓 Manages the scroll position between pages and anchor links
51 - 🚀 Uses a [cache](https://swup.js.org/api/cache/) to speed up subsequent page loads
52 - 📡 Offers [hooks](https://swup.js.org/hooks/) to customize and extend the page load lifecycle
53 - 🔌 Has a powerful [plugin system](https://swup.js.org/plugins/) and many official and third-party plugins
54 - 🎨 Provides ready-to-go [themes](https://swup.js.org/themes/) to get started quickly
55
56 ## Demos
57
58 Explore our [interactive demos](https://swup.js.org/getting-started/demos/) to see swup in action.
59
60 ## Documentation
61
62 Visit our [official documentation](https://swup.js.org/getting-started) to learn more.
63
64 ## Plugins
65
66 Swup is small by design. Extended features can be added via [plugins](https://swup.js.org/plugins/):
67
68 - Display a [progress bar](https://swup.js.org/plugins/progress-plugin/) while loading
69 - Enable [smooth scrolling](https://swup.js.org/plugins/scroll-plugin/) between visits
70 - Update [meta tags and stylesheets](https://swup.js.org/plugins/head-plugin/) after page loads
71 - Add support for [preloading pages](https://swup.js.org/plugins/preload-plugin/) in the background
72 - Improve [accessibility](https://swup.js.org/plugins/a11y-plugin/) for screen readers
73 - Perform your [animations in JS](https://swup.js.org/plugins/js-plugin/) instead of CSS transitions
74 - Animate [form submissions](https://swup.js.org/plugins/forms-plugin/)
75 - Get help in [debug mode](https://swup.js.org/plugins/debug-plugin/)
76
77 Check out the list of [official](https://swup.js.org/plugins/) and [third-party](https://swup.js.org/third-party-plugins/) plugins.
78
79 ## Themes
80
81 Get started quickly with one of three official themes: [fade](https://swup.js.org/themes/fade-theme/),
82 [slide](https://swup.js.org/themes/slide-theme/), and [overlay](https://swup.js.org/themes/overlay-theme/).
83
84 ## Examples
85
86 <img src="https://user-images.githubusercontent.com/9338324/49190360-50125480-f372-11e8-89e9-d2fb091a2240.gif" width="100%">
87
88 Take a look at the [interactive demos](https://swup.js.org/getting-started/demos/) and
89 [sites using swup](https://github.com/swup/swup/discussions/333) for more examples.
90
91 ## Having trouble?
92
93 If you're having trouble implementing swup, check out the [Common Issues](https://swup.js.org/getting-started/common-issues/) section of the docs, look at [closed issues](https://github.com/swup/swup/issues?q=is%3Aissue+is%3Aclosed) or create a [new discussion](https://github.com/swup/swup/discussions/new).
94
95 ## Want to Contribute?
96
97 [We're looking for maintainers!](https://github.com/swup/swup/discussions/424)   👀
98
99 Become a sponsor on [Open Collective](https://opencollective.com/swup) or support development through
100 [GitHub sponsors](https://github.com/sponsors/gmrchk).
101
102 This project is tested with BrowserStack.