Site URL: https://clover-duck-epye.squarespace.com/config/pages
Hi All,
I have been struggling with creating a smooth zoom-in hover effect over images (block image poster layout) and a smooth zoom-out when not hovering. This works now which is great. Unfortunately when reloading my page, the images start out distorted and slowly get back to normal (the duration of my hover effect...). Any help would be much appreciated!
Thanks in advance!
My custom css:
/* Zoom on hover image*/
.sqs-block-image .design-layout-poster{
-webkit-transition: all 4s ease;
-o-transition: all 4s ease;
transition: all 4s ease;
img{
-webkit-transform: scale(1);
-ms-transform: scale(1);
transform: scale(1);
-webkit-transition: all 4s ease!important;
-o-transition: all 4s ease!important;
transition: all 4s ease!important;
}
&:hover img{
-webkit-transform: scale(1.15);
-ms-transform: scale(1.15);
transform: scale(1.15);
}
}