Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Заголовок документа</title> <style> .element { width: 200px; height: 200px; background: #666; color: #eee; backface-visibility: visible; -webkit-animation: element 2s infinite linear alternate; /* Safari 4.0 - 8.0 */ animation: element 2s infinite linear alternate; } /* Safari 4.0 - 8.0 */ @-webkit-keyframes element { to {-webkit-transform: rotateY(180deg);} } } </style> </head> <body> <h2>Пример свойства backface-visibility.</h2> <div class="element"> <h2>Hello world!</h2> </div> </body> </html>