08.04.2024, 15:04
I can't extract a snippet of code because it adapts specifically to my project, but basically I put an image object on the page as background of the menu, then created a css class with the updated position of the object to move it outside the border of the page when the menu is "collapsed" and toggled it via javascript whenever i need to (for example when I click a specific button).