Sounds like you want to create a dropdown menu.
Assuming you’re using bootstrap 5 with bootstrap icons:
- Make a dropdown menu.
Try out the code here: https://getbootstrap.com/docs/5.0/components/dropdowns/ (or from bootstrap 4 if you’re using that)
- Replace the text of the button with an icon
And replace the text “dropdown menu” given in the example code, with a hamburger icon or w/e you want exactly. Like:
<div class="dropdown">
<a class="btn btn-secondary dropdown-toggle" href="#" role="button" id="dropdownMenuLink" data-bs-toggle="dropdown" aria-expanded="false">
<i class="bi bi-list"></i>
</a>
<ul class="dropdown-menu" aria-labelledby="dropdownMenuLink">
<li><a class="dropdown-item" href="#">Action</a></li>
<li><a class="dropdown-item" href="#">Another action</a></li>
<li><a class="dropdown-item" href="#">Something else here</a></li>
</ul>
</div>
When I paste the above code into my project I get this:
Is this enough to get you going?