JoseG Posted January 24, 2021 Share Posted January 24, 2021 Site URL: https://corn-sphere-9exs.squarespace.com/ Hello, I'm using Image Card blocks as links. I set the image itself to be the button, so I set 'Image Link' to 'On Image' in the Design tab of the image block. I then set a hover effect which changes the image to grayscale with the following code: .image-block:hover img { filter: grayscale(100%); transition: all .2s ease-in-out; } This works fine, but the image goes to greyscale whenever I hover on any part of the Image Card - so even if hovering over the title or paragraph, the image is still on hover. I'd like to only have this effect when the cursor is over the image itself - aka the part where clicking actually redirects. Additionally, this should only happen on the Image Card block and not on other images. url: https://corn-sphere-9exs.squarespace.com/ password: help Thanks in advance! Link to comment
tuanphan Posted February 2, 2021 Share Posted February 2, 2021 Hi. Change this class name Quote .image-block:hover img to this Quote div.intrinsic:hover img JoseG 1 Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care 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