Sidebar that closes and opens with a click on the hamburger icon

Hello Everyone,
I want to create a sidebar that opens and closes with a hamburger icon next to it and automatically adjusts the size of the navbar and content on the page next to it. Can anyone tell me how to approach this.
Any help is appreciated Thanks a lot

Hello @Lucifer,

You could have a look at this and pull out what you need.


More sources: