I have a list of blog posts and the number is reaching 25+ but it's all in the one page so I need to try and build a lazy loader.
I have tried various plugins but none are working
http://jsfiddle.net/tara_irvine/S9GGz/6/
http://jsfiddle.net/tara_irvine/S9GGz/9/
http://jsfiddle.net/tara_irvine/S9GGz/13/
Is there a way to check the top value of a div and if it's in view then a class is added so the div becomes visible (page load the div is hidden)
I have looked at these posts but after trying out various solutions none have worked for me.
How to check if an element is in the view of the user with jquery Position of Div in relation to the Top of the Viewport
If anyone can shed some light on this I would be very grateful. I don't know where I am going wrong.
Thanks very much