Definition and Usage
The CSS backface-visibility property determines whether or not the back face of the element is visible when facing the user. The back face of an element always is a transparent background, letting, when visible, a mirror image of the front face be displayed.
There are cases when we do not want the front face of an element to be visible through the back face, like when doing a flipping card effect (setting two elements side-to-side).
This property has no effect on 2D transforms as there is no perspective.
- Initial visible
- Applies to transformable elements
- Inherited no
- Media visual
- Computed Value as specified
- Animatable no
- Canonical order the unique non-ambiguous order defined by the formal grammar
Syntax
Formal syntax: visible | hidden
backface-visibility: visibility backface-visibility: visible backface-visibility: hidden
Values
- visibility
- Is a keyword indicating if the backface must be visible or not. It can have the following values:
- visible meaning that the back face is visible, allowing the front face to be displayed mirrored;
- hidden meaning that the back face is not visible, hiding the front face.
Examples
backface-visibility: visible; | backface-visibility: hidden; |
1 2 3 4 5 6 |
Compatibility
Desktop browsers
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
---|---|---|---|---|---|
Basic support | 12-webkit | 10.0 (10)-moz 16.0 (16) | 10 | 15-webkit | (Yes)-webkit |
Mobile browsers
Feature | Android | Chrome for Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|---|
Basic support | 3.0-webkit | NA | 10.0 (10)-moz 16.0 (16) | NA | Not supported | (Yes)-webkit |