How do I make the image zoom out when hovering rather than zoom in as it is now? I am using the Enterprise theme.
This is used in our media grid section on the homepage.
Thanks in advance ![]()
N
A user needed to reverse the default zoom behavior on their Enterprise theme’s media grid section—making images zoom out on hover instead of zooming in.
Initial Solution:
Final Solution:
Status: Resolved. The implementation successfully achieved the desired zoom-out effect without visual gaps.
How do I make the image zoom out when hovering rather than zoom in as it is now? I am using the Enterprise theme.
This is used in our media grid section on the homepage.
Thanks in advance ![]()
N
@Nick_S2 -
please add this css to the very end of your main.css file and check,
Shopify Admin → Online Store ->Theme → Edit code → main.css
.gallery-block:hover .media {transform: scale(0.90) !important;}
Thank you. Yes this worked however I think the image should start at 110% or something - so that it still fills the space when scaled down…
Check my site again to see what I mean. Thanks. N
Hello @Nick_S2
.gallery-block .media {
transform: scale(1.1);
transition: transform 0.5s ease;
will-change: transform;
}
.gallery-block:hover .media {
transform: scale(0.95);
}