Jump to content

Code for zoom hover on poster images

Go to solution Solved by tuanphan,

Recommended Posts

Site URL: https://caradeckers-interieur.squarespace.com/

On the website: https://caradeckers-interieur.squarespace.com/ 
password: Cara1234
Page 'Projecten'

I want to add a slight zoom when you hover over the images. These are poster images. 
I used the code below in Custom CSS, however it didn't work. 
.sqs-block-image .design-layout-poster img:hover {transform: scale(1.1);}

Important to know is that there is text on the images and the images link to another page. 

The only Custom CSS code I'm using at the moment is: footer a {text-decoration: none !important;}
So I don't think there is any interference. 

Does anybody have a solution for this? 

Thank you in advance! 


Link to comment
  • Solution

Add to Design > Custom CSS

/* Projecten poster image hover */
div#page-section-61df0849974d4f33fe31f9df .image-block:hover img {
    transform: scale(1.3);
    transition: all 0.3s;
div#page-section-61df0849974d4f33fe31f9df .image-block img {
    transition: all 0.3s;


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.