Jump to content

Hover over image effect for images in a List Section

Recommended Posts

Hi Team, I am hoping someone can help me out. I am looking to add some code that will replicate the "image hover over" effect so when mouse rolls over the image of each of the members of the team on the below page it changes to something else... where I am hitting the problem is that I have not used image blocks but a carousel list section (section[data-section-id="62565c2744baef4682e30985"])

Is there a way to do this via custom CSS? 

https://franklywrite.squarespace.com/franklysays
Password: FWwebsite&

 

Thanks in advance for your help! 

T

Edited by tillie
Link to comment
On 4/20/2022 at 8:45 AM, tillie said:

Thanks @WendyLW I am wanting to change the whole image and not just apply a filter to the current image in the list.  Perhaps this is a starting point I just wouldn't be 100% sure how to redirect to the new image on the hover. 

T

Add to Design > Custom CSS. Repeat similar for other images

/* Leaders image hover */
.user-items-list-item-container[data-section-id="62565c2744baef4682e30985"] {
.user-items-list-carousel__slide {
    pointer-events: initial;
}
li:nth-child(1):hover img {
    content: url(https://cdn.pixabay.com/photo/2022/04/03/22/05/buildings-7109918__340.jpg);
}
li:nth-child(2):hover img {
    content: url(https://cdn.pixabay.com/photo/2022/01/25/12/11/electric-kettle-6966011__340.jpg);
}
li:nth-child(3):hover img {
    content: url(https://cdn.pixabay.com/photo/2022/04/05/19/27/penguin-7114280__340.jpg);
}}

 

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.