I'd like to be able to know if a node is visible and rendered on screen. As far as I know, there are at least 3 standard and easy ways of making HTML nodes not visible:
opacity: 0
;display: none
;visibility: hidden
.I could check for just these three, but I'm afraid people can get creative when it comes to ways of hiding contents:
So I was wondering if there is a standard way of determining if a node is rendered to the screen. I'm pretty sure all major browsers determine it for themselves to accelerate drawing, so maybe it's somehow exposed.
You might try using jQuery's :visible
modifier.
http://api.jquery.com/visible-selector/
Unfortunately, I'm fairly sure that doesn't take into account any of the "tricky" cases that you are talking about.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With