<!DOCTYPE html>
<style>
#perspective {
- -webkit-perspective: 35px;
+ -webkit-perspective: 150px;
+ height: 150px;
+ width: 150px;
+ margin: 50px;
+ padding: 10px;
}
+
#transform {
- width: 100px;
- height: 100px;
+ width: 150px;
+ height: 150px;
background: blue;
- -webkit-transform: rotateY(45deg);
+ transform: rotateY(45deg);
}
</style>
<div id="perspective">