Skip to content

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

Open
@PolarisTLX

Description

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!

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions