Skip to content

A plugin for Zepto to do shomthing when the document scroll to some position

License

Notifications You must be signed in to change notification settings

DakerHub/into-view

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A plugin for Zepto to do shomthing when the document scroll to some position

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published