Comparing version 0.4.2 to 0.4.3
{ | ||
"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 => { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
72433
29