I've successfully implemented a feature where clicking on one of the 3 divs causes the main container to slide half away by 600px and reveal a new container with additional options. However, I'm facing an issue where after closing the new content, it doesn't slide again!
For a clearer demonstration, you can visit this link
Below is the HTML markup:
<aside>
<h1 class="lato blue">Getting Started</h1>
<ul id="menu_container">
<li id="show_newbus" class="show_hide green">NEW BUSINESS</li>
<li id="show_limited" class="show_hide amber">UMBRELLA vs LIMITED</li>
<li id="show_investigation" class="show_hide red">TAX INVESTIGATIONS</li>
</ul>
</aside>
<div class="main-inner lato blue-underline"></div>
<div id="#menu_newbus" class="new-business">
<div class="close-bt"></div>
</div>
<div class="why-ltd">
<div class="close-bt show_hide-2"></div>
</div>
<div class="investigation">
<div class="close-bt"></div>
</div>
Here's the corresponding CSS:
(CSS code here)
The JQuery implementation is as follows:
(JQuery code here)
If anyone has suggestions on how to fix this issue, I'd greatly appreciate it!