When I Click menu the screen does not appear


#1

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

Hey this is my finished coding for te menu to step #5 yet when I Click menu the screen does not appear... I feel I have everything typed correctly so I'm stomped as to why its not opening the menu screen?


#5 open the menu
#2

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

instead of just .click, you have to put function too


#3

ohhhh..... that makes sense. lol. Ok. TY.


#4

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.