Backface-visibility - Property CSS
Summary of characteristics of the backface-visibility
property
visible
| hidden
visible
Discrète
: during an animation, the backface-visibility
property passes from one value to another without transition.Syntactic scheme of backface-visibility
.
backface-visibility
Click on the schema for more details on the values
Description.
The backface-visibility
property defines whether the back side of an element is displayed if the element has been rotated or is rotating in 3D.
To rotate an element, see the CSS property transform
.
Values for backface-visibility
.
- backface-visibility: visible;
Default. The back side is displayed when the item is "from behind".
Demonstration
Global values
(common to all properties):
backface-visibility: initial (visible
)
backface-visibility: inherit
backface-visibility: revert
backface-visibility: revertLayer
backface-visibility: unset
See the following pages for more details: initial
, inherit
, revert
, revert-layer
, unset
.
Manipulating the backface-visibility
property programmatically.
With Javascript, change the value of backface-visibility
.
Javascript accepts two syntaxes: the first in kebab-case
notation, typical of CSS (a hyphen to separate words),
and the second in camel-case
notation, more common in Javascript (a capital letter to separate words).

let el = document.getElementById('id');
el.style['backface-visibility'] = 'hidden';
// or
let el = document.getElementById('id');
el.style.backfaceVisibility = 'hidden';
With Javascript, read the value of backface-visibility
.
This code retrieves the value of the backface-visibility
property when it was assigned via the style
attribute of the HTML.
or by a Javascript code like the one given above. If the property was set via a CSS selector, its value will not be read.

let el = document.getElementById('id');
let value = el.style['backface-visibility'];
// or
let el = document.getElementById('id');
let value = el.style.backfaceVisibility;
With Javascript, read the calculated value of backface-visibility
.
The calculated value is the result of the evaluation of the inheritance mechanism. This can be the value assigned to the property directly on the item
by the style
attribute, the value assigned via a CSS selector, an inherited value, or the initial value of the property (i.e. visible
in the case of backface-visibility
).

let el = document.getElementById('id');
let value = window.getComputedStyle(el).getPropertyValue('backface-visibility');
With JQuery, change the value of backface-visibility
.
As is often the case, JQuery provides a shorter syntax than Javascript for reading and writing the value of backface-visibility
.

$('#id').css('backface-visibility', 'hidden');
// or
$('#id').css('backfaceVisibility', 'hidden');
With JQuery, read the calculated value of backface-visibility
.

let value = $('#id').css('backface-visibility');
Test it yourself.
You can use the buttons below to apply a value to the backface-visibility
property, and then display either the value as it is has been applied,
or the calculated value. If an incorrect value is applied, the assigned value will be blank, and the calculated value will be visible
.
Simulator.
Prise en charge par les navigateurs (compatibilité).
3D transformations and the backface-visibility
property are now very well recognized by current browsers.
the backface-visibility
property.backface-visibility
property.Notes:
(2) Internet Explorer does not support transform-style:preserve-3d
, thus limiting the nesting of animations.
transformations
backface-visibility
property
Browsers on computers :
Mobile browsers :
Outdated or marginal browsers :

Internet Explorer

KaiOS Browser

Opéra Mobile

Opéra

Firefox pour Androïd

Samsung Internet

Chrome

Edge

Firefox

Androïd Brower

Chrome pour Androïd

Baidu Browser

QQ Browser

Safari

Safari sur IOS

UC Browser pour Androïd

Opéra mini
Property backface-visibility
history.
the backface-visibility
property.backface-visibility
property.Notes:
(2) Internet Explorer does not support transform-style:preserve-3d
, thus limiting the nesting of animations.
-
CSS Transforms Module Level 2
Introduction of thebackface-visibility
property.March 03, 2020Working Draft.
See also, concerning transformations.
The W3C organizes CSS specifications into modules. The module CSS Transforms Module brings together all the definitions concerning CSS transformations:
Properties:





Functions:

