Socket
Socket
Sign inDemoInstall

vanilla-back-to-top

Package Overview
Dependencies
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vanilla-back-to-top - npm Package Compare versions

Comparing version 4.0.0 to 4.0.1

2

package.json
{
"name": "vanilla-back-to-top",
"version": "4.0.0",
"version": "4.0.1",
"description": "Configurable zero dependency Back To Top button",

@@ -5,0 +5,0 @@ "main": "dist/vanilla-back-to-top.umd.min.js",

@@ -13,7 +13,7 @@ # Vanilla Back To Top

```html
<script src="https://unpkg.com/vanilla-back-to-top@4.0.0/dist/vanilla-back-to-top.min.js"></script>
<script src="https://unpkg.com/vanilla-back-to-top@4.0.1/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@4.0.0/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@4.0.1/dist/vanilla-back-to-top.min.js) to your project and serve it from your server:
```html

@@ -35,3 +35,3 @@ <script src="/assets/vanilla-back-to-top.min.js"></script>

Optionally customise CSS of the button using `#back-to-top` selector, e.g.:
```
```css
#back-to-top a {

@@ -52,3 +52,3 @@ text-indent: -9999px;

`addBackToTop` function accepts many options, e.g.:
```
```js
addBackToTop({

@@ -55,0 +55,0 @@ id: 'back-to-top',

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