Is there a way to align the line to the right of the text when it's not selected, and have a new line appear on the left side that pushes the text and removes the line on the right side?
Here is the design I'm trying to emulate.
- If you click the menu on the referenced website and select a menu item, you'll notice the appearance of a left-sided line.
<nav class="col-12 primary__nav">
<ul id="Primary" class="menu">
<li id="menu-item-58" class="menu-item">
<a href="#" aria-current="page">Home —</a></li>
<!--The right side line slides away, and a new line appears from the left side upon clicking-->
<li id="menu-item-106" class="menu-item">
<a href="#">Our Projects —</a>
</li>
<li id="menu-item-59" class="menu-item">
<a href="#">— About Us</a> <!--appears from the left upon clicking-->
</li>
<li id="menu-item-112" class="menu-item">
<a href="#">News —</a>
</li>
<li id="menu-item-157" class="menu-item">
<a href="#">Contact —</a>
</li>
</ul>
</nav>