Build a Slide out Hamburger Menu with HTML, CSS & JavaScript

  Рет қаралды 117,576

Tyler Potts

Tyler Potts

Күн бұрын

Пікірлер: 113
@utkarshverma3314
@utkarshverma3314 Жыл бұрын
by far the best and the most simplest way of creating a slide-out nav menu thank you so so much!!!
@TylerPotts
@TylerPotts Жыл бұрын
Glad it helped!
@knwr
@knwr 2 жыл бұрын
Very nice video. I looked around at a few and decided on this one to follow. Word of advice: when transforming the hamburger to an 'X', the translate operation is tough to work with because you are calling it after the rotation, so the translation axis rotates as well. These functions work in sequence, so it is easier and better results are achieved if you call the 'translate()' function first. The resulting code is simpler as well: .hamburger.is-active, .hamburger:before { transform: translate(0px, 11px) rotate(-45deg) ; } .hamburger.is-active, .hamburger:after { transform: translate(0px, -11px) rotate(45deg) ; }
@wiNtersPista
@wiNtersPista 2 жыл бұрын
Dude, best tutorial in responsive navbars!
@catiaoliveira6843
@catiaoliveira6843 3 жыл бұрын
Tanks for your tutorial, you saved my life at 2 a.m, just a few hours before my presentation for a jury school 🎉 😍 👏🏼
@TylerPotts
@TylerPotts 3 жыл бұрын
Glad I could help!
@getsturdy
@getsturdy 2 жыл бұрын
Me: writes down code Him: "no, actually im gonna...." Me: deletes the code
@asafrushiti5913
@asafrushiti5913 3 жыл бұрын
One of the best tutorial I found in YT
@TylerPotts
@TylerPotts 3 жыл бұрын
Wow, thanks!
@Yurusaii
@Yurusaii 2 жыл бұрын
actually you can't hover in mobile but you can by clicking it.
@aleksandarrasic4204
@aleksandarrasic4204 Жыл бұрын
GOSHHHHH u r amazing my friend. Well done !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
@TylerPotts
@TylerPotts Жыл бұрын
Thank you! Cheers!
@randommosta2489
@randommosta2489 3 жыл бұрын
100% clean operation
@mooseydev
@mooseydev Жыл бұрын
Concise. Thank you!
@TylerPotts
@TylerPotts Жыл бұрын
Glad it was helpful!
@Yurusaii
@Yurusaii 2 жыл бұрын
i recommend using font-awesome for the bars!
@johnnydeymisson1842
@johnnydeymisson1842 3 жыл бұрын
Thank you tylerr, hugs from Brazil ♥
@vinzanity68
@vinzanity68 Жыл бұрын
fascinating. thank you!
@TylerPotts
@TylerPotts 11 ай бұрын
Glad you enjoyed it!
@whyisthiscodenotworking
@whyisthiscodenotworking Жыл бұрын
thanks ! for the video loved it
@TylerPotts
@TylerPotts 11 ай бұрын
Glad you liked it!
@Blue_Pumpkin
@Blue_Pumpkin 11 ай бұрын
Thank you. So easy to do.
@ObjectiveRealityIsKing
@ObjectiveRealityIsKing 11 ай бұрын
Great video, thanks for sharing
@hardwired66
@hardwired66 3 жыл бұрын
Thank you tylerr ,❤️❤️❤️ this javascript features
@skolotoi4588
@skolotoi4588 2 жыл бұрын
awesome !! thank you
@TylerPotts
@TylerPotts 2 жыл бұрын
You're welcome!
@mikesalinas6245
@mikesalinas6245 7 ай бұрын
Esta chignon el sitio web, lo usare para mi trabajo... haber que tal queda.... gracias!!
@priyadharshinimuthukumar8970
@priyadharshinimuthukumar8970 Жыл бұрын
Thanks a lot sir...its really helped me to develop my website
@sauleRK
@sauleRK 2 жыл бұрын
can anyone tell me what did i do wrong? my hamburger menu works just fine, all the animations works... however there's no X sign when the menu is opened where could my mistake be?
@TylerPotts
@TylerPotts 2 жыл бұрын
Hey, Sauler. Sorry for that, I'm not sure how to help but if you want to join my discord I'm sure someone will be able to assist you! There's so many awesome friendly devs who help eachother out :D
@monicagarcia2592
@monicagarcia2592 2 жыл бұрын
I'm having the same issue, did you ever find the solution for this?
@Fkamynk
@Fkamynk 2 жыл бұрын
@@monicagarcia2592 I had the same issue but then I realized it's because the X was behind the mobile nav. You have to add a higher z-index than the mobile nav and set the position to relative on the ".hamburger.is-active:after " selection in CSS. So the code would be this: .hamburger.is-active:after { transform: rotate(50deg) translate(-3px, 2px); position: relative; z-index: 100; } .mobile-nav { position: fixed; z-index: 98; } I hope that helps 😄
@monicagarcia2592
@monicagarcia2592 2 жыл бұрын
@@Fkamynk Thank you SO much. I'm going to give this a try. Really appreciate you replying, i was going crazy trying to figure it out
@Fkamynk
@Fkamynk 2 жыл бұрын
@@monicagarcia2592 lmaoo same!
@felixsowah8209
@felixsowah8209 Жыл бұрын
Thank you very much.👍 great work
@TylerPotts
@TylerPotts Жыл бұрын
Thanks for watching, Felix!
@bl7937
@bl7937 3 жыл бұрын
Thank you for the tutorial. I'm a bit confused though as to why you would create a secondary nav tag below the header tag. Look at video time line 9:15. Can you explain why you did it that way?
@balkarangrewal3646
@balkarangrewal3646 2 жыл бұрын
It is for the desktop view.
@joeyywill1234
@joeyywill1234 3 жыл бұрын
thanks dad xx
@minademian
@minademian Жыл бұрын
Great video, thanks!
@TylerPotts
@TylerPotts Жыл бұрын
Glad you liked it!
@Jrizy.
@Jrizy. 5 ай бұрын
I know this is an older video, but I really like that theme. Does anyone know which one it is or is it custom?
@sh9vch9nk0
@sh9vch9nk0 Жыл бұрын
Thank you for this video, helped me a lot! Very useful and clear explanation 👍🤓
@omarruiz5423
@omarruiz5423 9 ай бұрын
After the menu buttons are clicked, does the menu slide back in?
@connerdassen7808
@connerdassen7808 Жыл бұрын
The three bars of the hamburger menu are stacked on top of each other no matter what, increasing the margin just moves them down
@moksh_plays5658
@moksh_plays5658 5 ай бұрын
thank your sir helps me a lot❤
@TylerPotts
@TylerPotts 5 ай бұрын
Glad to hear that
@ojoyemivhick4772
@ojoyemivhick4772 5 ай бұрын
@@TylerPottsGood day Tyler, I recently made use if your tutorial video for the vue js voice recognition application , it records and stuff, but doesn’t show text on screen
@letsplat__
@letsplat__ Жыл бұрын
What VS Code Theme are you using?>
@raptorvenom7983
@raptorvenom7983 Жыл бұрын
It's Synthwave'84
@burgasHoH
@burgasHoH 3 жыл бұрын
Very nice video and example ! Great work and presentation again !
@TylerPotts
@TylerPotts 3 жыл бұрын
Thank you! Cheers!
@gnomocoder2068
@gnomocoder2068 2 жыл бұрын
You Are The Boss!
@CaddekPhotos
@CaddekPhotos 11 ай бұрын
Question: How come my values on translates differs from yours? Does that have to do with the container and how that is styled combined with the position in the container? :)
@Imran-Desk
@Imran-Desk 2 жыл бұрын
Thank you big bro
@TylerPotts
@TylerPotts 2 жыл бұрын
You're welcome!
@mareksamofal3929
@mareksamofal3929 10 ай бұрын
thank you!
@stvnk1m
@stvnk1m Жыл бұрын
Thanks for tip!
@lance740
@lance740 Жыл бұрын
Great video
@nox2sweet
@nox2sweet Жыл бұрын
Thanks!
@abiatama
@abiatama Жыл бұрын
why my bars of the hamburger menu are stacked on top?? any solution?
@total.telugu5503
@total.telugu5503 3 жыл бұрын
hello your explaination is simply superb
@TylerPotts
@TylerPotts 3 жыл бұрын
Thanks!
@otepbergenovamadina6285
@otepbergenovamadina6285 3 жыл бұрын
thank you) this is awesome))
@bazeArttutorials
@bazeArttutorials 10 ай бұрын
good day, after applying you code, when i click on the hamburger it toggles open, but when i click on it the second time it doesnt close the menu, why is this sir?
@hamdikurdi
@hamdikurdi Жыл бұрын
Hello, your vscode setup is really cool . Can you share it?
@ethanq2648
@ethanq2648 Жыл бұрын
6:28 the code for the burger
@gunjanpatil5692
@gunjanpatil5692 3 жыл бұрын
after giving postion: fixed; to the menu, my nav-links are not working??
@danielfernandezjaime5014
@danielfernandezjaime5014 11 ай бұрын
THANK U!!!!!!!!!!!!!!!!!!!!!!!!!
@jakeochukoidamatie723
@jakeochukoidamatie723 2 жыл бұрын
followed every step to 8:47min and my hamburger doesn't transform, i don't know what could be wrong, someone please help.
@daedalus5070
@daedalus5070 2 жыл бұрын
Yep had the same issue and its one of two things: - Having the hamburger/cross as a button can add a "navigable" class by default so even though the JS is correct, the css never kicks in because the button becomes: ".hamburger .navigable .is-active" - 2nd can be hard to spot and sometimes easy to forget: .querySelector uses the css style class wheras 'toggle' doesnt. I had accidentally added ".is-active" instead of just "is-active" in the toggle. Hope that helps!
@HayWhy_Pappy
@HayWhy_Pappy 2 жыл бұрын
@@daedalus5070 still doesn't fix it for me. What could be the problem
@HayWhy_Pappy
@HayWhy_Pappy 2 жыл бұрын
Hey. How did you fix it ?
@ShivamKumar-vd1rb
@ShivamKumar-vd1rb 8 ай бұрын
why don't we use font-awesome for hamburger menu
@samrad6508
@samrad6508 Жыл бұрын
10:49
@samrad6508
@samrad6508 Жыл бұрын
how is your logo and hamburger are still showing after you fully give the .mobile-nav a 100% height and width ??
@ChromaticaCitizen
@ChromaticaCitizen Жыл бұрын
Yeah I was confused about that too! Mine gets completely blocked.
@knightingirl
@knightingirl 3 жыл бұрын
Hi, thanks for the video Why did you use *.hamburger:after* and *.hamburger:before* , why not *.bar:after* and *.bar:before* instead?
@ankishkhandelwal7588
@ankishkhandelwal7588 3 жыл бұрын
so you see in .hamburger the content is .bar to get three lines and in .bar their is no content means if we give .bar::after and .bar::before this will give only two lines may be that,s the reason
@TipoGraficoWeb
@TipoGraficoWeb 2 жыл бұрын
how to add a slider on section banner in this code?
@rangabharath4253
@rangabharath4253 3 жыл бұрын
Awesome
@indisholar
@indisholar 2 жыл бұрын
Thanks for the video, but i'm stuck here at the end. If I click a button in mobile nav menu, it don't take me anywhere. I think the navbar should go beck in the it should take me where I want.
@Bastian6071
@Bastian6071 Жыл бұрын
same for me. Have you found a solution yet?
@timifalode5152
@timifalode5152 2 жыл бұрын
Pls zoom in on the IDE next time, twas too tiny to watch
@AKSHATmadan_
@AKSHATmadan_ 2 жыл бұрын
im trying to make this in react but not working 😓
@fplfpl7890
@fplfpl7890 3 жыл бұрын
how to enable this option to show the time when I was on a given line of code?
@dontbetoxic4387
@dontbetoxic4387 3 жыл бұрын
git
@anon89461
@anon89461 3 жыл бұрын
Niceeee
@TylerPotts
@TylerPotts 3 жыл бұрын
Thanks 🤗
@yuriyzadorozhnyi3849
@yuriyzadorozhnyi3849 Жыл бұрын
Привіт з України ! Дякую тобі друже ! Thanks a lot ! Awesome !!
@ksriharsha2911
@ksriharsha2911 3 жыл бұрын
🔥❤️🔥❤️
@one9959
@one9959 Жыл бұрын
It has copyright, or can i use It if i make modifications for My website ?
@Bastian6071
@Bastian6071 Жыл бұрын
It's code. Code has no copyright
@one9959
@one9959 Жыл бұрын
@@Bastian6071 ok , i just wanted to use It on My website
@Bastian6071
@Bastian6071 Жыл бұрын
@@one9959 yeah you can do so
@cryptomjkjx4991
@cryptomjkjx4991 3 жыл бұрын
My mind was blown....holy shit I didn't you could do that this easily......I was fucking around with if statements when all I could do is classList.toggle. Also that is-active class damn thank you for this video
@AllanOrtegren
@AllanOrtegren 9 ай бұрын
Where is the indian accent >:(
@programmerrdai
@programmerrdai 3 жыл бұрын
2nd
@Anonymous-bhai420
@Anonymous-bhai420 Жыл бұрын
your accent is so much confusing😑
@danielalbert6834
@danielalbert6834 3 ай бұрын
Thanks!
@TylerPotts
@TylerPotts 3 ай бұрын
No Thank you! :D
@zachfenton608
@zachfenton608 2 жыл бұрын
Awesome
How Many Balloons To Make A Store Fly?
00:22
MrBeast
Рет қаралды 173 МЛН
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 40 МЛН
Одну кружечку 😂❤️
00:12
Денис Кукояка
Рет қаралды 2,8 МЛН
Build A Responsive Sidebar Menu in HTML, CSS, & Javascript - Beginner
30:16
Subtle, yet Beautiful Scroll Animations
5:04
Beyond Fireship
Рет қаралды 1,8 МЛН
How to build an accessible hamburger menu with HTML, SCSS & JS
13:25
Responsive Navbar Tutorial
13:35
Web Dev Simplified
Рет қаралды 508 М.
Navbar CSS Tutorial: 3 Ways to Create a Navigation Bar with Flexbox
15:08
Basic, Intermediate & Pro animated hamburger icons
59:41
Kevin Powell
Рет қаралды 147 М.
Build a Contact Form Page with HTML & CSS
25:47
Tyler Potts
Рет қаралды 7 М.
How Many Balloons To Make A Store Fly?
00:22
MrBeast
Рет қаралды 173 МЛН