I have a div id="content".
Is it possible to do an action if a user see the id="content" ?
I answered a similar questions at horizontal scroll, detecting scroll position relative to anchors
You can also use a plugin if you are not too familiar with jQuery. The Appear plugin is great and easy to use. All you need to do is
$('#mydiv').appear(function() {
alert('Your div is in view');
});
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