Hey, I recently started working on a template without knowing much about coding. I came a long way but still need help on many things. Such as: I want to achieve transparent header effect while Iām at the top of my home page. When I scroll past the image on top, it should turn to a solid white. Also I need help with putting image behind the header. I am a newbie and appreciate any kind of help. Thanks.
hey, thanks for your reply. the thing is, i already have a header that is sticky so i only need it to be transparent then go solid white. I couldnt achieve this effect with the code you written. the header went up when I scrolled down, then came up when I scrolled up after I pasted the code you written. If you would like to try a bit more and help Iād happily share the whole code with you.
I am also working on trying to get my header transparent to solid white upon scroll and your solution worked well. However, the white header does not go the full width upon scroll. Do you know how to make it the full width?
Just wanted to ask how I can change the colour of my text when the colour reappears because it shows the text staying white.
my website is āst4rz.orgā if you were looking to see what I meant because it makes the header just the logo and shows no menu because it is all the same colour