Push Menu not animating



In the previous lesson, my code was accepted (though I tried to click icon-menu and it did not move). I continued to the next lesson to see the corrected code, but it is the same and the menu is still not moving. My instructions tell me to click the menu button to see it move, and then notice how it won't close, but it won't open either.

My code is below.

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



Hi @athys,


You're selecting the <body> tag incorrectly. The dot (.) in front of it indicates an element with the class="body" attribute, but you want the <body> tag. Change that line to just $('body'), and your code should work :slight_smile:


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