5/8 Won't work $('.menu').animate()


#1

For some reason it keeps telling me :
Oops, try again. It looks like the '.menu' didn't animate into the screen. Check your $('.menu').animate() function.
it's the exact same as the hint's example. it all looks right to me.

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

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

#2

The problem is with the

$(document).ready(main);

it's supposed to be a the bottom of the document it only says that in a hint. looked back and checked.