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