Grow your CSS skills. Land your dream job.

Collapsing nav

  • # May 21, 2013 at 7:32 am

    I feel like this will be easy for anyone who knows slightly more than me.

    $(“#menu-toggle”).on(“click”, function(e) {
    e.preventDefault();
    $(“body”).toggleClass(“show-menu”);
    });

    This currently works fine. However what it shows is the .menu ul, which I would like to do a slidedown transition, and not sure how to go about adding it.

    Also if there is a way to remove the .show-menu when expanded back out to my break point (768px at the moment), it would be helpful to know.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".