@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