Jump to content

Hide Background Hover on Mobile View

Go to solution Solved by Beyondspace,

Recommended Posts

Site URL: https://pierrekaram.com/

Hello everyone,

I need some help with my website. I would like to disable the background hover effect only for the mobile view on my website. (so prevent the background image changing when you simply touch it with your finger). Could someone help me with that? Thanks for your help

The password is pierrekaram00

Edited by pierrekaram
Link to comment
  • Solution
11 hours ago, pierrekaram said:

Site URL: https://pierrekaram.com/

Hello everyone,

I need some help with my website. I would like to disable the background hover effect only for the mobile view on my website. (so prevent the background image changing when you simply touch it with your finger). Could someone help me with that? Thanks for your help

The password is pierrekaram00

You can try the following code

/*prevent hover effect on mobile*/
@media only screen and (max-width: 767px) {
  #collection-6169c831ec5ab773cfc058ad .portfolio-hover[data-animation="fade"] .portfolio-hover-bg[data-active="true"] .portfolio-hover-bg-img {
    opacity: 0;
    visibility: hidden;
  }
}

Let me know how it works on your site

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - Lightbox captions only mode)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 No-code customisations for Squarespace
🚀 Learn how to rank new pages on Google in 48 hours!

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

Link to comment
5 hours ago, bangank36 said:

You can try the following code

/*prevent hover effect on mobile*/
@media only screen and (max-width: 767px) {
  #collection-6169c831ec5ab773cfc058ad .portfolio-hover[data-animation="fade"] .portfolio-hover-bg[data-active="true"] .portfolio-hover-bg-img {
    opacity: 0;
    visibility: hidden;
  }
}

Let me know how it works on your site

It worked perfectly. Thank you so much!

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.