#red figure { background: red; transform: perspective( 400px ) rotateY(45deg); }
#blue { perspective: 400px; } #blue figure { background: blue; transform: rotateY( 45deg ); }