Hello,
Could someone please help me with the coding to add the zoom on hover feature on product page images?
Im using Sahara theme.
example of hover to zoom: https://www.lornajane.com.au/speed-circuit-no-chafe-ankle-biter-leggings-acblu/022423_ACBLU.html
TIA
Hi,
Currently, when you hover over the product images with your mouse, you can see it zooms in. Or did you want a zoom button?
Terence.
Hi Terrence,
The link provided is an example of what I want for my website. This is not my website.
Hello, Please share your live storeâs frontend URL or Preview link.
What you want can be done. Whatâs the link to your website?
Terence
1 Like
To be honest, the competitorâs website has done this with a custom implementation. Alternatively, the website itself might support this feature. Itâs usually done using âzoom.jsâ. The code Iâm going to send you might not fully meet your needs, but it creates a similar zoom effect. Of course, this issue can also be solved with a custom implementation.
The following code will do what you want. You can change the values as you like.
Navigate to the âEdit Codeâ option in your theme settings, then search for âbase.cssâ in the search bar and add below codes.
.product__media .media:not(.media--thumb) img:hover {
transform: scale(1.2);
}
Hi Terence,
Thank you but unfortunately this doesnât appear to have done anything.
Apologies, it is making it bigger but not the effect I was hoping.
Hi again,
As I mentioned, itâs not exactly the same. The other website does it with a custom implementation. In other words, itâs not something simple. You can ask for help from different people if you want, but I donât think anyone can do it without a custom solution. If you have any further questions, feel free to ask.
Thanks for your help @TerenceKEANE
You are welcome.
If you have any other needs, just let me know. 