blob: 665afbffd37058a00f9b1e3c7383fdf37296564e [file] [log] [blame]
<!DOCTYPE html>
<style>
div {
width: 100px;
height: 100px;
background-color: blue;
transform-origin: 50% 50%;
}
.container {
rotate: 45deg;
background-color: red;
perspective-origin: 150% 150%;
perspective: 500px;
}
#box1 {
rotate: inherit;
}
#box2 {
transform: translate(200px);
rotate: 1 0 0 50deg;
}
#box3 {
transform: translate(200px);
rotate: 1 -2.5 4 30deg;
}
#box4 {
rotate: 0 0 0 45deg;
}
</style>
<div class="container">
<div id="box1">1</div>
<div id="box2">2</div>
</div>
<div id="box3">3</div>
<div id="box4">4</div>