How to change your navigation style on scroll

How to change your navigation style on scroll

Kevin Powell

5 лет назад

211,312 Просмотров

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


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

@WebDeveloper682
@WebDeveloper682 - 15.10.2023 13:09

perfect!

Ответить
@MARVTOBI-wz8qk
@MARVTOBI-wz8qk - 30.08.2023 06:54

Been battling on this for days now and just came across your channel... It's really helpful, thank you.

Ответить
@clpr635
@clpr635 - 14.06.2023 20:39

thanks

Ответить
@MegaPupizoid
@MegaPupizoid - 14.03.2023 05:03

Thanks you help me to learn Javascripts from scratch knowledge 😀

Ответить
@jamjam3448
@jamjam3448 - 08.03.2023 18:34

Thank you ☺️

Ответить
@smsmsmow4109
@smsmsmow4109 - 06.01.2023 18:34

how to make this effect only in home page .. and when click on shop get me navbar static color ... ( i work on project the header in page different from home page .. i just connect them with php .. so if i change the main style to header it will change every thing in all pages like shop and about us ) so is there any fix for this problem ??

Ответить
@johnryder8464
@johnryder8464 - 21.08.2022 15:08

I use three lines of js add and remove class no need for intersection observer.

Ответить
@danielChibuogwu
@danielChibuogwu - 09.08.2022 19:54

Thanks for this series

Ответить
@nuqtamedia1294
@nuqtamedia1294 - 15.06.2022 13:11

I just spent 3 hours trying to wrap my head around this with no results. Then I found your video and it all makes sense now! Thanks a ton!!!

Ответить
@royhyde8842
@royhyde8842 - 30.05.2022 14:01

That was a lot of fun

Ответить
@devine_noise
@devine_noise - 10.04.2022 20:03

Had some problems with Gulp CLI on my Windows machine. If you're running into an issue with 'gulp watch' not working, you can make the scss file a css file, delete the package.json, node_modules, package-lock.json, and just remove all "&" (&:after becomes .nav__link::after) in the css and replace it with the parent css class and use Live Server extension to get auto page reload in the browser. Clean up your curly brackets in the CSS and everything works. Thanks for making this Kevin, love your teaching style.

Ответить
@tux8345
@tux8345 - 31.03.2022 09:16

wow, you save my life!

Ответить
@jakemobley1835
@jakemobley1835 - 13.03.2022 03:04

Take a drink every time he says "I've a got another video for that subject already" and you'll be as drunk as i afgbnq

Ответить
@arvinrezayat3613
@arvinrezayat3613 - 07.03.2022 16:25

Has anyone told you that you speak very fast? :D

Ответить
@GiancarloCarccamo
@GiancarloCarccamo - 15.02.2022 23:40

great video

Ответить
@razerukat2134
@razerukat2134 - 09.01.2022 07:48

haha nice

Ответить
@philkewley
@philkewley - 02.01.2022 15:23

Every time I start a new project I find myself having to go back through your library of videos, gradually what I am learning is starting to stick, although I still struggle to remember even the most simple instructions! - one thing from this video, is how are you changing the background image in the big hero section, I swear every time I look at the video it's a different Unsplash image but I can't find how you're doing it within the CSS. Thanks as always for sharing

Ответить
@greysaga
@greysaga - 27.12.2021 05:13

thank you for this great tutorial!

Ответить
@mahvaree
@mahvaree - 18.12.2021 11:31

Thanks

Ответить
@HeyTylerMartin
@HeyTylerMartin - 03.12.2021 23:03

Are you only using CSS variables for demonstration purposes, or is there another reason you're choosing CSS variables over SASS variables when you're already using SASS? Still learning, just trying to wrap my head around it all 😅

Ответить
@suhrobmuboraksho
@suhrobmuboraksho - 03.12.2021 07:36

Thanks Kevin. Great tutorial!

Ответить
@majgajsek7818
@majgajsek7818 - 07.11.2021 19:13

Thank you good sir :D

Ответить
@muhammadraza2940
@muhammadraza2940 - 01.10.2021 21:56

Fantastic video! Really clean way to manage scroll events. Definitely my go to method now. Thanks a ton for this!

Ответить
@sofienebb
@sofienebb - 20.09.2021 16:00

Ya it cuming after three years, but you have helped me a lot, so thank you ;)

Ответить
@misterkilluminati6949
@misterkilluminati6949 - 12.09.2021 20:43

beautifully done

Ответить
@pallavisingh62
@pallavisingh62 - 11.09.2021 19:34

These videos are so helpful! Thank you for making them!

Ответить
@andersonalmeydat7715
@andersonalmeydat7715 - 07.09.2021 23:32

amigo eres mi héroe muchas gracias, pude cambiar totalmente el estilo del nav y hacer un super efecto, buen tuto!!

Ответить
@tarekjamanlabu9773
@tarekjamanlabu9773 - 27.08.2021 12:15

Finally figured it out, thanks 'The King of CSS' ❤️

Ответить
@k.jflacko5720
@k.jflacko5720 - 18.08.2021 00:44

This was really helpful!

Ответить
@whatthefunction9140
@whatthefunction9140 - 17.08.2021 10:05

Nice sass

Ответить
@kensleylewis
@kensleylewis - 13.08.2021 15:40

In connection to this great exercise, is it possible to a parallax effect with this technique (i.e. as you scroll down the page the background image scrolls slower)?

Ответить
@RyanEwanchuk
@RyanEwanchuk - 12.08.2021 02:27

Got a question for you. This works great, but it only works for one section. Let's say I have a bunch of sections with a class called "black-section" and I wanted the navigation to change every time it intersected with one of those sections, what code would I have to change?

Ответить
@DamianDemasi
@DamianDemasi - 12.08.2021 01:18

Great tutorial! Thanks!

Ответить
@AllenMarsam
@AllenMarsam - 09.08.2021 12:07

Thanks for your tutorial

Ответить
@rahibharoon7852
@rahibharoon7852 - 08.08.2021 22:48

Kevin Powell you great really like you videos it's very informative and technical and easy to understand for us. can we use intersection observer API in Reactjs?

Ответить
@rahibharoon7852
@rahibharoon7852 - 08.08.2021 22:48

Kevin Powell you great really like you videos it's very informative and technical and easy to understand for us. can we use intersection observer API in Reactjs?

Ответить
@utkarshkukreti239
@utkarshkukreti239 - 28.06.2021 22:30

Thank you so much. Great. Root margin concept was very sexy!

Ответить
@pauljohn3898
@pauljohn3898 - 26.06.2021 19:59

Ever wondered How this comes true and your video Help a lot!

Ответить
@Eben_Haezer
@Eben_Haezer - 26.06.2021 18:27

do you have any video on how to hide horizontal scrollbars that appear when vertical scrollbar appear. i don't know what i'm doing wrong

Ответить
@zachfenton608
@zachfenton608 - 05.06.2021 13:19

Perfect just was i was looking for, ill sleep and apply it to my site

Ответить
@sithumdasantha3147
@sithumdasantha3147 - 29.05.2021 16:09

Thanks Man 🤍

Ответить
@parahumanoid
@parahumanoid - 03.05.2021 20:40

Can this be done in CSS-only? Perhaps simpler, but scriptless nevertheless. Thanks.

Ответить
@xades971
@xades971 - 18.04.2021 12:41

Probably a silly question but how is that border on the nav elements made? Where it starts from the middle and stretches out to the end points. I'm looking through the repo but I can't seem to get my head around it

Ответить
@imrajat24
@imrajat24 - 15.04.2021 23:31

its not working in pages other than the homepage. Can anyone help ?
I mean its working in one of the many html pages of my website. How can I make it work in all the pages ? anybody?

Ответить
@emrysblack
@emrysblack - 13.04.2021 14:40

I would have used classList toggle, and passed in entry isintersecting bool to to keep code clean and tidy

Ответить
@abdillahsyafiq
@abdillahsyafiq - 31.03.2021 01:14

can't wait to implement this in my projects!

Ответить
@eUploads
@eUploads - 25.03.2021 06:08

Imagine if this became a CSS feature.
@intersection observer (*element to look for if is on screen*) {
CSS code
}

Ответить
@timhart6061
@timhart6061 - 23.03.2021 19:01

Hi! I was wondering where do u put transition on when u scroll back up? I put transition on the .nav-scrolled only so when i scroll down the transition works but when i scroll back up it just removes instant

Ответить