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

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

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

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.