0.0.1 • Published 2 years ago
ashishk-ocean v0.0.1
Ocean
A notion API data parser for react.
Installation
npm install ashishk-ocean
or
yarn add ashishk-oceanUsuage
- Import the library into your file
import { useScroller } from "ashishk-ocean";- Initiailize the function and pass the scrolling arguments
which include
xand ayposition along with scroll behaviour.
const sc = useScroller({
x: 5,
y: 200,
isSmooth: true, // false by default
});- Call the function
sc();