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

use-scroll-to-2

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

use-scroll-to-2 - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

2

package.json
{
"name": "use-scroll-to-2",
"version": "1.0.2",
"version": "1.0.3",
"description": "Scroll to React elements with custom timing function support",

@@ -5,0 +5,0 @@ "files": [

@@ -71,5 +71,5 @@ # useScrollTo

```jsx
import { bezier, useScrollTop } from "use-scroll-to-2";
import { bezier, useScrollTo } from "use-scroll-to-2";
useScrollTop({
useScrollTo({
duration: 600,

@@ -92,3 +92,3 @@ easing: bezier(0.42, 0, 0.58, 1),

```jsx
useScrollTop({
useScrollTo({
duration: 600,

@@ -105,3 +105,3 @@ offsetTop: (dir) => (dir === -1 ? 50 : 0), // -1 -> going up, 1 -> down

```jsx
useScrollTop({
useScrollTo({
duration: 600,

@@ -108,0 +108,0 @@ offsetTop: (dir) => (dir === -1 ? 50 : 0), // -1 -> going left, 1 -> right

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