Jump to content

Zoom in on image with hover - art portfolio

Recommended Posts

  • 2 weeks later...
On 8/14/2023 at 1:55 AM, jacquelinestuerzl said:

Still not working. I've had to add borders too, to my listings, to make everything square. I can't believe that it doesn't allow separate sized images for different products. 

I just tested, the hover code still works here. Can you keep code in CSS box? We can check it again easier

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
  • 6 months later...
On 7/31/2023 at 3:02 PM, tuanphan said:

Add to Design > Custom CSS

/* Image hover */
div.image-block:hover img {
    transform: scale(1.3);
    transition: all 0.3s ease;
}
div.image-block img {
    transition: all 0.3s ease;
}

 

Hi there, I've been trying various different "zoom on hover" code blocks suggested by this forum for my own gallery page and haven't been able to make a single one work, including this one. Here's a snippet of my custom CSS. Is there anything here preventing this code from working? Website: Felixtindall.com

image.png.5fb34dd5b33aa57d663bd9babcab42ce.png

Link to comment
On 3/3/2024 at 3:24 PM, FelixTindall said:

Hi there, I've been trying various different "zoom on hover" code blocks suggested by this forum for my own gallery page and haven't been able to make a single one work, including this one. Here's a snippet of my custom CSS. Is there anything here preventing this code from working? Website: Felixtindall.com

image.png.5fb34dd5b33aa57d663bd9babcab42ce.png

With your case, use this CSS code

/* Image hover */
span.thumb:hover img {
    transform: scale(1.3);
    transition: all 0.3s ease;
}
span.thumb img {
    transition: all 0.3s ease;
}
span.thumb {
    overflow: hidden;
}

 

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.