simple-scrolltop
v1.0.1
Published
A simple crossbrowser getter and setter of scrollTop
Downloads
9
Maintainers
Readme
Simple scrollTop
Hey, do you need a simple scrollTop method working like jquery's scrollTop() ? This is what you need. A crossbrowsing get and set scrollTop()
Usage
import scrolltop from 'simple-scrolltop';
// get
var currentPageScrollPosition = scrolltop();
// set
scrollTop(myNewScrollPosition);
Install
With npm do:
npm install simple-scrolltop