1.0.0 • Published 2 years ago

simple-react-scroller v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Scroller

An easy to use scrolling library for react.

Install

$ npm install simple-react-scroller

Quick Start

import { useScroller } from "simple-react-scroller";

const scrollTo = useScroller({y: 250, isSmooth: true});
scrollTo();

API

ArgumentTypeRequired?Description
ynumberNois the pixel along the vertical axis of the document
xnumberNois the pixel along the vertical axis of the document for
isSmoothbooleanNoSpecifies whether the scrolling should animate smoothly or instant