Menu doesn't work on 8 Congratulations!


#1

This is my code:

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

$('.icon-close').click(function()
$('.menu').animate({
    left:"-285px"
}, 200);

$('body').animate({
    left: "0px"
}, 200);
});
$(document) .ready(main);

Please you help. It says that there is an Uncaught SyntaxError: Unexpected identifier...


#2

HI your click functions should be like that

$('.icon-menu').click(function() {

#here put all the .animate()
});

Do same for $('.icon-close')


#3

Thanks for the help!