Skip to content

fancyboynet/vue-check-viewport

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@iggfe/vue-check-viewport

A simple vue component which can check the element whether in the specail(window default) viewport

features

  1. Use IntersectionObserver first if the browser support.

install

$ npm i @iggfe/vue-check-viewport

usage

<ul>
    <vue-check-viewport tag="li" :class="{visited: item.visited}" v-for="(item, index) in list" @on-visible="onVisible(index)" @on-un-visible="onUnVisible(index)">{{ item.val }}</vue-check-viewport>
</ul>

About

A simple vue component which can check the element whether in the specail(`window` default) viewport

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •