Skip to content

TyroneYvesChen/viewArea

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ViewArea 判断可视区域(常用于css3动画)

请用_viewArea.js,该文件为原生版本,jq版本后续会更新

{
    moveInOffset: 0,    //dom移入可视范围时判断的偏移量
    moveOutOffset: 0,  //dom移出可视范围时判断的偏移量
    eventWait: 300,     //节流触发时间间隔,默认300ms
    inFn: function (element) {
     //移入可视区域callback
    },
     outFn: function (element) {
     //移出可视区域callback
    }
}

About

判断可视区域

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published