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

Cannot change the zoom position left-to-right #165

Open
alizada-hadi opened this issue Aug 2, 2023 · 1 comment
Open

Cannot change the zoom position left-to-right #165

alizada-hadi opened this issue Aug 2, 2023 · 1 comment

Comments

@alizada-hadi
Copy link

I want to change the zoom image position from right to left, but I can't. It just accepts the beside and over value as position.

@raf723
Copy link

raf723 commented Aug 16, 2023

Use the enlargedImageContainerStyle to achieve this:

<ReactImageMagnify
  {...{
    smallImage: {
      width: 500,
      height: 500,
      src: imageSrc
    },
    largeImage: {
      width: 1200,
      height: 1800,
      src: imageSrc
    },
    enlargedImageContainerStyle: {
      left: 'unset',
      right: '100%',
      marginLeft: 'unset',
      marginRight: '10px'
    }
  }}
/>

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

2 participants