Skip to content
Advertisement

Error with menu button toggle css js html

I would like to use part of this code from codepen on my website but the menu button does not currently work. I do not know what the problem is so I have not tried anything to solve it. The code works flawlessly on codepen but stops working when use in visual studio. The HTML code is:

JavaScript

The CSS:

JavaScript

And the JS:

JavaScript

Is there any way to fix this issue? Any help is appriciated!

Advertisement

Answer

Change you script as this:

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement