lazyview

Initialize a View Component related to a dom element when it enters the viewport. Or Lazyload images for example

Usage no npm install needed!

<script type="module">
  import lazyview from 'https://cdn.skypack.dev/lazyview';
</script>

README

lazyview

check if a dom component is inside the viewport and call a function and or add a class