Are you first timer at lazacode.org? Why not join us and start exchange your programming knowledge with everyone. Register today!

jQuery - scroll to hide and show element

0 votes
33 views
added Dec 18, 2019 in jQuery by lcjr Sergeant (2,120 points)
(function($){
    $(document).ready(function() {
      var scrolldownToView = $('.scrolldown-to-view');
      $(window).scroll(function() { 
          if (window.scrollY > 1) {
            scrolldownToView.fadeOut(400);
          } else {
            scrolldownToView.fadeIn(400);
          }
      });
         
    });
  })(jQuery);

 

Please log in or register to response this reference.

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...