Double menu with jQuery [closed]

1

I would like to know how I make a menu similar to this site = > link , preferably using only jQuery and css VLWS!

    
asked by anonymous 13.12.2016 / 01:52

1 answer

1

To make this "second menu" effect, you can change CSS when the page position is greater than x .

With this jQuery:

$(window).scroll(function(){
    x = 100;

    if ($(this).scrollTop() > x){

        // Aparece com efeito de meio segundo e fixa no topo da pagina
        $('#cabecalho').slideDown(500).css({'position':'fixed'});
    } 
});
    
13.12.2016 / 02:07