<!DOCTYPE html>
<html>
<head>
<title>Заголовок документа</title>
<style>
.element1 {
position: relative;
height: 150px;
width: 150px;
margin-left: 60px;
border: 1px solid #666;
-webkit-perspective: 130px; /* Safari 4-8 */
-webkit-perspective-origin: bottom right; /* Safari 4-8 */
perspective: 130px;
perspective-origin: bottom right;
}
.element2 {
padding: 50px;
position: absolute;
border: 1px solid #000;
background-color: #1c87c9;
background: #8ebf42;
-webkit-transform-style: preserve-3d; /* Safari 3-8 */
-webkit-transform: rotateX(45deg); /* Safari 3-8 */
transform-style: preserve-3d;
transform: rotateX(45deg);
}
</style>
</head>
<body>
<h2>Пример свойства perspective-origin</h2>
<h3>Perspective-origin: bottom right:</h3>
<div class="element1">
Box1
<div class="element2">Box2</div>
</div>