D
D
Dmitry Lolikov2017-05-31 12:27:09
JavaScript
Dmitry Lolikov, 2017-05-31 12:27:09

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 openede3f5521917f0450f83c4ccdd99b6d201.png60896aa8883a41458663b02e9a7201d3.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Egor Zhivagin, 2017-05-31
@Lololishka

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

L
Leia Skovernikova, 2017-05-31
@Leia_Rukkola

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 question

Ask a Question

731 491 924 answers to any question