I need know if element is on the sreen, or is it off the screen. How can I do that with jQuery ? For example if my element is out of screen it has attribute top: 3000px.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I don’t know what are you trying to do but probabily there’s a better way to do it.
Anyhow, you can see the position of the element and compare with the window boundaries.
Check this links to see how to do it: