Jump to content

How to create list image hover effects

Recommended Posts

Hi, 

I am trying to create a list item hover effect. I'd like all images to be black and white and turn back to color on hover. I'm using the following code, which is working for the black and white effect. However, it's not transitioning to color on hover. 

section[data-section-id="61f056b8625ae6798a21c5d0"]
 .list-item .list-image 
{filter: grayscale(100%);}
 .list-item:hover .list-image 
{filter: grayscale(0%);}

 

Finally, I'd also like the transition to be smooth, so maybe take half a second.

This is the website: https://biosymetricswebsite.squarespace.com/

Do you have any suggestions?

 

Thank you!

Link to comment
On 1/26/2022 at 5:10 AM, Yolandi said:

Hi, 

I am trying to create a list item hover effect. I'd like all images to be black and white and turn back to color on hover. I'm using the following code, which is working for the black and white effect. However, it's not transitioning to color on hover. 

section[data-section-id="61f056b8625ae6798a21c5d0"]
 .list-item .list-image 
{filter: grayscale(100%);}
 .list-item:hover .list-image 
{filter: grayscale(0%);}

 

Finally, I'd also like the transition to be smooth, so maybe take half a second.

This is the website: https://biosymetricswebsite.squarespace.com/

Do you have any suggestions?

 

Thank you!

Can you share the direct link to this page?

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. 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.