Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

swup

Package Overview
Dependencies
Maintainers
1
Versions
144
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

swup - npm Package Compare versions

Comparing version 0.4.2 to 0.4.3

2

package.json
{
"name": "swup",
"version": "0.4.2",
"version": "0.4.3",
"description": "Animated page transitions with css.",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -111,7 +111,7 @@ # swup

```html
<div class="a-fade">
<main id="swup">
<main id="swup">
<div class="a-fade">
...
</main>
</div>
</div>
</main>
<div class="loading">We are loading...</div>

@@ -330,3 +330,3 @@ ```

As we are replacing the native functionality of the browser, there may be some constraints related to that. For this purpose, swup emits bunch of events triggered on the document while working. We can use those events to enable our JavaScript, trigger some analytics, etc.
```javascripts
```javascript
// trigger page view for GTM

@@ -333,0 +333,0 @@ document.addEventListener('swup:pageView', event => {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc