Jump to content

Help With CSS Hover Effects / Pointer-Events

Go to solution Solved by tuanphan,

Recommended Posts

Posted (edited)

New to CSS. Basically, I have a text block over an image block. I have already added some hover effects to the image block (scale image on hover, remove overlay on hover) but I need those effects to also work when I hover over the text block (see screenshots below). Any help is much appreciated!

Note: the image also has a clickable link to another page on the website that I need to preserve as well.

Link to page: https://ray-bullfrog-j67x.squarespace.com/config/

Capture.JPG

SM - Square.png

SM - Square (1).png

Edited by ROBEX
Link to comment
  • Replies 4
  • Views 886
  • Created
  • Last Reply

Top Posters In This Topic

  • Solution

Try this CSS code (for second image: Vigorous..) you can repeat similar for other

section[data-section-id="662ab20033c1543cb5e61ae3"]:has(div#block-c595f14b94a2ab0c0b6d:hover, div#block-7864ff382074315b5be5:hover) div#block-c595f14b94a2ab0c0b6d img {
    transform: scale(1.15) !important
}

section[data-section-id="662ab20033c1543cb5e61ae3"]:has(div#block-c595f14b94a2ab0c0b6d:hover, div#block-7864ff382074315b5be5:hover) div#block-c595f14b94a2ab0c0b6d .fluidImageOverlay {
    opacity: 0;
}

 

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.