Jump to content

Help me exclude area from hover state

Go to solution Solved by tuanphan,

Recommended Posts

I want to update this page so that the "team" section is the only one that has the b/w hover effect. Right now, it's also affecting the top slideshow area. I'm not sure what CSS to use to exclude just that top section. Or if maybe I should be approaching this a different way? Any ideas?

CSS I'm currently using:

//Bio Photo Rollover//
li.list-item {filter: grayscale(100%);} 
li.list-item:hover { filter: none;}

Thank you!

Edited by BHC
remove client info
Link to comment
  • BHC changed the title to Help me exclude area from hover state

You mean Key People Section? Use this new code

//Bio Photo Rollover//
.user-items-list-item-container[data-section-id="625f3f9aadede3156929916d"] {
li.list-item {filter: grayscale(100%);} 
li.list-item:hover { filter: none;}
}

 

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

@tuanphan that's awesome, thank you! Do you know if there's any easy way to reverse it so that I don't have to add a new section each time there is a new "team" section?

Edit to add: The idea being that one day, the client will manage this, and I'm not sure they'll be able to replicate it.

Edited by BHC
Link to comment
  • Solution
On 8/5/2022 at 11:21 PM, BHC said:

@tuanphan that's awesome, thank you! Do you know if there's any easy way to reverse it so that I don't have to add a new section each time there is a new "team" section?

Edit to add: The idea being that one day, the client will manage this, and I'm not sure they'll be able to replicate it.

You can change section width to 99% then use this code

[data-current-styles*='"customContentWidth": 99'] {
.content-wrapper {
width: 100%;
max-width: 100%;
}
li.list-item {filter: grayscale(100%);} 
li.list-item:hover { filter: none;}
}

 

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.