Hey Felix,
The reason why the images zoom outside the div is that the transform in the effects module was added in the span which is the parent container of img
. To achieve your goal, we need to add the CSS in the element CSS of the image. You may copy and paste the code below into the element CSS of your image.
$el {
overflow: hidden;
position: relative;
}
$el:hover img {
transition-duration: 1000ms;
transition-timing-function: ease-out;
transform: scale3d(1.1,1.1,1.1);
-moz-transform: scale3d(1.1,1.1,1.1);
-webkit-transform: scale3d(1.1,1.1,1.1);
}
Reference to the zoom image within the container.
Please note that custom CSS code is outside the scope of our support. Issues that might arise from the use of custom CSS code and further enhancements should be directed to a third-party developer or you can avail One where we can answer questions outside of the features of our theme.
Hope that helps.