Jump to content

Zoom in hover effect on homepage

Recommended Posts

  • Replies 4
  • Views 305
  • Created
  • Last Reply

Add to Design > Custom CSS

/* homepage image effect */
body.homepage .image-block img {
    transition: all 0.2s;
}
body.homepage .image-block:hover img {
    transform: scale(1.2);
    transition: all 0.2s;
}
body.homepage .image-block {
    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

Try new code

/* homepage image effect */
div#page-section-602229b710c48c03e7757b96>.row .image-block img {
    transition: all 0.2s;
}
div#page-section-602229b710c48c03e7757b96>.row .image-block:hover img {
    transform: scale(1.2);
    transition: all 0.2s;
}
div#page-section-602229b710c48c03e7757b96>.row .image-block {
    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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.