Design_Agency Posted May 16, 2019 Share Posted May 16, 2019 hi— i've just implemented the flip card tut into my site. it works great in chrome, but not safari or firefox. confused, i went back to the tutorial page and while it works on that first page, it does not work in the try it editor in either browser (still fine in chrome). anyone know what's up? emily Link to comment Share on other sites More sharing options...
Funce Posted May 16, 2019 Share Posted May 16, 2019 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 More sharing options...
Design_Agency Posted May 20, 2019 Author Share Posted May 20, 2019 yes! that is working well in firefox, though safari is still glitchy. is there a similar fix for safari? thanks so much~ Link to comment Share on other sites More sharing options...
Funce Posted May 20, 2019 Share Posted May 20, 2019 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 More sharing options...
TedBaerchen Posted August 5, 2019 Share Posted August 5, 2019 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now