एलिमेंट स्क्रीन की ओर फेस नहीं कर रहा हो तो विजिबल होना चाहिए या नहीं, यह सेट करने के लिए जावास्क्रिप्ट backfaceVisibility प्रॉपर्टी का उपयोग करें।
उदाहरण
जावास्क्रिप्ट में backfaceVisibility प्रॉपर्टी लागू करना सीखने के लिए निम्न कोड चलाकर देखें:
<!DOCTYPE html> <html> <head> <style> div { width: 200px; height: 300px; background: blue; color: black; animation: mymove 2s infinite linear alternate; } @keyframes mymove { to {transform: rotateY(180deg);} } </style> </head> <body> <p>बैकफेस डिस्प्ले करने के लिए नीचे चेक करें</p> <div id="box"> <h1>डेमो</h1> </div> <input type="checkbox" onclick="display(this)" checked>backfaceVisibility प्रॉपर्टी <script> function display(x) { if (x.checked === true) { document.getElementById("box").style.backfaceVisibility = "visible"; } else { document.getElementById("box").style.backfaceVisibility = "hidden"; } } </script> </body> </html>