Jump to content

[Share] Zoom linked images on hover

Recommended Posts

Posted

To make Linked Images zoom on hover, you can use these CSS code to Website Tools > Custom CSS.

#1. Image Blocks

div.image-block:has(.sqs-block-image-link) img {
    transition: all .3s;
}
div.image-block:has(.sqs-block-image-link):hover img {
    transform: scale(1.5);
    transition: all .3s;
}

image.png.545226b62c3b73bebb98db6712606d0e.png

#2. Gallery Block Images

div.gallery-block .slide:has(a.image-slide-anchor) img {
    transition: all .3s;
}
div.gallery-block .slide:has(a.image-slide-anchor):hover img {
    transform: scale(1.5);
    transition: all .3s;
}

image.png.e7b4271b513bea5bfaaefd5492eb2d86.png

#3. Gallery Section Images

figure[class*="gallery-"]:has(a) img {
    transition: all .3s;
}
figure[class*="gallery-"]:has(a):hover img {
    transform: scale(1.5);
    transition: all .3s;
}
figure[class*="gallery-"] a {
    overflow: hidden;
}

image.png.01cf80f877a4917dd0b81fe17b804df4.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!)

  • Replies 0
  • Views 371
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

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.