Edit This Code:
See Result »
<!DOCTYPE html> <html> <head> <style> div { position: relative; height: 60px; width: 60px; background-color: red; -webkit-transform: rotateY(180deg); /* Chrome, Safari, Opera */ transform: rotateY(180deg); } #div1 { -webkit-backface-visibility: hidden; /* Chrome, Safari, Opera */ backface-visibility: hidden; } #div2 { -webkit-backface-visibility: visible; /* Chrome, Safari, Opera */ backface-visibility: visible; } </style> <script> var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "//hm.baidu.com/hm.js?73c27e26f610eb3c9f3feb0c75b03925"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); </script> </head> <body> <p>This example shows two div elements, rotated 180 degrees, facing away from the user.</p> <p>The first div element has the backface-visibility property set to "hidden", and should therefore be invisible.</p> <div id="div1">DIV 1</div> <div id="div2">DIV 2</div> <p><strong>Note:</strong> The backface-visibility property is not supported in Internet Explorer 9 and earlier versions.</p> </body> </html>
Result: