Yolandi Posted January 25, 2022 Share Posted January 25, 2022 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
Beyondspace Posted January 29, 2022 Share Posted January 29, 2022 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, Lightbox Studio pluginIf 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
Yolandi Posted January 29, 2022 Author Share Posted January 29, 2022 I was able to get the correct code from Tuan, see below! Add this CSS /* Team page image color on hover */ .user-items-list-item-container[data-section-id="61f056b8625ae6798a21c5d0"] li:hover img { filter: initial !important; } Thank you! tuanphan 1 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