1.0.1 • Published 9 years ago

simple-scrolltop v1.0.1

Weekly downloads
368
License
ISC
Repository
github
Last release
9 years ago

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