Happygirl1 Posted September 14 Share Posted September 14 Site URL: https://www.roccofortehotels.com/hotels-and-resorts/hotel-de-russie/ Hi Everyone. I am trying to find some custom code to create a hover affect for the entire header of a clients site. In this example, you can see when you hover over the menu, it changes from transparent to white, but also the font changes from white to black. https://www.roccofortehotels.com/hotels-and-resorts/hotel-de-russie/ Thank you in advance for your help! Link to comment
Lesum Posted September 14 Share Posted September 14 @Happygirl1 Hi! Can you share your site URL for context? If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. Sam Web Developer & Digital Designer ☕ Did you find my contribution helpful? Buy me a coffee? Link to comment
Happygirl1 Posted September 15 Author Share Posted September 15 Hi! The url is not live, building for a client, but this is what I am trying to create. https://www.roccofortehotels.com/hotels-and-resorts/hotel-de-russie/ I have built the header similar to this website with the header being adaptive with video. I have added color to the navigation so the menu items show, but I would either like to turn down the opacity or remove it all together if I can find a way to accomplish this. Thank you! Link to comment
tuanphan Posted September 18 Share Posted September 18 On 9/15/2024 at 6:30 PM, Happygirl1 said: Hi! The url is not live, building for a client, but this is what I am trying to create. https://www.roccofortehotels.com/hotels-and-resorts/hotel-de-russie/ I have built the header similar to this website with the header being adaptive with video. I have added color to the navigation so the menu items show, but I would either like to turn down the opacity or remove it all together if I can find a way to accomplish this. Thank you! You can use this to Website Tools > Custom CSS header#header:hover { background-color: #fff !important; } header#header:hover svg { fill: #000 !important; } header#header:hover a.btn { background-color: #fff !important; color: #000 !important; border-color: #000 !important; } header#header:hover div.header-nav-item>a { color: #000 !important; } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Happygirl1 Posted September 21 Author Share Posted September 21 This is perfect!!!!! Thank you so much!!! Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment