5: open the menu: what on earth?!?!


#1



Heres the problem (gif file): https://gyazo.com/3096519785d5f9a36b9d54ed60dff1d0

Heres the code, idk whats going on - its exactly the same as the code in the "hint" menu... tf?.

var main = function() {
    $('.icon-menu').click(function() {
    $('.menu').animate({
        left: '0px'
    }, 200);
    
    $('.menu').animate({
        left: '285px'
    }, 200);
    });
};

$(document).ready(main);


#2

this bit of code:

 $('.menu').animate({
        left: '285px'
    }, 200);
    });

you should animate body (not .menu) 285px to the right, to make room for the menu


#3

Thanks. I suffer from tunnel vision :smiley:


#4