@dankolz/scroll-watch

1.0.0 • Public • Published

Scroll Watch

Watches elements and calls some code when they come into view

Instal

npm i @dankolz/scroll-watch

Usage

const ScrollWatch = require('@dankolz/scroll-watch')
let sw = new ScrollWatch('.project-box', {
	visibleBy: 300
})
sw.start()

By default, the handler code will add the class visible to the element.

Readme

Keywords

none

Package Sidebar

Install

npm i @dankolz/scroll-watch

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

3.14 kB

Total Files

3

Last publish

Collaborators

  • dankolz