1.0.0 • Published 7 years ago
into-view v1.0.0
into-view
A plugin to do something when the document scroll to somepalce
Installation
Prerequisites:
- zepto 1.2.0 event fx / jQuery
NPM
$ git install --save into-view
Usage
import IntoView from './../index.js'
window.intoView = new IntoView()
intoView.whenScrollTo(200, function () {
console.log('yes')
})
intoView.whenIn($('#el1'), function () {
console.log('#el', this)
})
Props
Name | Type | Default | Description |
---|
License
1.0.0
7 years ago