I’m a bit of a newbie to javascript so I’m wondering if anyone can help please?
I’m trying to make a website header similar to the one on this website – https://therangesestate.com.au/. It only fades in when you scroll down.
Could anyone please tell me how to do this?
Thanks!
2
Answers
You can add styling into it
this is the basic example of header shows when you scroll on the website
Listen to the scroll event and add or remove a class based on how far the window has scrolled. Use that class to change the opacity of the header.