Socket
Socket
Sign inDemoInstall

scroll

Package Overview
Dependencies
3
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.1 to 0.0.2

2

package.json
{
"name": "scroll",
"version": "0.0.1",
"version": "0.0.2",
"description": "A function that animates an element’s scrollTop value.",

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

@@ -16,4 +16,4 @@ # scroll

target (number): the desired scrollTop position,
options (object): { duration, ease },
callback (function): fn(error, position)
[options (object): { duration, ease },]
[callback (function): fn(error, position)]
)

@@ -30,3 +30,3 @@ ```

scroll.top(element, 200, { duration: 1000 }, function(error, position) {})
scroll.left(element, 200, { ease: 'inBounce' }, function(error, position) {})
scroll.left(element, -200, { ease: 'inBounce' })
```

@@ -33,0 +33,0 @@

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc