Here is the site:
kotechweb.com/new_focus/page/proposal
Please notice that in left corner there is a menu button, I would like the button to slide and hide the menu if menu is open, on the other hand, if the menu is closed, slide in the button and show the menu.
The code is
var is_closed = false;
$("#menu_btn").on("click", function () {
if (is_closed) {
$("#menu_right ul").show("slide", {direction: "left"}, 1000);
$(this).show("slide", {direction: "left"}, 1000);
} else {
$("#menu_right ul").hide("slide", {direction: "left"}, 1000);
$(this).show("slide", {direction: "left"}, 1000);
}
is_closed = !is_closed;
});
However, right now the menu_btn is not animated properly; it does not slide, but only hides.
How to fix that?