vanilla-back-to-top
Advanced tools
Comparing version 7.0.2 to 7.0.3
{ | ||
"name": "vanilla-back-to-top", | ||
"version": "7.0.2", | ||
"version": "7.0.3", | ||
"description": "Tiny and configurable Back To Top button with no dependencies", | ||
@@ -5,0 +5,0 @@ "main": "dist/vanilla-back-to-top.umd.js", |
@@ -12,2 +12,4 @@ # Vanilla Back To Top | ||
Scrolls smoothly using [requestAnimationFrame](https://github.com/vfeskov/vanilla-back-to-top/blob/master/index.js#L105) | ||
<img src="https://i.pi.gy/ee5b5.gif" width="320px"/> | ||
@@ -17,2 +19,4 @@ | ||
[Live demo](https://vfeskov.com/) | ||
## How to use | ||
@@ -26,7 +30,7 @@ | ||
```html | ||
<script src="https://unpkg.com/vanilla-back-to-top@7.0.2/dist/vanilla-back-to-top.min.js"></script> | ||
<script src="https://unpkg.com/vanilla-back-to-top@7.0.3/dist/vanilla-back-to-top.min.js"></script> | ||
<script>addBackToTop()</script> | ||
``` | ||
If you don't want to rely on [unpkg.com](https://unpkg.com/#/about), save [the file](https://unpkg.com/vanilla-back-to-top@7.0.2/dist/vanilla-back-to-top.min.js) to your project and serve it from your server: | ||
If you don't want to rely on [unpkg.com](https://unpkg.com/#/about), save [the file](https://unpkg.com/vanilla-back-to-top@7.0.3/dist/vanilla-back-to-top.min.js) to your project and serve it from your server: | ||
```html | ||
@@ -33,0 +37,0 @@ <script src="/assets/vanilla-back-to-top.min.js"></script> |
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
15915
127