Animated Hamburger Menu Tutorial - CSS Effects

  Рет қаралды 508,224

codeSTACKr

codeSTACKr

4 жыл бұрын

👉 Become A VS Code SuperHero Today: vsCodeHero.com
🚢 Deploy for FREE on Vercel: vercel.com/ambassadors/codest...
Get the front-end roadmap for FREE to keep you on track!
courses.codestackr.com/66beed...
In this video, I'll show you how to make a cool animated hamburger menu with CSS. We will use a little JavaScript as well but it will be very simple.
Let me know what you think of this short and to-the-point video format. Would you rather me take more time to explain?
Code From This Video: github.com/codeSTACKr/hamburg...
_____________________________________
💻 Visit CodingPhase and get unlimited access to programming courses plus 20% 0FF!!
www.codingphase.com/codestackr
_____________________________________
🛠️ Tools I use:
🟠 Theme: marketplace.visualstudio.com/...
🟠 Font: STACKr Code (Exclusive to my VS Code Course - vsCodeHero.com)
🟠 SuperHero Extension Pack: marketplace.visualstudio.com/...
_____________________________________
💖 Show support!
PayPal: paypal.me/codeSTACKr
_____________________________________
Watch Next:
Web Development - Beginners Roadmap (2020) - • Web Developer Roadmap ...
Playlist: Web Development For Beginners - • Web Development - Begi...
_____________________________________
Connect With Me:
Website: www.codestackr.com
Twitter: / codestackr
Instagram: / codestackr
Facebook: / codestackr
_____________________________________
** Affiliate Disclaimer: Some of the above links may be affiliate links, which may generate me a sales commission at no additional cost to you.
#codeSTACKr #CSS #learntocode

Пікірлер: 454
@codeSTACKr
@codeSTACKr 4 жыл бұрын
Just hit 1000 SUBSCRIBERS!! Thank you all so much for all of the support!! Next up Learn Sass in 30 Minutes: kzbin.info/www/bejne/eHWyq5pqob2Wick 📚 My Favorite Web Design Books 📚 Web Design with HTML, CSS, JavaScript and jQuery Set by Jon Duckett (paid link) amzn.to/2JaiCL8
@abhishekva449
@abhishekva449 4 жыл бұрын
Hey, how u choose 35 as translate x and y value along with 45 deg rotation?
@techwithtalha9931
@techwithtalha9931 4 жыл бұрын
@Rashed Arman Still wrong, 75200+ subscribers
@goodluckcollection5663
@goodluckcollection5663 3 жыл бұрын
@@techwithtalha9931 still wrong 93.1k+
@kabirbatra
@kabirbatra 3 жыл бұрын
u mean 100k+
@CyroCoders
@CyroCoders 3 жыл бұрын
Actually 145k...
@SaSha-hb5rq
@SaSha-hb5rq 3 жыл бұрын
great tutorial. Btw in the javascript the function for the clip event you can just write: ...('click', () => { menuBtn.classList.toggle('open')})
@harrynguyen_03
@harrynguyen_03 2 жыл бұрын
ur a genius thank u!
@sumanhaloi5218
@sumanhaloi5218 Жыл бұрын
Damn ur good...
@d-dev888
@d-dev888 4 жыл бұрын
Thats actually what we need:short,clear and very effective thank you alot.
@patientson
@patientson 3 жыл бұрын
You are very clear when you describe and briefly explain. Thank you, strength and your experience. It gave me a new way of thinking about structuring and styling.
@MasudRana-nx4rf
@MasudRana-nx4rf 4 жыл бұрын
This is very effective. No time waste, just learn how it works.
@codeSTACKr
@codeSTACKr 4 жыл бұрын
Thank you for the feedback and support!
@AntonySimkin
@AntonySimkin 3 жыл бұрын
Man, indeed, this is a very compact, high quality and useful video! Great job!
@_AtharvaGandhe_MechA
@_AtharvaGandhe_MechA 2 жыл бұрын
bro i got "Uncaught Typeerror : menuBtn is null", can you guide me whats wrong
@TheDevilscrap
@TheDevilscrap Жыл бұрын
For me you got the point, no wasting time just pure content...GREAT JOB !!!!
@deja_vuu
@deja_vuu Жыл бұрын
This is probably one of the best Tutorials I've ever seen. Thanks for your good Video!
@rsawyer757
@rsawyer757 4 жыл бұрын
I dig it. No fluff or over-explaining. Hamburger looks great too
@codeSTACKr
@codeSTACKr 4 жыл бұрын
Thank you for your feedback and support!
@savioluis7431
@savioluis7431 4 жыл бұрын
I would like to thank you very much for the roadmap. looking forward to explore more on your blog and youtube videos to learn. Thank you very much for this one, I learnt a lot!
@codeSTACKr
@codeSTACKr 4 жыл бұрын
More to come!
@darpananeja4751
@darpananeja4751 3 жыл бұрын
Nailed it man! You are the besttt!!! WIll never forget this!
@soondar3187
@soondar3187 3 жыл бұрын
Checkout this playlist you will find almost every type of navbar kzbin.info/www/bejne/Zme4pYuQpJxrpMk
@computology2787
@computology2787 4 жыл бұрын
The pace is perfect! What you can offer for people is the source code so they can study by themselves along with the video. and you could make a Q&A for each video explaining. Not to have functional(working videos like this one) with theoretical. Great video!!
@codeSTACKr
@codeSTACKr 4 жыл бұрын
The source code for the video is in the description. Thank you for your feedback and support!
@Mr34Campbell
@Mr34Campbell 2 жыл бұрын
Really loved this quick and right to the point video format! And if I needed to I could just pause or slow down the video
@tiagomota4734
@tiagomota4734 Жыл бұрын
I wonder, if you dont know what these things are like transition, before and after etc... and you dont know anything about java script....you may be able to do this coz you litteraly copy everything but is there wsomething to actually learn from this other than the exact thing that the guy did ?! lol
@Exile_fx
@Exile_fx Жыл бұрын
Nice tuttorial buddy, i am now collecting nice navbars for my coding experiences and i will use this in my projects, thank you for nice video with all the explanation
@Glow0110
@Glow0110 2 жыл бұрын
LOVE to quick, straightforward, and impactful video brother!
@tasershoc
@tasershoc 4 жыл бұрын
Hi ! I have problems understanding adding :before and :after. Your other burger slices (top and bottom) only rendered after adding content: ' ' and positon: absolute. Can anyone explain why this is so? I'm also curious as to how you figured out the order with your transform on the ::before and ::after items. How did you work out that it should be rotate(45deg) first, then translate(35px, -35px)?
@bmehder
@bmehder 3 жыл бұрын
I love the quick how to format.
@aiktunchannel
@aiktunchannel 3 жыл бұрын
This is really helpful. Not just copy and paste, following your coding and I have learned how it worked. Thanks in Million!!!
@codeSTACKr
@codeSTACKr 3 жыл бұрын
Great to hear!
@ro1942
@ro1942 3 жыл бұрын
This is a great format codeSTACKr - simple & concise , exactly what l needed :-)
@codeSTACKr
@codeSTACKr 3 жыл бұрын
Glad it was helpful!
@ro1942
@ro1942 3 жыл бұрын
@@codeSTACKr :-D
@tomaslaranjeira6972
@tomaslaranjeira6972 Жыл бұрын
This was very to the point and easy to understand thanks
@pepepomada4664
@pepepomada4664 4 жыл бұрын
Great tutorial, right to the point and with the sourcecode too! 10/10 Thanks and I will subscribe waiting for more tutorials, there are not a lot of front-end channels that use vanilla javascript instead of jquery.
@codeSTACKr
@codeSTACKr 4 жыл бұрын
Thank you for your support! More videos on the way..
@noorainakbarshabbar5158
@noorainakbarshabbar5158 3 жыл бұрын
Thank you! This really helps.
@sorenayousefi
@sorenayousefi 2 жыл бұрын
One day i was impressed that how devs make this bottuns work,now i make them by myself. Thank u ,it worked
@soewaiyanaung9168
@soewaiyanaung9168 3 жыл бұрын
I want more videos like this. Short and effective.
@mibreit-photo
@mibreit-photo 4 жыл бұрын
Thanks a lot. That was very helpful and I directly implemented it on my homepage :-)
@codeSTACKr
@codeSTACKr 4 жыл бұрын
Fantastic!
@anthonysalameh3960
@anthonysalameh3960 3 жыл бұрын
dude this is perfect i just got what i was looking for and the explanation is very clear awesome job and no time wasted
@codeSTACKr
@codeSTACKr 3 жыл бұрын
Glad it helped!
@victoramorim7650
@victoramorim7650 2 жыл бұрын
Great video bro, helped me a lot!
@captaincustard2115
@captaincustard2115 4 жыл бұрын
Love the quick videos.....straight to the point and no time wasting 👍
@codeSTACKr
@codeSTACKr 4 жыл бұрын
Glad to hear it!
@islamibrahim8121
@islamibrahim8121 3 жыл бұрын
wow. this was really informative. like watching a crash course video. I've been searching for a hamburger menu that didn't use font awesome I wanted to know how to scale the menu down to navigation bar size.
@adeleke5140
@adeleke5140 3 жыл бұрын
thank you very much. It's succint and straightforward.
@Vincentvisuals
@Vincentvisuals 2 жыл бұрын
Nice and straight forward. Love it!
@OrincyWhyteDesigns
@OrincyWhyteDesigns 2 жыл бұрын
Awesome!!!! I hope there is a follow up video 🙂 connecting an actual menu
@timotheetiotsop698
@timotheetiotsop698 3 жыл бұрын
perfect speed keep up man!
@turkiothman9619
@turkiothman9619 4 жыл бұрын
I love it. Thank you. Keep the good work man. :D
@codeSTACKr
@codeSTACKr 4 жыл бұрын
Thank you!!
@jovannikolic6346
@jovannikolic6346 4 жыл бұрын
Awesome tutorial. I really appreciate this format, straight to the point. Thanks!
@sergiumalancea9672
@sergiumalancea9672 2 жыл бұрын
Very easy and simple for beginners, thanks man !
@bean217
@bean217 2 жыл бұрын
This was extremely helpful, thank you
@Frankslaboratory
@Frankslaboratory 4 жыл бұрын
Love hamburger animations like this
@codeSTACKr
@codeSTACKr 4 жыл бұрын
Thank you for your support!
@abahiduh3246
@abahiduh3246 Жыл бұрын
wow! this is brief and wonderful
@salahuddinhissam
@salahuddinhissam 3 жыл бұрын
thank you so much, very helpful and fast
@yogawithcarlos
@yogawithcarlos Жыл бұрын
Awesome. thanks. Instead of JS I used the with the tags to form the menu lines.
@yeasirarafat6925
@yeasirarafat6925 3 жыл бұрын
wow...really in the point!
@mahendrakumarraichur3409
@mahendrakumarraichur3409 2 жыл бұрын
It's so cooll...why didn't I stumble on this earlier 🥺? Thanks for the video❤️
@codeSTACKr
@codeSTACKr 2 жыл бұрын
Welcome!!
@torsteinstrand7096
@torsteinstrand7096 2 жыл бұрын
REACT Awesome tutorial, and nice and simple animation! For those of you wanting to implement this in React, you can simply use state for the menu button being open or not opened, and right before the if statement checking if the boolean is true or false (menuOpen), you perform a null-check. This is because when you reference the DOM-element called menu-btn, the first time it will be null until the DOM has rendered. This might be a very hacky solution, but it's the best one I could think of.
@carefree_ladka
@carefree_ladka 3 жыл бұрын
Just loved it man. Subscribed to your channel. Thanks for the video
@codeSTACKr
@codeSTACKr 3 жыл бұрын
Awesome, thank you!
@rashwanmohamed4545
@rashwanmohamed4545 2 жыл бұрын
thanks that's very helpful!
@ivang5
@ivang5 3 жыл бұрын
Great video, nice job! Just one thing, in js you don't have to use menuOpen boolean and then check if the value is true or false to add or remove class. You can just use "toggle" instead of "add" and "remove".
@victoramorim7650
@victoramorim7650 2 жыл бұрын
Thanks, that helped me a lot!
@shivarammuthukumaraswamy7164
@shivarammuthukumaraswamy7164 3 жыл бұрын
Thank you so much. Amazing tutorial.
@gottogaimes2868
@gottogaimes2868 3 жыл бұрын
Thanks much for the tut codeSTACKr!! Regarding the tut style: I have a good working knowledge of CSS so the fast pace in here was great. I am somewhat of a noob to Js and struggle a lot. So, if you make any Js related tuts in the future; I am one that would appreciate a more in depth explanation. Excellent vid though, both video and audio are stellar! Thanks again, I've subscribed.
@codeSTACKr
@codeSTACKr 3 жыл бұрын
Thank you for watching and the feedback!
@freddy7304
@freddy7304 4 жыл бұрын
This was an amazing tutorial ! thank you!
@codeSTACKr
@codeSTACKr 4 жыл бұрын
Glad you enjoyed it!
@jeymg
@jeymg 2 жыл бұрын
Reallly liked this fast and cool format! thanks a lot
@_AtharvaGandhe_MechA
@_AtharvaGandhe_MechA 2 жыл бұрын
bro i got "Uncaught Typeerror : menuBtn is null", can you guide me whats wrong
@jeymg
@jeymg 2 жыл бұрын
@@_AtharvaGandhe_MechA yes, give me your email so i can send you mine and sure i can help you.
@_AtharvaGandhe_MechA
@_AtharvaGandhe_MechA 2 жыл бұрын
@@jeymg bro no worries i solved it, the only problem was that i put tag above div.menu-btn, now that i have changed its location to below it, its working fine, but yeah thanks a lot i appreciate your reply 👍
@AgrabATC
@AgrabATC 4 жыл бұрын
Thank you for the vid and effort, but sorry to say that it was extremely quick!
@hupekyser
@hupekyser 3 жыл бұрын
thats what she said
@abdu9392
@abdu9392 Жыл бұрын
amazing, to the point & exact work. Thank you
@gnzlplcs
@gnzlplcs 3 жыл бұрын
Thanks, guys! This video saved my homework!
@adriangonzalez3469
@adriangonzalez3469 3 жыл бұрын
Awesome video! Now to see how I can use this with nav bar
@nikolaperjanica2126
@nikolaperjanica2126 4 жыл бұрын
Great video Bro... keep on doing this, you are doing absolutely amazing...can you do a video of making a whole website, step by step, example with all the problems that we can face while making a website,common and not so common problems and mistakes that people make, that wold be so awesome...but not a simple one, website with multiple pages and a little bit of JS, so it is a bit of a challenge... thanks for the amazing videos!!!
@codeSTACKr
@codeSTACKr 4 жыл бұрын
For sure. I have more advanced videos on the way 😁
@andykirk1612
@andykirk1612 4 жыл бұрын
Really well explained, understood it completely, bit of a Eureka! moment, thanks...
@codeSTACKr
@codeSTACKr 4 жыл бұрын
Glad it helped!
@timothybeaulieu1366
@timothybeaulieu1366 3 жыл бұрын
I'm trying to create a dropdown menu of links from this hamburger menu setup since that is the point for mobile/tablet. I havn't started learning javascript yet which is why I am struggling with this. Would the javascript stay the same or would this require another video going further? Where would the and fit into all of this for dropdown links and styling purposes with an animated hamburger menu? Otherwise, this video taught me a lot btw!
@marynakhomenko1369
@marynakhomenko1369 3 жыл бұрын
Thanks! you explained it perfectly in the right speed 🙏
@codeSTACKr
@codeSTACKr 3 жыл бұрын
You're welcome!
@abdinoorahmed44
@abdinoorahmed44 3 жыл бұрын
great video. thank you for your help.
@usmanchougule4654
@usmanchougule4654 4 жыл бұрын
Good stuff man! Keep it coming!
@codeSTACKr
@codeSTACKr 4 жыл бұрын
Appreciate it!
@DJxMaster2
@DJxMaster2 2 жыл бұрын
Wonderful video, helps a lot thanks!
@pratyushkumar7997
@pratyushkumar7997 4 жыл бұрын
Please continue to make such incredible short useful videos which are very helpful to make our website look fascinating. Thank You... fan of yours Request- Pls make a video explaining the ::before and ::after elements and also absolute and relative and how do they effect our webpage....would be really appreciative.
@codeSTACKr
@codeSTACKr 4 жыл бұрын
Those subjects are coming very soon 😁 Thank you for the feedback and support!
@abasiyat
@abasiyat 3 жыл бұрын
Thank you, well explained, easy and very useful. Thank again.
@codeSTACKr
@codeSTACKr 3 жыл бұрын
You are welcome!
@jeffbee6090
@jeffbee6090 3 жыл бұрын
Love it! I can watch your short & to the point videos and try it out!
@bokofineart
@bokofineart 3 жыл бұрын
this is beautiful. how do you add it into a bootstrap nav bar? it would be nice to replace the existing svg based hamburgers with something like this.
@bjarnieinarsson3472
@bjarnieinarsson3472 Жыл бұрын
Very good.. with code and alles!
@sskdev5116
@sskdev5116 3 жыл бұрын
This is a very effective way
@nykowow
@nykowow 4 жыл бұрын
Lenght of video is perfect, thanks!
@codeSTACKr
@codeSTACKr 4 жыл бұрын
Glad you liked it!
@kristofbalinth2071
@kristofbalinth2071 2 жыл бұрын
Suberb video, suberb format-thanks!
@ChrisEden_83
@ChrisEden_83 3 жыл бұрын
Hi - awesome tutorial, still finding my feet with CSS and animations, I was wondering how to go about reducing the space between the burgers? Because it's flex it takes the full height / width of the container? I'm on the scrimba front end course and doing my best to take it all in.
@ProgrammingwithPeter
@ProgrammingwithPeter 4 жыл бұрын
Greatly explained
@sushant_
@sushant_ 4 жыл бұрын
Content that matters only. Thanks Sir.
@sedoid
@sedoid 4 жыл бұрын
Simple and straight to the point! Nicely Done 👍
@DelwingManzueta
@DelwingManzueta 4 жыл бұрын
awesome - all of your content - keep it up man, i really appreciate your style - love the fast past btw
@famildoor
@famildoor 3 жыл бұрын
tnx . it was very good . keep up good work
@Inviso-code
@Inviso-code 4 жыл бұрын
That's very cool and usefull. Thank you for sharing the idea.
@babakdorani5914
@babakdorani5914 2 жыл бұрын
Super clean and nice
@HelloImFranky
@HelloImFranky 4 жыл бұрын
Quick how-to videos = premium life
@raulemilianomirandagutierr3313
@raulemilianomirandagutierr3313 3 жыл бұрын
Thanks!
@edsonjunior634
@edsonjunior634 Жыл бұрын
THANKS!
@devinbetsa9093
@devinbetsa9093 4 жыл бұрын
Fantastic video and explanation. Thank you very much!
@codeSTACKr
@codeSTACKr 4 жыл бұрын
Glad it was helpful!
@iagosoriano3734
@iagosoriano3734 3 жыл бұрын
Tat was great! Thanks a lot
@codeSTACKr
@codeSTACKr 3 жыл бұрын
Glad you liked it!
@andrewandrosow4797
@andrewandrosow4797 2 жыл бұрын
Thanks a lot! The good video!
@GauravSingh-sv5cw
@GauravSingh-sv5cw 3 жыл бұрын
Thank you!
@separatetraveler8226
@separatetraveler8226 4 жыл бұрын
Very effective and helpful content. Thanks.
@codeSTACKr
@codeSTACKr 4 жыл бұрын
Glad it was helpful!
@jesussinacento
@jesussinacento Жыл бұрын
thanks a lot!
@YMba-mt6iy
@YMba-mt6iy 11 ай бұрын
Very helpful Thanks !!
@dotsysdev4775
@dotsysdev4775 4 жыл бұрын
You are THE GUY !! Than you so much fast and well explained !
@scarlydesigns
@scarlydesigns 3 жыл бұрын
very cool, thanks for tutorial!
@codeSTACKr
@codeSTACKr 3 жыл бұрын
You bet!
@FirdavsiWebDev
@FirdavsiWebDev 4 жыл бұрын
I love that directly to the point. Thank you.
@codeSTACKr
@codeSTACKr 4 жыл бұрын
Thank you for your support!
@oscarchirinos1974
@oscarchirinos1974 3 жыл бұрын
Nice video! How do you caculate the px for translate property?
@dmytromoroz4451
@dmytromoroz4451 4 жыл бұрын
Magnificent lesson. Thanks a lot!!!
@codeSTACKr
@codeSTACKr 4 жыл бұрын
Glad you liked it!
@rehanashaikh3639
@rehanashaikh3639 4 жыл бұрын
hi, so how can i on clicking the hamburger button go to another page that for example shows me the about, contact, address details etc? meaning on clicking the button it'll take me to about ,contact and address as under an
@maiorov.m
@maiorov.m 3 жыл бұрын
this button serves another purpose, it's meant to indicate open state, for instance, mobile navigation
@BerlinUKn0w
@BerlinUKn0w 4 жыл бұрын
Nice format!
@codeSTACKr
@codeSTACKr 4 жыл бұрын
Glad you like it!
@uranium2342
@uranium2342 Жыл бұрын
Thanks bro
@altimatic2183
@altimatic2183 3 жыл бұрын
never done code in my life. this is complex! but so cool
@alexaaa1193
@alexaaa1193 4 жыл бұрын
thanks man!! it looks sick dude. 😎
@codeSTACKr
@codeSTACKr 4 жыл бұрын
Glad you like it!
@nielslytzdk
@nielslytzdk Жыл бұрын
Very cool tutorial, thanks a million 😁. How do you remove the middle line instead of animating it to the left when clicking?
@elephant_888
@elephant_888 4 жыл бұрын
Love the format! Straight to the point, but you also speak very clearly and explain things without rushing. I’d say you nailed it. 👌🏽👍🏽
@codeSTACKr
@codeSTACKr 4 жыл бұрын
Thanks!
Top 10 CSS One Liners That Will Blow Your Mind
13:34
developedbyed
Рет қаралды 923 М.
How To Build An Animated Hamburger Menu With Only CSS
24:05
Web Dev Simplified
Рет қаралды 104 М.
Nutella bro sis family Challenge 😋
00:31
Mr. Clabik
Рет қаралды 13 МЛН
Survival skills: A great idea with duct tape #survival #lifehacks #camping
00:27
Animating a Custom Hamburger Menu
16:25
Self Teach Me
Рет қаралды 5 М.
Pure CSS Hamburger Menu & Overlay
35:47
Traversy Media
Рет қаралды 398 М.
The Best UI Components that EVERYONE is Using!
54:06
codeSTACKr
Рет қаралды 132 М.
Бургер меню - просто. HTML + CSS + JS
22:34
Александр Дудукало
Рет қаралды 37 М.
Navbar CSS Tutorial: 3 Ways to Create a Navigation Bar with Flexbox
15:08
Basic, Intermediate & Pro animated hamburger icons
59:41
Kevin Powell
Рет қаралды 143 М.
Build a Slide out Hamburger Menu with HTML, CSS & JavaScript
16:27
Tyler Potts
Рет қаралды 112 М.
Animated Responsive Navbar with CSS - Plus Other Useful Tricks
11:40
WATERPROOF RATED IP-69🌧️#oppo #oppof27pro#oppoindia
0:10
Fivestar Mobile
Рет қаралды 19 МЛН
تجربة أغرب توصيلة شحن ضد القطع تماما
0:56
صدام العزي
Рет қаралды 54 МЛН
Телефон-електрошокер
0:43
RICARDO 2.0
Рет қаралды 428 М.
PART 52 || DIY Wireless Switch forElectronic Lights - Easy Guide!
1:01
HUBAB__OFFICIAL
Рет қаралды 52 МЛН
Мой инст: denkiselef. Как забрать телефон через экран.
0:54
Красиво, но телефон жаль
0:32
Бесполезные Новости
Рет қаралды 996 М.