Account Deleted
Hi, the menu is nice; instead of change the image of the button, add two, one in the nav bar and another inside the menu, also add position: fixed
to avoid it disappear when scrolling.
You can achieve a vanish effect adding a transition to the opacity property of the element and change it with javascript in every click. If you have more question let me know.
Marked as helpful
@tyVespA
Posted
@FakeAstronauta Hi thank you for looking at my code! I don't think i'm changing the image, there are already two buttons in the nav.
I never thought about the scrolling when the menu is opened so thank you for making me notice! I fixed it by disabling scrolling when the menu is opened
I tried what you said about the opacity but is it possible to target a ::after
element trough javascript? I wasn't able to do it
Account Deleted
@tyVespA As I know all the pseudo elements like ::after
are not reachable, so you have to use an absolute div to darken the background