Jump to content

krant

Member
  • Posts

    1
  • Joined

  • Last visited

krant's Achievements

  1. I needed to provide user feedback when the user rolled over an image link. I have the following code working and applied to the pages below. It animates and zooms when you roll over an image link. Turns out it's not actually just targeting image links but all images on the page I specify. I have a case now where I need this same effect applied to only two images on a page. I was thinking I could target the block but I have been able to get that to work. Below is the code that works on all images for a page but how would I specify an image block? I'm also using 7.0 which I think might be causing some headache. The password for the site is blue. This is the page I need help with. The two images at the bottom I need the same animate applied to. https://www.preciousdlovell.com/out-of-fashion //////////////////////////////////Enables mouse roll over animation to trigger on image that function as links/////// @media screen and (min-width:400px) { div#page-6477be4a35b94845761db86a, div#page-6477826fec115441f132584d, div#page-6477be61f1c18c5b69c248a0, div#page-6477b9da651d6f5f4cf7f8e6 { figcaption.image-card-wrapper { opacity: 1; z-index: 1000000000 !important; } .image-inset:after { content: ""; background-color: rgba(0,0,0,0.0); position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 9999; opacity: 0; } .image-block:hover img { transform: scale(1.2); transition: all 0.3s; } .image-block img { transition: all 0.3s; } .image-block:hover figcaption { opacity: 1; } .image-block:hover .image-inset:after { opacity: 1; }}}
×
×
  • 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.