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

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

Tyler Potts

3 года назад

108,640 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Izyk
Izyk - 10.09.2023 00:46

Great video

Ответить
Abi
Abi - 20.08.2023 16:05

why my bars of the hamburger menu are stacked on top?? any solution?

Ответить
Hanna Shevchenko
Hanna Shevchenko - 11.08.2023 14:49

Thank you for this video, helped me a lot! Very useful and clear explanation 👍🤓

Ответить
Conner Dassen
Conner Dassen - 11.08.2023 03:21

The three bars of the hamburger menu are stacked on top of each other no matter what, increasing the margin just moves them down

Ответить
Yuriy Zadorozhnyi
Yuriy Zadorozhnyi - 25.06.2023 12:44

Привіт з України ! Дякую тобі друже ! Thanks a lot ! Awesome !!

Ответить
CJ Sport
CJ Sport - 23.06.2023 23:44

I didn’t catch an explanation on ‘is-scrolling’

Ответить
Moosey
Moosey - 16.04.2023 11:47

Concise. Thank you!

Ответить
Hamdi Kurdi
Hamdi Kurdi - 13.04.2023 23:35

Hello, your vscode setup is really cool . Can you share it?

Ответить
One
One - 20.03.2023 02:31

It has copyright, or can i use It if i make modifications for My website ?

Ответить
Celebrity Lifestyle
Celebrity Lifestyle - 17.02.2023 17:05

I've just subscribed to your channel sir and I need a little assistance with this. If I could write you on your email address, I think that will help a lot.

That is, I need an Element on my webpage to automatically slide-in 3 seconds after user opens the page. Once user selects preferred item and it takes effect, the element slides-out automatically also.

It is also a pop up from the right-hand side of the page, but doesn't need a button to open or close. It slide-in automatically 3 seconds after user opens the page, user click on it and select preferred item, and slides-out after user select preferred item.

This element is 'Google Translate Element',
I want the slide-in/slide-out effect to be from the right-hand side of the page.

I've written a snippet of code which I'll like you to see. Thank you, Your God bless you a lot!

Ответить
Aleksandar Rasic
Aleksandar Rasic - 08.02.2023 19:13

GOSHHHHH u r amazing my friend. Well done !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Ответить
noxic.
noxic. - 06.02.2023 11:05

Thanks!

Ответить
Ji-Yeong Kim
Ji-Yeong Kim - 25.01.2023 17:57

Thanks for tip!

Ответить
Learner
Learner - 15.01.2023 16:03

What VS Code Theme are you using?>

Ответить
Felix Sowah
Felix Sowah - 04.01.2023 00:29

Thank you very much.👍 great work

Ответить
Mina Demian
Mina Demian - 02.01.2023 18:26

Great video, thanks!

Ответить
Utkarsh Verma
Utkarsh Verma - 01.01.2023 22:20

by far the best and the most simplest way of creating a slide-out nav menu thank you so so much!!!

Ответить
Sam Rad
Sam Rad - 29.12.2022 01:13

how is your logo and hamburger are still showing after you fully give the .mobile-nav a 100% height and width ??

Ответить
זכריה Zach Fenton פנטון
זכריה Zach Fenton פנטון - 08.12.2022 02:43

Awesome

Ответить
AKSHAT madan_0419
AKSHAT madan_0419 - 01.12.2022 11:04

im trying to make this in react but not working 😓

Ответить
Ayodeji Theo
Ayodeji Theo - 17.11.2022 15:30

Total bullshit. Time wasted. Nav doesn't work.

Ответить
Ash [GD]
Ash [GD] - 04.11.2022 13:31

actually you can't hover in mobile but you can by clicking it.

Ответить
Ash [GD]
Ash [GD] - 04.11.2022 13:21

i recommend using font-awesome for the bars!

Ответить
Gnomo Coder
Gnomo Coder - 28.10.2022 03:51

You Are The Boss!

Ответить
Learn with Timi🌱
Learn with Timi🌱 - 17.10.2022 00:45

Pls zoom in on the IDE next time, twas too tiny to watch

Ответить
knwr
knwr - 11.10.2022 00:18

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) ;
}

Ответить
skolotoi
skolotoi - 04.10.2022 13:14

awesome !! thank you

Ответить
thewandernation yt
thewandernation yt - 17.08.2022 13:28

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.

Ответить
Tipo Gráfico
Tipo Gráfico - 13.06.2022 23:36

how to add a slider on section banner in this code?

Ответить
Imran
Imran - 29.05.2022 17:50

Thank you big bro

Ответить
prod. getSturdy
prod. getSturdy - 18.03.2022 20:24

Me: writes down code
Him: "no, actually im gonna...."
Me: deletes the code

Ответить
wiNtersPista
wiNtersPista - 02.02.2022 17:06

Dude, best tutorial in responsive navbars!

Ответить
SauleR
SauleR - 02.01.2022 19:37

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?

Ответить
Catia Oliveira
Catia Oliveira - 30.09.2021 17:46

Tanks for your tutorial, you saved my life at 2 a.m, just a few hours before my presentation for a jury school 🎉 😍 👏🏼

Ответить
Asaf Rushiti
Asaf Rushiti - 14.08.2021 14:49

One of the best tutorial I found in YT<3 Thank You

Ответить
Crypto MJKJX
Crypto MJKJX - 02.08.2021 20:00

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

Ответить
Random Mosta
Random Mosta - 25.07.2021 20:55

100% clean operation

Ответить
Johnny Deymisson
Johnny Deymisson - 09.05.2021 06:53

Thank you tylerr, hugs from Brazil ♥

Ответить
TOTAL . TELUGU
TOTAL . TELUGU - 26.04.2021 16:06

hello your explaination is simply superb

Ответить
Gunjan Patil
Gunjan Patil - 13.04.2021 13:01

after giving postion: fixed; to the menu, my nav-links are not working??

Ответить
Deborah Okonkwo
Deborah Okonkwo - 20.03.2021 16:11

Hi, thanks for the video
Why did you use .hamburger:after and .hamburger:before , why not .bar:after and .bar:before instead?

Ответить
Joe Williams
Joe Williams - 07.03.2021 14:03

thanks dad xx

Ответить
fpl fpl
fpl fpl - 22.02.2021 23:34

how to enable this option to show the time when I was on a given line of code?

Ответить
Otepbergenova Madina
Otepbergenova Madina - 31.01.2021 14:13

thank you) this is awesome))

Ответить
Tech with Burgas
Tech with Burgas - 16.01.2021 09:55

Very nice video and example ! Great work and presentation again !

Ответить
Lucas An
Lucas An - 16.01.2021 02:17

Niceeee

Ответить