Тёмный

Hamburger Menu with HTML, CSS, and JavaScript / Cool Hover Effects with ::after and ::before 

Code And Create
Подписаться 16 тыс.
Просмотров 61 тыс.
50% 1

#html #css #javascript #webdevelopment #webdesign #programming #navbar #navigation
In this tutorial, you will be building a Hamburger Menu with HTML, CSS, and JavaScript
Join our SkillShare courses for free: bit.ly/42MoSjZ
SETUP FILES: github.com/lashaNoz/Hamburger...
Support the Channel - www.paypal.me/codeandcreate
Udemy courses:
10 Mega Responsive Websites with HTML, CSS, and JavaScript - www.udemy.com/course/10-mega-...
Front End Web Development Bootcamp - Build a Twitter Clone - www.udemy.com/course/front-en...
Git & GitHub - The Complete Git & GitHub Course - www.udemy.com/course/git-gith...
The Complete CSS Course - www.udemy.com/course/css-boot...
The Complete Bootstrap Course - www.udemy.com/course/bootstra...
The Complete SASS Course - www.udemy.com/course/sass-the...
The Complete JavaScript Course - www.udemy.com/course/the-ulti...
HTML, CSS, and JavaScript Course - www.udemy.com/course/html-css...
Follow us on Social Media:
Facebook - / codeandcreate2017
Twitter - / codeandcreateee
Instagram - / code_and_create

Наука

Опубликовано:

 

14 апр 2019

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 110   
@1godlessmonkey
@1godlessmonkey 5 лет назад
Another great video! These short and quick projects are gems. Thank you!
@jaya3688
@jaya3688 2 года назад
Watched this a year ago, and now that I am able to use javascript and css more, i realize how amazing your explanation is that I could understand it back then with almost no knowledge of both. Very dope! Thank you and Keep up the good work!
@gabrielm4979
@gabrielm4979 4 года назад
Im leaving you a big Like. You have no idea how much I learned watching this video. Thank you so much. God bless you
@jubairjubu4411
@jubairjubu4411 2 года назад
can you give me the source code sir ?
@danielegeraldino1358
@danielegeraldino1358 4 года назад
Sinceramente, um dos melhores tutoriais de menu retrátil. Me ajudou muito, obrigada.
@rauza2738
@rauza2738 4 года назад
one of the best tutorials i ever have seen
@kerryd2060
@kerryd2060 5 лет назад
Your Udemy courses on HTML & CSS are great. Going through the projects makes it earlier to learn.
@mashallaeinfachderhubsche9150
@mashallaeinfachderhubsche9150 3 года назад
Great Video! Everything was clear and shortly explained. Keep up this good quality :)
@alexwest9107
@alexwest9107 3 года назад
Thank you so much for this! You have no idea how much this has helped me!! You've earned yourself a subscriber.
@rhymekidstv
@rhymekidstv 4 года назад
I subscribed immediately. This tutorial has helped me. Thank you.
@CristianM
@CristianM 5 лет назад
Awesome and well explained tutorial. Thank you!
@EdoriReuben
@EdoriReuben 4 года назад
This helped me on a project. Really amazing, thank you.
@aldin3994
@aldin3994 4 года назад
Nice tutorial with great explanations, thumbs up👍🏻.
@bloket.
@bloket. 3 года назад
FIRST SECOND: ALRIGHT, TIME TO HIT THE BUTTON!
@bloket.
@bloket. 3 года назад
Also, I wish i could double like ... :(
@codeAlongwith
@codeAlongwith 3 года назад
Excellent this video goes through so many concepts I needed.
@isaacmarti3014
@isaacmarti3014 4 года назад
Good tutorial and vcery nice effects!! Thank you!
@lovingme6267
@lovingme6267 3 года назад
Well explained. Best tutorial ever. Kudos to you
@pepesito
@pepesito 3 года назад
Im so greatful, this video helped me a lot and i learnt so much from this, it was perfectly explained and the animations were so cool. Good Job!
@cnsnmy
@cnsnmy 4 года назад
Thank you very much for this video! It was very clean and simple!! Needed it!
@codeandcreate
@codeandcreate 4 года назад
Great to hear! Thanks a lot!!!
@xristosvasiliou3408
@xristosvasiliou3408 3 года назад
it looks great! thanks for sharing your knowledge!
@MrWayra11
@MrWayra11 3 года назад
You got yourself a new sub. Thank you very much !
@vergilkelley2378
@vergilkelley2378 3 года назад
Dude, just when I thought I was decent at css you throw in cubic bezier lol... well played, great vid!
@NBA6Fan
@NBA6Fan 3 года назад
Many things learned. Very nice job!
@kassms1585
@kassms1585 3 года назад
thank you SO much this was immensely helpful
@quocanhbach6696
@quocanhbach6696 4 года назад
when making the burger into the X shape, I have no idea where you can get the translate (-8px, 6px) for line 1 and translate (-8px, 6px) for line 3 from? Hopefully it was not a guess. Like how did you calculate the 8px and 6px?
@albertofreddo2249
@albertofreddo2249 4 года назад
It works perfectly, thank you so much :)
@jubairjubu4411
@jubairjubu4411 2 года назад
can you give me the source file Sir ?
@_artkov_
@_artkov_ 3 года назад
Thank you for this tutorial, hore you will reach the highest results on RU-vid
@AbdirahimAli10
@AbdirahimAli10 5 лет назад
nice tutorial and thanks teacher we are waiting more
@sunhapark9323
@sunhapark9323 4 года назад
It is super helpful Thank you so much
@suckilyify
@suckilyify 4 года назад
You are at the right point
@dynamitejetkid
@dynamitejetkid 3 года назад
Merci ! So cool and clear
@danishpoojari8306
@danishpoojari8306 3 года назад
Thank u bro . Its just awesome 😍😍
@aqibfayyaz1619
@aqibfayyaz1619 4 года назад
Thank you for the help
@kelvinclark3474
@kelvinclark3474 3 года назад
This is incredible👍
@agustinab7557
@agustinab7557 3 года назад
Oh i love it!!
@mostafael-abboubi4638
@mostafael-abboubi4638 3 года назад
Thank you soo much, it's an awesome video
@purnaniroshan
@purnaniroshan 3 года назад
Very well explained sir
@WoolioGamer
@WoolioGamer 4 года назад
Te amo velho
@user-zp1dv4yh5e
@user-zp1dv4yh5e 4 года назад
Hey, I need help, when I do "scaleX(0)" the lines don't disappear Can you reply quick!
@negin3408
@negin3408 Год назад
Awesome
@KrishnaManohar8021
@KrishnaManohar8021 3 года назад
Subscribed Thanks. Now I am looking your udemy courses.
@melfordbirakor
@melfordbirakor 3 года назад
Thanks Chief
@sanjeetprasad4470
@sanjeetprasad4470 3 года назад
Hi Every one. I have a question? How do we put images in our vs code images file to use for the website. I create the file on the vs code but not able to put picture in that from my PC.
@diwadpr
@diwadpr 3 года назад
You are AMAZING MEN!!!!!!!!!!!!!!!!!!!!!!!!! THANK YOU SOOO MUCH!!!!!!! GOD BLESS YOU :)
@codeandcreate
@codeandcreate 3 года назад
Thanks a lot!!!
@diasoralbekov6465
@diasoralbekov6465 3 года назад
omg this is so cool
@harmandhamija1
@harmandhamija1 3 года назад
Amazing tutorial but i am bit confused. How do u link .change class to menu class so that it changes it position of menu not anything else on an event.
@healthrik2732
@healthrik2732 3 года назад
Wow!!!!!!
@farhadcohan8867
@farhadcohan8867 2 года назад
Great video I like the way you explain every steps wish you would use different BKG it would be more clear and viewable how to not have when you click on menu you see X is showing like line dancing.do you any video about JS with example. Thank you
@sinasalahshour
@sinasalahshour 3 года назад
how does he move around tags like that? what is it's shortcut?
@ZaidIrfanKhan
@ZaidIrfanKhan 3 года назад
love you dawg
@andreivs2257
@andreivs2257 4 года назад
Nice
@user-zp1dv4yh5e
@user-zp1dv4yh5e 4 года назад
And in Github repo, the CSS, Js files are empty(i mean 0 lines of code)
@jeffreyjimenez3202
@jeffreyjimenez3202 4 года назад
Beautiful
@codeandcreate
@codeandcreate 4 года назад
Thanks
@gabrielm4979
@gabrielm4979 4 года назад
Hi man! Im trying to create a burger buttom like this. Its working perfectly but I need to add someting else on Javascript, the thing is that Im kinda new and i've no idea about javascript. I was wondering if you can help me. I need that when I clic on any element, the menu gets closed and the X turns back into a normal burger, same as when you clic on the X. Would you tell me the code lines I need to add on my css and js files to do so? Id really appreciate it
@codeandcreate
@codeandcreate 4 года назад
Hey Gabriel, we have a couple of videos about the hamburger menus where we use JavaScript. So, you can check out...
@willjardine7337
@willjardine7337 2 года назад
thank you so much
@johnzhang8762
@johnzhang8762 11 месяцев назад
i loved this..... was very helpfull but could you explain how those js callings worked
@Enriquemdmr
@Enriquemdmr 4 года назад
If you have problems shaping the “X” try: top line:“transform: translateY(7px) rotateZ(45deg);” and for the bottom line: “transform: translateY(-9px) rotateZ(-45deg);”
@philipreynolds5088
@philipreynolds5088 2 года назад
Perfect! I modified the bottom line to -8px but I really appreciated this comment. Translate() is hard to use haha
@anacarolinacruz2369
@anacarolinacruz2369 4 года назад
Thank you so much
@codeandcreate
@codeandcreate 4 года назад
Glad it helped!
@maxkalashnikov4749
@maxkalashnikov4749 3 года назад
Ohohoh....Nice))) Russian man on English speaking RU-vid! Awesome!😍 Respect, bro keep going on!😎😎👊👊👊
@codeandcreate
@codeandcreate 3 года назад
Thanks a lot. BTW not Russian but Georgian :)))
@maxkalashnikov4749
@maxkalashnikov4749 3 года назад
@@codeandcreate Hooouu...Georgian))Pretty nice), BTW you have cool accent, similar to russian, bro😎👊
@julietadallapozza4843
@julietadallapozza4843 2 года назад
pls help! i did all the same as you and i have a whitebackground color in navbar !!!
@healthrik2732
@healthrik2732 3 года назад
I dont know what happend i tried the same but the menu not remains clickable and kept hidden after appling right:-300px; in css
@user-ri4tu7yu4j
@user-ri4tu7yu4j 4 месяца назад
Loved your tutorial! I have almost successfully integrated this module into my website. Sadly, I am experiencing just one wee glitch… of course… and it's happening on only one page. On that page, a link that is meant to reveal accordion text is instead picking up a Facebook link within the nav-list. I adjusted the z-indexes to the nav-list and nav-bar to bring the intended link to the forefront, in vain. Your solution is so perfect in all other respects!! What am I missing!!
@yyydollars8456
@yyydollars8456 3 года назад
I just wanted to point out that animating position i.e right makes the animation way less smoother than animating transform: translateX(). Other than the that great tutorial
@michaelkogler5245
@michaelkogler5245 4 года назад
Good tutorial, but please set the finished files in github!
@pranitchavan4549
@pranitchavan4549 3 года назад
How to make the menu close when clicked outside of it?
@mikkaruru
@mikkaruru 5 лет назад
What about mobile view?
@vitoraguiar2394
@vitoraguiar2394 2 года назад
voce salvou vidas
@kevinfrancis2983
@kevinfrancis2983 4 года назад
Having minor issues with the Javascript code and it does not execute. Below is the code I'm using and the error. Code const menuIcon = document.querySelector (".hamburger-menu"); const navbar = document.querySelector(".navbar"); menuIcon.AddEventlistener("click", () => { navbar.classList.toggle("change"); }); Javascript Validator Lne Col Errors 1 1 'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz). 2 1 'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz). 4 38 'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6'). There is something i'm missing and having trouble solving my problem. Been a while since I learnt Javascript and I'm missing something. Probably something i'm overlooking and simple to fix. Any help would be appreciated. Code:
@sumitgurung8156
@sumitgurung8156 3 года назад
'try this mate... a' of addeventlister should be small, script tag should be inserted only after the nav elements...
@julietadallapozza4843
@julietadallapozza4843 2 года назад
is this responsive? if is not, could you explain how to make it? Thx!
@zdarofMERGAITES
@zdarofMERGAITES 4 года назад
right: 0 is not working at the end, but left: 1300px works just perfectly fine... why?
@sirdaryus
@sirdaryus 4 года назад
Did you set the position to "absolute"? I had similar problem and i solved just like that.
@diasoralbekov6465
@diasoralbekov6465 3 года назад
у меня в js добавляется к классу слово и из за этого я не могу применить класс который изменился помоги пожалуйста
@diasoralbekov6465
@diasoralbekov6465 3 года назад
madloba dzma
@VarunGupta7838
@VarunGupta7838 3 года назад
Make a responsive navbar with hamburger menu on small screen using javascript please 🙏
@bakhramlatikhanov4626
@bakhramlatikhanov4626 3 года назад
Nice video, but it doesn't work cause im doing something wrong. Could you please upload full code of html, js, and css. Thank you!
@sebastiancastanedameneses5101
@sebastiancastanedameneses5101 3 года назад
I don't understand why if I follow everything you do , mine does not work
@mikoajbuczek3194
@mikoajbuczek3194 3 года назад
same here
@business-hy3lb
@business-hy3lb 3 года назад
Where is the source code bro ? Great stuff btw :)
@mashallaeinfachderhubsche9150
@mashallaeinfachderhubsche9150 3 года назад
JS : const menuIcon = document.querySelector('.hamburger-menu'); const navbar = document.querySelector ('.navbar'); menuIcon.addEventListener('click', () => {navbar.classList.toggle('change'); });
@LordmkKING67
@LordmkKING67 2 года назад
his js didnt work for me , but yours did. Tysm man :D
@sxlxnhn
@sxlxnhn 2 года назад
das funktioniert nicht ey
@mashallaeinfachderhubsche9150
@mashallaeinfachderhubsche9150 2 года назад
@@sxlxnhn des hat aber mal funktioniert, sowohl bei mir als auch bei dem anderen Typen. Liegt wohl an dir 😂
@user-wz9qr6ki9v
@user-wz9qr6ki9v 3 года назад
круто!добавь русские субтитры!!! cool!add Russian subtitles!!!
@tkokflux6322
@tkokflux6322 3 года назад
can u help?
@l.0
@l.0 3 года назад
before and after don't work :(
@mashallaeinfachderhubsche9150
@mashallaeinfachderhubsche9150 3 года назад
CSS : * { margin: 0; padding: 0; } body {font-family: "Dosis", sans-serif } .container{ width: 100%; height: 100vh; background:linear-gradient (rgba(0,0,0,.4), rgba(148,48,48,.2),rgba(167,67,67,.4)); background: url(Bilder/Background.jpg) center no-repeat; background-size: cover; } .navbar { width: 300px; height: 100%; background-color: #262626; position: fixed; top: 0; right: -300px; display: flex; justify-content: center; align-items: center; border-radius: 20% 0 0 60%; transition: right .8s cubic-bezier(1, 0, 0, 1); } .change{ right: 0; } .hamburger-menu { width: 35px; height: 30px; position: fixed; top: 50px; right: 50px; cursor: pointer; display: flex; flex-direction: column; justify-content: space-around; } .line { width 100%; height: 3px; background-color: chocolate; transition: all 0.8s; } .change .line-1{ transform: rotateZ(-405deg) translate(-8px, 6px); } .change .line-2{ opacity: 0; } .change .line-3{ transform:rotateZ(405deg) translate(-8px, -6px); } .nav-list{ text-align: right; } .nav-item { list-style: none; margin: 25px; } .nav-link{ text-decoration: none; font-size: 22px; color: #eee; font-weight: 300; letter-spacing: 1px; text-transform: uppercase; position: relative; padding: 3px 0; } .nav-link::before, .nav-link::after{ content: ""; width: 100%; height: 2px; background-color: chocolate; position: absolute; left: 0; transform: scaleX(0); transition: transform 0.5s; } .nav-link::after{ bottom: 0; transform-origin: right; } .nav-link::before{ top: 0; transform-origin: left; } .nav-link:hover::before, .nav-link:hover::after { transform: scaleX(1); }
@tomasmatusek6292
@tomasmatusek6292 2 года назад
where is this class= change omg?
@SH-lt2iv
@SH-lt2iv 2 года назад
11:13
@soondar3187
@soondar3187 3 года назад
Checkout this playlist you will find almost every type of navbar ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-06UtXZo78ng.html
@jubairjubu4411
@jubairjubu4411 2 года назад
can you give me the source code sir
@mikoajbuczek3194
@mikoajbuczek3194 3 года назад
If JS wont work, try this: const menuIcon = document.querySelector(".hamburger-menu"); const hamburgerMenu = document.querySelector(".hamburger-menu"); const navbar = document.querySelector(".navbar"); menuIcon.addEventListener("click", () => { hamburgerMenu.classList.toggle("change"); navbar.classList.toggle("change");
@adityagautam4689
@adityagautam4689 Год назад
tysmm
@adityagautam4689
@adityagautam4689 Год назад
actually the problem with me was that you need to write the at the end of the body and not in the head
@ojassingh8313
@ojassingh8313 2 года назад
can you please send source code of javascript pleaseeeeeeeeeeeee
@eugenesukhoi7025
@eugenesukhoi7025 4 года назад
I feel dumb.
@bashayroor4986
@bashayroor4986 4 года назад
hi its nice with this information, i try to finalize but its show some wrong as bellow transition. if you can support that for me with great pleasure .. thanks .nav-link::before, .nav-link::after { content: ""; width: 100%; height: 2px; background-color: chocolate; position: absolute; left: 0; transform: scaleX (0) transition: transform 0.5s; }
Далее
ПАША СКАТИЛСЯ!? #shorts
00:23
Просмотров 375 тыс.
7 ways to deal with CSS
6:23
Просмотров 1,1 млн
How To Build An Animated Hamburger Menu With Only CSS
24:05
Любой звонок в AirPods
0:30
Просмотров 392 тыс.