/scroll-bottom

Primary LanguageJavaScript

scroll-bottom

Calculate & return bottom position of the vertical scroll

Install

$ npm install scroll-bottom

Usage

Simply require and call it.

var scrollBottom = require('scroll-bottom')
var on = require('dom-event')

on(window, 'scroll', function () {
  console.log('scroll bottom =', scrollBottom())
})