use-scroll-to-2
Advanced tools
Comparing version 1.0.2 to 1.0.3
{ | ||
"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 |
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
7791