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 post
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 post
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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...