simple-scrolltop

1.0.1 • Public • Published

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

Package Sidebar

Install

npm i simple-scrolltop

Weekly Downloads

4

Version

1.0.1

License

ISC

Last publish

Collaborators

  • hellopath