@offactory/scroll-top
v1.0.3
Published
Function returns window top position in document.
Downloads
2
Readme
Scroll Top Position
Function that returns scroll position from top of document.
Install
install cli
npm install @offactory/scroll-top --save-dev
Usage
Import in file
import scrollTop from '@offactory/scroll-top'
Use
console.log( scrollTop() ) // returns number