into-view

1.0.0 • Public • Published

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

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i into-view

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

32.5 kB

Total Files

7

Last publish

Collaborators

  • dakerplus