-
Notifications
You must be signed in to change notification settings - Fork 312
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hid backface for all childrn, fixing #31
- Loading branch information
1 parent
cfc8dc3
commit 0ac07a7
Showing
1 changed file
with
3 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0ac07a7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be
display: none;
instead of backface-visibility?http://cl.ly/dM7p That's what happens to me :(
But I'll report an issue too...
0ac07a7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Problem with
display:none;
is that it becomes a timing issue. There are only two states: front showing and back showing. The flip animation is a transition between these two states.When the front is showing, the back face could be set to
display:none
... But when we transition to the flipped state, somewhere in the middle of that transition, the back face will become visible... But when exactly?backface-visibility
is supposed to solve this because the 3D engine within the browser 'knows' the exact frame at which the flip has completed far enough for the back face to be shown.