diff --git a/lib/appear.js b/lib/appear.js index e96d197..d86acff 100644 --- a/lib/appear.js +++ b/lib/appear.js @@ -23,6 +23,7 @@ function viewable(el, bounds){ var rect = el.getBoundingClientRect(); return ( + !(rect.top === 0 && rect.bottom === 0 && rect.height === 0) && (rect.top + rect.height) >= 0 && (rect.left + rect.width) >= 0 && (rect.bottom - rect.height) <= ( (window.innerHeight || document.documentElement.clientHeight) + bounds) &&