Since the hamburger menu has mostly gone away in favor of the sidebar, you migth want to rethink your question.
If you search “hamburger theme” you get a bunch of things (like Custom Hamburger Menu Links) that should give you some ideas.
Sharing your code that does almost what you want would give someone a way to help know what might be wrong.