Jump to content

Remove hover from gallery only on mobile

Recommended Posts

Hi.

I have done some minor css modifications to a gallery block so it will be working as a portfolio where you can link into different cases. 

I have added a hover state when you mouse over each image where the caption fades in and that works fine both on desktop view and on mobile...But i would really like the mobile view to not have a hover effect but instead having the Caption underneath the image. I would also like to be able to re style the caption type because it has to change color when it is not over an image...

 

I hope that some one can help me out with this 🙂

 

Link to comment
  • 3 months later...
On 5/16/2023 at 11:06 PM, gcerceo said:

I am trying to this also. 

 

I have hover:follow cursor on desktop, and would like to force gallery:simple on mobile + have the portfolio titles underneath the images. 

 

www.grahamcerceo.com

Try this code

https://forum.squarespace.com/topic/179614-different-homepage-style-on-mobile/?do=findComment&comment=430097

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
On 5/22/2023 at 8:57 PM, gcerceo said:

The entire section disappears with the code in that link.

 

When I  /*  */  each group to see what's causing it to disappear, it seems to be the @max width string.

 

 

Can you keep this code? We can test other code easier

image.png.5330731f0ba845be0669fb0c368494b8.png

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

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.