Latest web development tutorials

HTML DOM Style backfaceVisibility property

Style Object Reference Style Objects

Examples

Hide a div element rotating the back:

document.getElementById("myDIV").style.backfaceVisibility="hidden";

try it"

Definition and Usage

backfaceVisibility attribute defines whether an element is visible when facing away from the screen.

This property is in the rotating element is useful when you do not want to see the back of the element.


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Currently, only Internet Explorer 10+ and Firefox support backfaceVisibility property.

Opera 15 +, Chrome, and Safari support another alternative of the property attribute that WebkitBackfaceVisibility property.


grammar

Back backfaceVisibility properties:

object .style.backfaceVisibility

Setting backfaceVisibility properties:

object .style.backfaceVisibility="visible|hidden|initial|inherit"

Property Value

描述
visible 默认值。背面是可见的。
hidden 背面是不可见的。
initial 设置该属性为它的默认值。请参阅 initial
inherit 从父元素继承该属性。请参阅 inherit

technical details

Defaults: visible
return value: String representing the backface-visibility property element.
CSS version CSS3


related articles

CSS Reference: backface-visibility property


Style Object Reference Style Objects