Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 341 Bytes

README.md

File metadata and controls

22 lines (15 loc) · 341 Bytes

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())
})