Jump to content

Image Poster Block Hover

Recommended Posts

Site URL: https://prism-swan-send.squarespace.com/home

I'm using this code to display a hover colour and text on image poster blocks for desktop only, but for some reason the text is still displaying on mobile. Can anyone help please? TIA

https://prism-swan-send.squarespace.com/home

p/w interiors

//*Image Poster Block Hover Over*//
@media only screen and (min-width: 834px) {

.design-layout-poster .image-card-wrapper {
  visibility: hidden;
  opacity: 0;
  transition-duration: 0.5s;
}

.design-layout-poster:hover .image-card-wrapper {
  visibility: visible;
  opacity: 1;
  background-color:#787157;
}
}

 

Screenshot 2021-02-05 at 16.01.37.png

Screenshot 2021-02-05 at 16.01.46.png

Link to comment
  • Replies 2
  • Views 997
  • Created
  • Last Reply

Looks ugly on desktop..

image.thumb.png.f0f5a32029af3a493a171f052db24adf.png

Try this new code

/* Image poster hover */
.design-layout-poster .image-card-wrapper {
  visibility: hidden;
  opacity: 0;
  transition-duration: 0.5s;
}

.design-layout-poster:hover .image-card-wrapper {
  visibility: visible;
  opacity: 1;
  background-color:#787157;
}

 

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.