Answers for "bouton scroll en haut"

0

bouton scroll en haut

jQuery(document).ready(function() { 
    fadeMenuWrap(); 
    jQuery(window).scroll(fadeMenuWrap);
});

function fadeMenuWrap() { 
    var scrollPos = window.pageYOffset || document.documentElement.scrollTop; 
    if (scrollPos > 300) { 
        jQuery('div.scrollUp').fadeIn(300); 
    } else { 
        jQuery('div.scrollUp').fadeOut(300); 
    } 
}
Posted by: Guest on July-03-2021

Browse Popular Code Answers by Language