Skip to content

Latest commit

 

History

History
26 lines (15 loc) · 485 Bytes

Readme.md

File metadata and controls

26 lines (15 loc) · 485 Bytes

scroll-hilo

Add .bottom and .top classes to document body when page is all the way up or down. Check out the live demo

Installation

Install with npm:

$ npm install scroll-hilo

API

require('scroll-hilo')();

document.body will have .top class when the top of the page is displayed and the .bottom class when the bottom of the page is displayed

License

MIT