1
Opa,
I got a div on the side sidebar_right, when scrolling the page it should go to the footer fixed, I am using so:
    $(function () {
    var jElement = $('#sidebar_right');
    $(window).scroll(function(){
        if ( $(this).scrollTop() > 700 )
        {
            jElement.fadeIn(500);
            jElement.css({
                'position':'fixed',
                'top':'60%',
                'z-index':'999',
                'width':'100%',
                'left':'0',
                'overflow':'scroll',
                'height':'300px',
            });
        }else{
            //jElement.fadeOut(500); Não usado
            jElement.css({
                'position':'relative',
                'top':'auto',
                'overflow':'hidden',
                'height':'auto',
                'z-index':'999',
            });
        }
    });
});
It works normally, but without the effect fadein, the fadein only occurs when I add the fadeout, down in the else. I can’t add the fadeout, Yeah, it’s the same div.
What’s wrong with it?
Hey, buddy, I added the
jElement.hide(0);, when moving the scrool the div disappears and reappears several times– sNniffer
Is it possible to add a type of css fade when scrolling down scrool ?
– sNniffer
It would have a test page for me to see. The fade even has in css already the scroll never seen.
– Bruno Romualdo