Answer the question
In order to leave comments, you need to log in
How to make a menu in javascript?
I want to make a menu through js (as on the google.com page) so that elements appear when opened
Answer the question
In order to leave comments, you need to log in
Layout an open menu, add display: none
to it Create a separate class with display: block
By clicking on the "Menu" button, add or remove a class with display: block from the menu
Good afternoon. First, try to figure out how the same menu works (google). The developer tools (F12) will help you with this. https://developer.chrome.com/devtools
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question