Currently, I am in the process of developing a Burgermenu that features a simple dropdown menu with no animations.
Recently, I attempted to implement a script that would cause this dropdown menu to fade in upon clicking:
<script>
$('span.nav-button').click(function(){
console.log("information: click!");
$(".burgermenu").fadeIn(500);
});
</script>
However, this has caused an issue where I am unable to close the menu as it tries to fade in every time it is clicked.
Is there anyone who can provide guidance on how I might modify this so that the class only fades in on the second click?