Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Magnified image is not larger than the original + is not centered #6

Open
PolarisTLX opened this issue Dec 20, 2018 · 0 comments
Open

Comments

@PolarisTLX
Copy link

Great project you have here! I am trying to use it but I am having 2 small issues:

  1. 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;"
  1. 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 top and left but not quite working.

Any advice on fixing these two things? Thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant