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

UPDATE: to fix the above problem, all I had to do was assign this style rule to .react-card-front and .react-card-back: "transformStyle: initial". #117

Open
dishantsattvabit opened this issue Apr 4, 2023 · 2 comments

Comments

@dishantsattvabit
Copy link

dishantsattvabit commented Apr 4, 2023

Yes, your mentioned solution #38 (comment) fixed in safari. but in my case it is break on chrome browser

@panzacoder
Copy link

@dishantsattvabit This also breaks for me and since this library is relying on style tags I can't seem to override this only on Safari. Did you find a solution?

@panzacoder
Copy link

For anyone stumbling across this in 2024, here is the (annoying) styles that I had to add to make this work in Safari and Chrome:

<ReactCardFlip
  cardStyles={{
    front: { zIndex: 'unset', transformStyle: 'initial' },
    back: { zIndex: 'unset', transformStyle: 'initial' }
  }}
  isFlipped={isFlipped}
  flipDirection="horizontal"
/>

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