Build a Mobile Hamburger Menu with HTML, CSS, and JavaScript

preview_player
Показать описание

HTML: 0:43
CSS: 3:40
JavaScript: 6:55

The devices people use to browse the web vary in size. We often want a website to look different on small devices (i.e., mobile phones) than on larger ones (i.e., computers). We see this concept illustrated by the frequent use of hamburger menus.

This beginner-friendly hamburger menu tutorial includes
♥ CSS Media Queries
♥ CSS Transitions
♥ JavaScript Toggle Function
♥ JavaScript Button
♥ JavaScript If statement
♥ JavaScript Event Listener
♥ CSS border-box
♥ HTML page set up
♥ Much more!

Music:
Title: Lost World
Рекомендации по теме
Комментарии
Автор

The first video that really helped me build a burger menu using JavaScript.

I'm not talking about today I watched this video in 2020

sulaimandev
Автор

Cool, and great seeing you again .... its been a while

charlesbaxter
Автор

Thank you for this super informative and easy to follow video!

chrisskjrvik
Автор

Cool. I found your comment on nick nimmins page.. And I absolutely love your channel and what you do. Peace. Love. Best wishes

vivamarketing
Автор

This is cool and very useful for a beginner to web development. I like it.

BTW what editor is that? And what is the cool looking combo counter?

gilbertotoledo
Автор

Great video! Question for you. After I click, when the burger menu is open and I resize the screen, the burger icon disappears but the menu (a) items stay open and take up the full width of the page. I have to refresh for the desktop version to kick-in. I'd like to be able to specify when the menu should collapse e.g. screen size changes, on scroll etc. Can you please advise how I can fix this?

sfwweb