@wbe/use-document-scroll-top
v2.7.1
Published
Get dynamic current document scrollTop.
Downloads
32
Readme
@wbe/use-document-scroll-top
Get dynamic current document scrollTop.
Installation
$ npm install -s @wbe/use-document-scroll-top
How to use
import { useDocumentScrolltop } from "@wbe/use-document-scroll-top";
// scrollTop returns dynamic document scrollTop value
const scrollTop = useDocumentScrollTop();
Returns
(number)
: current document scrollTop