Can't close menu


I'm in need of some help.
I've checked my code four times and found no errors and i get no error messages but the body won't close when i click on the x.

Please someone help me?

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

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


Hi @thebookpsycho,

Check your selector for .icon-close carefully :slight_smile:

Hint (click to view)

You need a dot (.) before icon-close, since you're trying to select a class, not an element


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