jquery-scrollbottom

0.0.2 • Public • Published

scrollBottom

A direct opposite of jQuery's scrollTop() function.

Usage

Simply call this function on any jQuery selector as you would do normally.

The scrollBottom works as a direct opposite to the native scrollTop function.
Where scrollTop would get or set the number of pixels from the top of the selector to the top of the website, scrollBottom will get and set the number of pixels from the bottom of the selector to the bottom of the website.

$(window).scrollBottom();
// or...
$('my-selector').scrollBottom();
// or...
$(window).scrollBottom(200);

Readme

Keywords

none

Package Sidebar

Install

npm i jquery-scrollbottom

Weekly Downloads

0

Version

0.0.2

License

MIT

Unpacked Size

3.41 kB

Total Files

4

Last publish

Collaborators

  • justcarty