Error in acceptance: "7. Close the menu"


#1

Problem has been resolved!


#2

Should be two independent handlers:

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

#3

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