2

This code works as expected on desktop but it doesn't work on mobile browsers

$(document).ready(function() {
    $(window).scroll(function() {
        if ($(window).width() < 690) {
            if ($(window).scrollTop() > 800) {
                $('.contact').fadeIn(500);
            }
            if ($(window).scrollTop() < 800) { 
                $('.contact').fadeOut(500);
            }
        }
    });
});
granch
  • 225
  • 3
  • 12
  • Similar question in [here](https://stackoverflow.com/questions/12225456/jquery-scrolltop-does-not-work-in-scrolling-div-on-mobile-browsers-alternativ) – granch Aug 07 '19 at 12:55

0 Answers0