creativelive / appear

execute callbacks when dom elements appear in and out of view
http://creativelive.github.io/appear/
MIT License
178 stars 43 forks source link

Hidden elements trigger appear #25

Open iatanasov-frt opened 5 years ago

iatanasov-frt commented 5 years ago

I have a hidden element (display:none) that's way below the fold. Although the element is not in the view-port appear is triggered on page load.

Calling getBoundingClientRect(): image

I think, that appear should not be fired for hidden elements.

iatanasov-frt commented 5 years ago

https://github.com/creativelive/appear/pull/26