pierrekaram Posted June 1, 2022 Share Posted June 1, 2022 (edited) 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 June 1, 2022 by pierrekaram Link to comment
Solution Beyondspace Posted June 2, 2022 Solution Share Posted June 2, 2022 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 tuanphan and pierrekaram 1 1 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
pierrekaram Posted June 2, 2022 Author Share Posted June 2, 2022 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment