JavaScript - How to Create a Responsive Hamburger Menu with HTML, CSS, & JavaScript

Поделиться
HTML-код
  • Опубликовано: 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

Комментарии • 309

  • @mary-hu3ff
    @mary-hu3ff 2 года назад +51

    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!!!

  • @adam3720
    @adam3720 Год назад +46

    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!

  • @thetr8r469
    @thetr8r469 5 месяцев назад +1

    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.

  • @nkanganthony9794
    @nkanganthony9794 11 месяцев назад +2

    You have got some way to deliver what no one else can in my many years or self learning. Thank you so much.

  • @evelyntelevision
    @evelyntelevision Год назад +7

    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.

  • @Coco-ii2pu
    @Coco-ii2pu Год назад +1

    Thank you sooo much. Been troubling myself with bootstrap all this while when I could have just made mine. This tutorial helped a lot ❤️

  • @naidenlambev4929
    @naidenlambev4929 2 года назад +27

    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 !

    • @edwardwilson4272
      @edwardwilson4272 2 года назад

      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!

  • @teenytinytoons
    @teenytinytoons Год назад +8

    Literally the best hamburger tutorial out there hands down. Took me forever to find one where I could understand. Bravo!!

    • @tmm476
      @tmm476 15 дней назад

      stfu its not

  • @solitarycreations
    @solitarycreations 15 дней назад

    Thank you! Nice, clean and easy to follow!

  • @sorane8910
    @sorane8910 10 месяцев назад

    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.

  • @rulleywanjau6498
    @rulleywanjau6498 2 года назад +3

    Thanks these has been a very educative tutorial,has helped me as a student doing computer science ,simple brief and direct to the point

  • @JhonnyBueno
    @JhonnyBueno 2 года назад

    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.

  • @ashwinsaxena4734
    @ashwinsaxena4734 19 дней назад

    The best video to make a responsive nav bar. Thanks for the video!

  • @joshuamichael845
    @joshuamichael845 Год назад

    I've learnt alot since I subscribed to this channel, your videos are always comprehensive and precise.

  • @premierleaguematches4307
    @premierleaguematches4307 2 года назад

    The best js tutorial that i have ever seen, thanks bro.

  • @JC-hb2ob
    @JC-hb2ob 2 года назад +3

    Thank you very much for this tutorial. I am a beginner and it was really well explained which makes it easier to understand.

  • @mrahmancad
    @mrahmancad 2 года назад

    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.

  • @akshaykhatri2027
    @akshaykhatri2027 2 года назад +3

    Probably one of the best 😂 stuff, the way you turned hamburger into cross. Appreciable 🌸✨👍

  • @trevormadden4301
    @trevormadden4301 2 года назад +1

    Cheers man. Nicely put

  • @sabrinashamsiddinova7691
    @sabrinashamsiddinova7691 Год назад +1

    Best easy responsive menu tutorial I found after scrolling thro internet for an hour

  • @KozenDGray
    @KozenDGray 2 года назад +1

    Yo man great tutorial, best one i've found so far.

  • @vendettamalize7209
    @vendettamalize7209 2 года назад +2

    Thanks you saved my life from hamburger hell, from now on you're my master you have my subscription.

  • @elvirakopstala6519
    @elvirakopstala6519 2 года назад +2

    Thank you! This was super helpful.

  • @wawananggana5129
    @wawananggana5129 2 года назад

    Simple and straight tutorial.. thank you..

  • @leroymokobi2928
    @leroymokobi2928 10 месяцев назад

    Very simple, clear and straight forward. Yhanks a lot

  • @user-ch9ep2ol9r
    @user-ch9ep2ol9r 11 месяцев назад

    Thank you so much for a brilliant tutorial!

  • @giulia6930
    @giulia6930 3 месяца назад

    Thank you, clear and step by step explanation. I was looking for this!❤❤

  • @tomcox8801
    @tomcox8801 Год назад +1

    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.

  • @hannahsaseun2381
    @hannahsaseun2381 Год назад +1

    this was really helpful. thank you for making it so simple for me

  • @sayantandey4708
    @sayantandey4708 2 года назад +1

    Making the cross was dope ...
    You deserve more subscriber...

  • @3reinaldo
    @3reinaldo Год назад

    Easy, and clean, thanks its a great tutorial

  • @kzhang3835
    @kzhang3835 2 месяца назад

    Thank you so much. This really works. 👍

  • @prashantmishra5691
    @prashantmishra5691 3 месяца назад

    Great stuff. Subbed!

  • @dktk7
    @dktk7 2 года назад +1

    Thank You, this tutorial was so easy to understand. 😁

  • @henriquepinheiroxavier
    @henriquepinheiroxavier Год назад

    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!

    • @codefoxx
      @codefoxx  Год назад

      Anytime, im glad i could help

  • @MrBrady95
    @MrBrady95 Год назад +1

    Awesome, thanks! Liked and subscribed!

  • @kunoichikun
    @kunoichikun 2 года назад +1

    thankyou! was able to incorporate into my existing code easy and now everything looks so much cleaner to what i was doing before!

    • @codefoxx
      @codefoxx  2 года назад +1

      No problem, I got you

  • @goergops9593
    @goergops9593 2 года назад

    Awesome tut, thanks a lot man

  • @eliasmailosson9547
    @eliasmailosson9547 2 года назад

    Such a good video man, Thank you!

  • @rakibhasan9401
    @rakibhasan9401 2 года назад

    Thanks man! I appreciate your all the efforts buddy! you cracked complicated matters in the simplest way. #respect

  • @nnejiben
    @nnejiben Год назад

    This video is awesome and so helpful! Little wonder it came tops in my search result.

  • @xanny3690
    @xanny3690 2 года назад +1

    Good tutorial man 🖤

  • @vagabondideas9685
    @vagabondideas9685 Год назад

    Excellent! Thank-you

  • @ocel1416
    @ocel1416 2 года назад

    Great tutorial! You help me so much. This tutorial was it what i needed.

  • @daniellozano6908
    @daniellozano6908 9 месяцев назад

    excellent ! thank you!

  • @urosmalic7818
    @urosmalic7818 2 года назад +2

    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

    • @T25de
      @T25de 2 года назад

      very true

  • @hamzanakan629
    @hamzanakan629 2 года назад +1

    thanks for this tutorial, it helps me a lot

  • @NiceChange
    @NiceChange 8 месяцев назад

    Thus is some great resources. Great work!!!!

  • @martienvliet8812
    @martienvliet8812 2 года назад +1

    tysm, this helped me so much, cool vid bro keep up the good work

  • @_heyise
    @_heyise 8 месяцев назад

    This is very helpful. Thank you for this!!

  • @Justhue
    @Justhue 7 месяцев назад

    Thank you this is so helpful

  • @jamesdeske4327
    @jamesdeske4327 Год назад

    Of the 1 million Menu tutorials I have seen this is the BEST

  • @enssahfayiamomoh8410
    @enssahfayiamomoh8410 Год назад

    This video is very insightful... thank you a lot...I have learned so much from the video

  • @aminul.islam.
    @aminul.islam. 4 месяца назад

    amazing. thank you

  • @obadayahya6176
    @obadayahya6176 8 месяцев назад

    Thanks man !!! , your video was awesome keep up the good work

  • @roberttanasie5943
    @roberttanasie5943 2 года назад

    Hello, you have an excellent way of explaining and your videos are on point and easy to understand !!!

  • @promiseuka
    @promiseuka 2 года назад

    Wow, this is an amazing tutorial

  • @Rain_berries
    @Rain_berries 2 года назад +1

    Man thank you so much. this has really helped me. ❤

  • @superrnaah
    @superrnaah Год назад

    was trying to figure out the js to close the hamburger on link click and found it in this video. Thank you!

  • @fannienatourz
    @fannienatourz Год назад

    Thank you so much for this tutorial!
    This was a life saver. Trust me!😅

  • @simasgradeckas4259
    @simasgradeckas4259 2 года назад +3

    Super clear & brief tutorial - thanks a lot!

  • @muhammadakram1701
    @muhammadakram1701 Месяц назад

    The best tutorial

  • @hajarahmed304
    @hajarahmed304 10 месяцев назад

    thank you so much! this helped a lot

  • @mcpeko5773
    @mcpeko5773 11 месяцев назад

    Great stuff. Subscribed. 🍻

  • @Aalii6
    @Aalii6 Год назад

    very helpful, thank you!

  • @mahdigholami3916
    @mahdigholami3916 Год назад +1

    Greet tutorial, simple and clear.. many thanks for what you are doing man!

    • @codefoxx
      @codefoxx  Год назад

      I appreciate it 🙏

  • @theshelbypalace
    @theshelbypalace 10 месяцев назад

    this is great video! thank you sooooo much!

  • @MrOrganicz
    @MrOrganicz Год назад

    Great Video! This really helped me a lot!

  • @kiimkeophukdee8031
    @kiimkeophukdee8031 Год назад +1

    You've just save my life!!!

  • @gatocode316
    @gatocode316 Год назад

    looks awesome!

  • @klaasjanssen644
    @klaasjanssen644 2 года назад

    beautiful smooth menu, great job! thx for this video

  • @graybab
    @graybab Год назад

    You are a lifesaver

  • @jaysworldtv4472
    @jaysworldtv4472 2 года назад

    Thank you so much for this information 💯🙏

  • @ff0x
    @ff0x 2 года назад

    Thankyou so much for this. You've earned another subscriber - great video :)

  • @photoinshot1355
    @photoinshot1355 6 месяцев назад

    Great video, well explained and demonstrated, easy to follow understand and implement because the tutorial is so well presented. Thanks! Was a great help.

  • @LightJackKirin
    @LightJackKirin Год назад

    Splendid video!! Kudos to you mahn. 😮😅

  • @jakob6123
    @jakob6123 Год назад

    Solid tutorial

  • @JimKernix
    @JimKernix Год назад

    Excellent!

  • @giulia6930
    @giulia6930 7 месяцев назад

    thanks, you enlighted me. it's really hard to find a clear explanation.

  • @jagannathps
    @jagannathps Год назад

    If i saw this video earlier it could have saved a lot of time

  • @ravitejadarla3882
    @ravitejadarla3882 Год назад

    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....

  • @deeeera
    @deeeera 2 года назад +1

    Wow. It could be this easy? Thank you so much. New subscriber here.

  • @ZikreMustafaSAW
    @ZikreMustafaSAW Год назад

    Smart work

  • @andreapretorius873
    @andreapretorius873 Год назад

    This is so amazing, thank you so much. It was so easy to follow and understand what you were doing.

    • @lazy-hero.
      @lazy-hero. Год назад

      Is it working?

    • @arthurradium5823
      @arthurradium5823 Год назад

      @@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!

  • @jamesenrique648
    @jamesenrique648 2 года назад

    Wow, it works!
    Gracias✌

  • @Bigkcee
    @Bigkcee Год назад

    Thanks for the video it really was helpful

  • @spiritualforce
    @spiritualforce Год назад

    Damn! You made this look a cake wake for us. New subscriber bro!!

  • @GabbyBrucebru
    @GabbyBrucebru 2 года назад

    Thanks for your tutorial it help me

  • @adrianCoding
    @adrianCoding Год назад

    Thanks good tutorial

  • @myclassroom1649
    @myclassroom1649 2 года назад

    Thanks you so much you made my day

  • @PRINCEDAKSHWEB_WIZARD
    @PRINCEDAKSHWEB_WIZARD 8 месяцев назад

    Thank you bro

  • @lil-gen
    @lil-gen Год назад +1

    Thank u sooooo much !!!

  • @him_nshu5269
    @him_nshu5269 Год назад

    Thankyou so much working for me

  • @bLitzKinG20
    @bLitzKinG20 Год назад

    Thanks bro! Liked & Subbed.

  • @farukweb
    @farukweb Год назад

    excellent tutorial.

  • @user-zw6fx5ro4y
    @user-zw6fx5ro4y 2 года назад +1

    Hi, thank you very much! This video really helped me!!!!

  • @seand6906
    @seand6906 Год назад

    Bravo!

  • @Brightangel001
    @Brightangel001 Год назад

    Thanks!

    • @codefoxx
      @codefoxx  Год назад

      Absolutely, thank you !

  • @zezeseshill3032
    @zezeseshill3032 4 месяца назад

    thank you

  • @microhandsltd
    @microhandsltd 2 года назад

    A great video, I thank you. I'm studying IT at University and this has inspired me to go that extra bit.