Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Collapsing nav

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #44929
    Jeager
    Member

    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)
  • The forum ‘JavaScript’ is closed to new topics and replies.