magnifier
magnifier copied to clipboard
Magnified image is not larger than the original + is not centered
Great project you have here! I am trying to use it but I am having 2 small issues:
- The image in the magnifier is smaller than the image it is supposed to be magnifying. Is there a setting to adjust how much it zooms/scales? I have been trying to work with something like this (but it doesn't seem to have an effect):
let magnifiedImage = Array.from(document.getElementsByClassName("magnifier"))[0];
magnifiedImage.backgroundSize = "475px 724px;"
- The image in the magnifier is not centered over the main image (it is slightly lower and to the left). Trying to toy with the
topandleftbut not quite working.
Any advice on fixing these two things? Thank you very much!