Jump to content

Flip Card Tutorial not working in Firefox, Safari


Recommended Posts

This is an odd bug with Mozilla.

Try adding transform: rotateX(0deg); onto the front and back.

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  transform: rotateX(0deg);

It seems to get it to work.

Link to comment
Share on other sites

Sorry, I don't have the Safari browser, I wouldn't be able to know exactly what's happening.

Perhaps its something similar to Firefox, The uh rotation of inner-card isn't being accurately reflected on flip-card-front and flip-card-back.

Maybe if you moved the rotation from inner-card to the front and back, you may have more luck? Can't test it myself, so you might need to do it a bit of experimentation.

Link to comment
Share on other sites

  • 2 months later...

I had the same problem and it took me metaphorically many years of my live to get it done. The fix from Funce is essentially for working in all browsers but it fixes not all problems. As you mentioned it doesn't work in Safari. And that's not all. The problem exists in all browsersfor mac (Firefox, Chrome, Safari).
The solution is to rotate .flip-card:hover .flip-card-inner by +180deg and .flip-card-back by -180deg. Then the browsers calculates the rotaion process correctly to 0deg an the backface stays visible. 
I think there is a mistake in interpreting 180deg + 180deg = 360deg = 0deg.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...