I have provided the following code for responsive design. However, when I click the logo, it does not hide or show as expected.
.toggle-nav {
display: none;
}
.menu {
float: right;
}
// Additional CSS code here
<nav class="menu">
<ul class="menuLink">
<li> <a class="link-nav" data-scroll-nav="0"> HOME </a>
</li>
// More HTML code here
</ul>
<a class="toggle-nav" href="#">☰</a>
</nav>
Find the JSFIDDLE link for this code here.
The issue is that the menu does not hide initially and remains visible. The desired behavior is to have the menu hidden by default and then be able to toggle its visibility by clicking the logo. Any suggestions on how to achieve this?