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

Mirror effect on zoomed image - transform: scaleX(-100%) doesn't work #363

Open
1 of 4 tasks
MichalKowalczyk opened this issue Oct 6, 2022 · 2 comments
Open
1 of 4 tasks
Assignees
Labels

Comments

@MichalKowalczyk
Copy link

MichalKowalczyk commented Oct 6, 2022

Issue Type

  • Bug report
  • Feature request
  • Question / support request
  • Other

Description

Usually I'm using transform: scaleX(-100%) to achive mirror effect on images but now it's impossible, because rmiz overwritten transform property.

Question

How to do mirror effect on zoomed image? Is it even possible in current situation?

@rpearce
Copy link
Owner

rpearce commented Oct 6, 2022

Hi, @MichalKowalczyk!

The latest version does its own transforming on the image in order to animate it from one place to another. I can look into this further, but your best best for a solution right now would be try to flip all of the modal's content with CSS:

[data-rmiz-modal-content] {
  transform: scaleX(-100%);
}

I don't know if that will work, but it's worth a shot if you need something ASAP.

Edit: no, this doesn't work. I'll do some digging and see if it'll be reasonably possible or not.

@rpearce rpearce self-assigned this Oct 12, 2022
@rpearce
Copy link
Owner

rpearce commented Oct 18, 2022

I am still thinking about this. I don't have a good solution at the moment.

@rpearce rpearce added the bug label Aug 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants