CSS | backface-visibility Property
This property decides whether the back face of an element might be visible or not to the user. It is a mirror image of the front face that is being displayed as a back face of an element to the user. It is useful when an element is rotated then it decides whether the back face of an element is visible or not.
Syntax:
backface-visibility: visible|hidden|initial|inherit;
Property:
- visible: It is the default value. The back face of an element is visible when facing the user.
Syntax:
backface-visibility:visible;:
Example:
<!DOCTYPE html><html><head><style>div {position: relative;height: 190px;width: 190px;FONT-SIZE:35PX;COLOR:WHITE;text-align:center;padding:20px;background-color: GREEN;-webkit-transform: rotateY(180deg);transform: rotateY(180deg);}#GEEKS {-webkit-backface-visibility: hidden;backface-visibility: hidden;}</style></head><body><center><h1style="color:green;">GeeksForGeeks</h1><h2style="color:green;">backface-visibility:visible;</h2><divid="Gfg">Geeks For Geeks</div></center></body></html>chevron_rightfilter_noneOutput:

- hidden: This property values specifies the back face of an element is hidden when facing the user.
Syntax:
backface-visibility:hidden;
Example:
<!DOCTYPE html><html><head><style>div {position: relative;height: 190px;width: 190px;FONT-SIZE:35PX;COLOR:WHITE;text-align:center;padding:20px;background-color: GREEN;-webkit-transform: rotateY(180deg);transform: rotateY(180deg);}#GEEKS {-webkit-backface-visibility: hidden;backface-visibility: hidden;}</style></head><body><center><h1style="color:green;">GeeksForgeeks</h1><h2style="color:green;">backface-visibility:hidden;</h2><divid="GEEKS">Geeks For Geeks</div></center></body></html>chevron_rightfilter_noneOutput:

- initial: It sets the property to its default value.
Syntax:
backface-visibility:initial;
Example:
<!DOCTYPE html><html><head><style>div {position: relative;height: 190px;width: 190px;FONT-SIZE:35PX;COLOR:WHITE;text-align:center;padding:20px;background-color: GREEN;-webkit-transform: rotateY(180deg);transform: rotateY(180deg);}#GEEKS {-webkit-backface-visibility: initial;backface-visibility: initial;}</style></head><body><center><h1style="color:green;">GeeksForgeeks</h1><h2style="color:green;">backface-visibility:initial;</h2><divid="GEEKS">Geeks For Geeks</div></center></body></html>chevron_rightfilter_noneOutput:

Recommended Posts:
- HTML | DOM Style backfaceVisibility Property
- CSS | transition-property Property
- CSS | top Property
- CSS | right Property
- CSS | all Property
- CSS | The object-fit Property
- CSS | filter Property
- CSS | overflow-x Property
- HTML | DOM URL Property
- CSS | grid-row-gap Property
- CSS | height Property
- CSS | Display property
- CSS | cursor property
- CSS | grid Property
- CSS | border-right Property
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.



