Not a crazy fast sub menu reveal with jQuery

I’ve got a vertical mobile menu, where I have a sub menu. I’m using jQuery to reveal it, and a function .toggleClass. The problem that it happens instantly, and tremendously fast. Is there a way to do it in a more subtle way? Give it a timing option.

jQuery script added. Sorry, didn’t add the markup, cause I think everyone understands what I’m talking about.

jQuery(function(){
  jQuery(".burger__nav-link_click-item").on("click", function(){
    jQuery(".burger__nav-wrap_hidden-menu").toggleClass("open-menu");
  });
});

Read more here: Not a crazy fast sub menu reveal with jQuery

Leave a Reply

Your email address will not be published. Required fields are marked *