with jquery, what’s the best way to determine if an element is below the fold meaning it’s also not in the window and not visible to the user?
Thanks
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 assume you’re referring to whether or not it has been scrolled out of view.
If so, try this:
Example: http://jsfiddle.net/8x4Zd/
(Click the result panel to test if the targeted element is in view. Then scroll down and repeat.)
If you want to make sure the entire element is in view, then add its
.height()into the equation.Example: http://jsfiddle.net/8x4Zd/1/