<!DOCTYPE html>
<html>
<head>
<title>Заголовок документа</title>
<style>
.element {
width: 200px;
height: 200px;
background: #1c87c9;
color: #8ebf42;
backface-visibility: hidden;
-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>Пример со значением hidden.</h2>
<div class="element">
<h2>Hello world!</h2>
</div>
</body>
</html>