vue-check-viewport
v0.1.0
Published
A simple vue component which can check the element whether in the specail(`window` default) viewport
Downloads
3
Readme
vue-check-viewport
A simple vue component which can check the element whether in the specail(window
default) viewport
features
- Use IntersectionObserver first if the browser support.
install
$ npm i 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>