Submitted almost 2 years ago
My first Grid Layout Solution in Mobile and Desktop
@gainzaviana
Design comparison
SolutionDesign
Solution retrospective
How can I dark the page when the burger menu is active?
Community feedback
- @KathrynDavies123Posted almost 2 years ago
Hi Reivaj,
I achieved the background color when the burger menu is open by having a div container over the entire screen (adjust the z-index if you need to, so it is "behind" the nav menu), that has the required background color. I gave it opacity 0 and then when the menu is open, added into my function that a new class should be given to it with a higher opacity so that it shows up. I also added a transition to it so that it looks a bit smoother.
Hope this helps!
Kathryn
0@gainzavianaPosted almost 2 years ago@KathrynDavies123 Thank you! I will try your advice. :)
0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord