SyntaxFix
Write A Post
Hire A Developer
Questions
You could use this for all devices,
$(document).on('scroll', function() { if( $(this).scrollTop() >= $('#target_element').position().top ){ do_something(); } });