camwiegert/in-view

Accept single, or array of DOM elements

Frondor opened this issue · 0 comments

inView should make a second query to the DOM if have the element already in cache, somewhere in our script.

inView(document.body) | inView([document.body, document.querySelector('table')])