Is there a way to trigger an event in jQuery when the client has an element in their viewport?
So for example lets say I select this element in jQuery:
$('#star')
Then immediately when that element is visible in the viewport I'd like to run an animation.
Any idea if there is a way to do this as I have checked the documentary at jQuery and I can't find an event that does this.
Thanks