JavaScript - How to Create a Responsive Hamburger Menu with HTML, CSS, & JavaScript
ฝัง
- เผยแพร่เมื่อ 13 ส.ค. 2021
- In this tutorial, you'll learn how to create a responsive hamburger menu using HTML, CSS and JavaScript.
Sponsor me on GitHub!
github.com/sponsors/miguelznunez
Follow my blog:
/ miguelznunez
Email : mignunez@csumb.edu
Medium : / miguelznunez
Codepen : codepen.io/miguelznunez
GitHub : github.com/miguelznunez
One of the best tutorials I have seen up until now in JS for a simple dynamic!
Even tho it's a simple topic, some people over complicate their tutorials so much, thank you!!!
Thanks for this! I searched all over for a simple, straightforward tutorial on making a collapsing navbar/hamburger menu like this, and yours is the best! I appreciate you getting straight to the point.
😅😅😅😅😅😅😅
In case anyone encounters an error with the JavaScript code not working, remove the script tag inside the tag and add it inside the body right before the tag. That way, the javascript code will be executed after the HTML Document has fully loaded. Your welcome!
Just use "defer"
Yup, that fixed my problem! Thank you!
hey bro in my case its not working . can u help me with that
@@baazigar5 hey bro in my case its not working . can u help me with that
@@trillionairemania7750check your js file name
Genuinely a really big help for my website. I had put off making a popup menu for so long because the last explanation I saw made my head spin. This was easy to digest and easily customizable. Big thanks.
Literally the best hamburger tutorial out there hands down. Took me forever to find one where I could understand. Bravo!!
stfu its not
You have got some way to deliver what no one else can in my many years or self learning. Thank you so much.
Hello and thank you ! This has helped me a lot. By far the cleanest tutorial and the best explanation. Thank you for giving us such a powerful content. Cant wait to see more from you !
I agree, I've looked at a few others and this is the best one so far. Really useful JS concepts in here too. Thanks Codefoxx!
Thank you sooo much. Been troubling myself with bootstrap all this while when I could have just made mine. This tutorial helped a lot ❤️
You don't know how much pain I had to make that thing work, and it never worked until I discover this video.
Thank you a lot.
Thanks these has been a very educative tutorial,has helped me as a student doing computer science ,simple brief and direct to the point
My guy, you helped me a lot in javascript, I had a problem with my Responsive Menu, I thank you immensely, because I solved my case, congratulations for the video.
The best video to make a responsive nav bar. Thanks for the video!
Best easy responsive menu tutorial I found after scrolling thro internet for an hour
Thank you very much for this tutorial. I am a beginner and it was really well explained which makes it easier to understand.
Thank you very much. I was struggling to make my navbar responsive, your video has helped me a lot. It was very easy to follow.
I've learnt alot since I subscribed to this channel, your videos are always comprehensive and precise.
Thanks you saved my life from hamburger hell, from now on you're my master you have my subscription.
This with hamburger and adding spans blew my mind till now i was just adding font awesome icons, this sure teaches u that you can do awesome things with only basics
very true
This was a great tutorial. I was looking for a simple way to add a hamburger menu and this was perfect. Nice and simple and clean. Thank you.
Absolutely
Probably one of the best 😂 stuff, the way you turned hamburger into cross. Appreciable 🌸✨👍
thankyou! was able to incorporate into my existing code easy and now everything looks so much cleaner to what i was doing before!
No problem, I got you
Yo man great tutorial, best one i've found so far.
Thanks man! I appreciate your all the efforts buddy! you cracked complicated matters in the simplest way. #respect
The best js tutorial that i have ever seen, thanks bro.
Thank you! This was super helpful.
Cheers man. Nicely put
Thank you, clear and step by step explanation. I was looking for this!❤❤
Thank you very much. Your video was the only one that I understood. I spent my entire weekend trying to learn this menu burger and could not understand it. Your video taught me!
Anytime, im glad i could help
Very simple, clear and straight forward. Yhanks a lot
Thank you so much for a brilliant tutorial!
this was really helpful. thank you for making it so simple for me
Great tutorial! You help me so much. This tutorial was it what i needed.
tysm, this helped me so much, cool vid bro keep up the good work
Making the cross was dope ...
You deserve more subscriber...
This video is awesome and so helpful! Little wonder it came tops in my search result.
Of the 1 million Menu tutorials I have seen this is the BEST
🙂
Simple and straight tutorial.. thank you..
Hello, you have an excellent way of explaining and your videos are on point and easy to understand !!!
Great stuff. Subbed!
Thank You, this tutorial was so easy to understand. 😁
Thank you so much. This really works. 👍
Such a good video man, Thank you!
Thanks man !!! , your video was awesome keep up the good work
Easy, and clean, thanks its a great tutorial
This is very helpful. Thank you for this!!
beautiful smooth menu, great job! thx for this video
Absolutely!
Greet tutorial, simple and clear.. many thanks for what you are doing man!
I appreciate it 🙏
Awesome tut, thanks a lot man
Super clear & brief tutorial - thanks a lot!
Man thank you so much. this has really helped me. ❤
was trying to figure out the js to close the hamburger on link click and found it in this video. Thank you!
Thankyou so much for this. You've earned another subscriber - great video :)
Thus is some great resources. Great work!!!!
thanks for this tutorial, it helps me a lot
Good tutorial man 🖤
Great video, well explained and demonstrated, easy to follow understand and implement because the tutorial is so well presented. Thanks! Was a great help.
thank you so much! this helped a lot
I ever seen this kind of clean explation video you made my day, but only thing we need to look into it when we have menu-links than we unable to scroll up & down I request you to check that please make a video on huge menu navigation bar sir....
Thank you so much for this tutorial!
This was a life saver. Trust me!😅
This video is very insightful... thank you a lot...I have learned so much from the video
Thank you this is so helpful
this is great video! thank you sooooo much!
Wow, this is an amazing tutorial
Great stuff. Subscribed. 🍻
Excellent! Thank-you
Wow. It could be this easy? Thank you so much. New subscriber here.
Great Video! This really helped me a lot!
Splendid video!! Kudos to you mahn. 😮😅
very helpful, thank you!
This is so amazing, thank you so much. It was so easy to follow and understand what you were doing.
Is it working?
@@lazy-hero. it doesnt work for me... (yes i inserted the script link at end of the body) . nav-menu dont appear after clicking on the burger!
If i saw this video earlier it could have saved a lot of time
amazing. thank you
Damn! You made this look a cake wake for us. New subscriber bro!!
Thank you so much for this information 💯🙏
looks awesome!
thanks, you enlighted me. it's really hard to find a clear explanation.
Excellent!
You've just save my life!!!
Thanks bro! Liked & Subbed.
Wow, it works!
Gracias✌
The best tutorial
You are a lifesaver
excellent ! thank you!
Solid tutorial
Hi, thank you very much! This video really helped me!!!!
I got you
Thanks for the video it really was helpful
Thanks for your tutorial it help me
Smart work
Thanks you so much you made my day
Great demo. I adapted this for my react site. Adding comment to boost your YT algorithm. :)
Awesome and than you
boost boost
Thanks good tutorial
Thank u sooooo much !!!
Thank you bro
Awesome, thanks! Liked and subscribed!
With the JS file I had to change nav-Menu class to navMenu for the mobile menu to work, and for the class .navbar, use justify-content: space-around, worked best for me to avoid adding padding. Overall great Vid, helped me to get my boiler plate with nav included, now I just change the CSS variables to modify the colors.
I just want to say that you are the shit!! Keep it up brother, you'll definitely grow on TH-cam doing this stuff, good voice, right pace, great and simple coding (no homo). I rarely comment. and even less subscribe! You earned the subscribe hands-down. I Look forward to seeing more content.
funny story, I spent 30 minutes trying to figure out why JavaScript wasn't working (first time with JS), just to realize that my dumbass didn't do the hamburger class on html, SMH.
peace!🤙
Beast!
Great video. With some modifications to the code you presented in the video I was able to make a responsive dropdown style menu.
what kind of modifications, if you would like to share? mine's not working
mine's not working too :( @@andersrammbraten5708
It was perfect))
Bravo!