Need option to exclude invisible elements
teohhanhui opened this issue · comments
Teoh Han Hui commented
Perhaps we can add an option to check whether an element is visible:
The simplest:
var isVisible = element.offsetWidth > 0 || element.offsetHeight > 0;
Or if we want to go full crazy: http://useallfive.com/thoughts/javascript-tool-detect-if-a-dom-element-is-truly-visible/