Program Skeleton Push Menu


#1

My Code is

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

When I do save and submit the code then it shows

Oops, try again. Add the line $(document).ready(main)

Whats the exactly problem it is


#2

Your code passes for me, refresh and try again


#3

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