Hello,
I used the below code to make the header of my website gradient.
.home #header_main {
background: linear-gradient(black, transparent);
}
This only applies to the home page.
When i scroll down i want the color of the header background to go back to the default color.
How can i do that.
Hey Tarek,
Would you mind providing a precise link to your site, showing the elements in question? We need to be able to inspect them in order to help :)
Best regards,
Jordan
Hello Jordan,
Thank you for your reply.
Below are the steps i took, you can see the result in the screen cast here http://screencast.com/t/QR3mjBgso
i created a transparent header for the home page and used the CSS (.av_header_transparency .logo img {display: none; }) to hide the logo on this page
– When you scroll down the logo appears
– i added a CSS to make the header area gradient instead of a solid colo (.home #header_main {background: linear-gradient(black, transparent);}
– when i scroll i want the header color to change to the default color or any color of my choice instead of having the gradient.
Thank you
Hi Tarek,
Thanks for the further explanation.
We need a link to you homepage so that we can inspect the element and assist with the code to make those changes. You can place the link in the private data section.
Best regards,
Jordan