Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS CSS Transitions and Transforms Adding 3D Effects with CSS Create a Flipping Animation with 3D Transform Properties

Backface visibility isn't working for me on Brave browser. Any idea how to fix?

.content { perspective: 700px; }

.photo-container{ transition:transform .5s ease-out; transform-style:preserve-3D; }

.photo-container:hover { transform: rotateY(-180deg) }

.side-a, .side-b { backface-visibility:hidden; }

Rob Anderson
seal-mask
.a{fill-rule:evenodd;}techdegree
Rob Anderson
Front End Web Development Techdegree Student 11,235 Points

Having the same problem in Brave. Tried many, if not all, of the hacks some students mentioned having had success with, however none resolved the issue for me.

2 Answers

Steven Parker
Steven Parker
231,268 Points

I checked the browser compatibility section on the MDN page but I don't see "Brave" listed.

I'm surprised at the compatibility issues since the web description of Brave says it's based on the V8 engine (as used by Chrome). But I did find a blog article from 2017 mentioning this as an issue with Brave, but a comment a few weeks later says "I can confirm, that the issue is solved into the latest version of Brave".

If it has been broken again by recent updates, perhaps the browser maintenance team should be notified. Otherwise, maybe using backface-visibility should be avoided if you know your site needs to support this browser.

Ok thanks for taking the time to look into this!

Rob Anderson
seal-mask
.a{fill-rule:evenodd;}techdegree
Rob Anderson
Front End Web Development Techdegree Student 11,235 Points

Was able to figure it out. I was using the .photo-container class rather than the .photo class as you are - the previous video had a note about making that change. Once I changed it back to .photo, the problem resolved in Brave with this code:

.content { perspective: 800px; }

.photo { transition: transform 1s ease-out; transform-style: preserve-3d; }

.photo:hover { transform: rotateY(-180deg); }

.side-a { backface-visibility: hidden; }

.side-b { transform: rotateY(180deg); }

Steven Parker
Steven Parker
231,268 Points

This would affect all browsers equally, so you can relax knowing that it wasn't some browser-specific irregularity.