Using jQuery, what is the easiest way to determine if a particular element is visible? I do not see visible in the current viewport, but on the page.
Ideally, a function should return false if the element or any of its ancestors has a CSS rule, for example display: none or visibility: hidden . No need to worry about overflow: hidden .
Timwi source share