Responsive Header Menu
I am working on a responsive menu and this is what I came up with:
https://gist.github.com/Sagar-Kap/abdbac1380f76cc36d3297ff9dead1b2
The only thing about this menu that is bugging me out is that I am using this piece of code to change the visibility of the menu buttons:
Is this acceptable in this case? is there a workaround?
1 Reply
Should I use
teleport
to solve this issue?
From what I read it is not a good practice to change anything in the Body element like I am doing in the above code.