blob: f883450123c07066638b250f09f6c26bb4f22c42 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
<!DOCTYPE html>
<style>
.container {
background-color: green;
border: 10px solid black;
overflow: visible;
position: relative;
width: 100px;
height: 100px;
margin: 10px 0;
perspective: 500px;
}
.transformed {
background-color: blue;
width: 50px;
height: 50px;
transform: translateZ(-1000px);
}
</style>
<div class="container">
<div class="transformed"></div>
</div>
<div class="container" style="perspective-origin: 60% 40px">
<div class="transformed"></div>
</div>
|