element-pixels-seen

How many pixels of an element has potentially been seen

Usage no npm install needed!

<script type="module">
  import elementPixelsSeen from 'https://cdn.skypack.dev/element-pixels-seen';
</script>

README

element-pixels-seen

A method for getting the number of pixels that have potentially been seen by a user.

build status Sauce Test Status modules status

npm badge

Usage

Pass an Element to the method to get the number of pixels that have potentially been seen.

elementPixelsSeen(document.getElementById('#foo'));

License

MIT