No Menu Change/What's wrong with my code?/ Where is the opening ( for the closed )


#1

My code seems to be correct. Though, the menu doesn't change. What's wrong with my code. Where's the opening ( character that is found in the code below? Why is it closed there? What's the logic?

var main = function() {

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

$('.menu').animate({

left: 'Opx'
}, 200);       

$('body').animate({
    
left: '258px'
}, 200);

}); <---- QUESTION - WHERE IS THE OPENING ( to this closed one ) Where here?

};

$(document).ready(main);


#2

@perfectdayforbananaf,
-1
You will have to change your

left: 'Opx'

into

left: '0px'


-2
As a parameter of your
icon-menu =click= Eventhandler

$('.icon-menu').click( );

you are providing a

function() {
           //Your animation
     }

thus you will have

$('item-menu').click(
                     function() {
                                 //Your animation
                     }
                      );