1.0.0 • Published 6 years ago

into-view v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

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

NameTypeDefaultDescription

License

MIT