I want to create a right-angle triangle that looks like this
. . . . . . .
. .
. .
. .
. .
. .
.
but I also want to add a 3D animation that will transform it into a right angle like this
.
. .
. .
. .
. .
. .
. . . . . . .
So far, I have not had much success with diagonal transformations, especially when it comes to triangles. I was able to flip it vertically and horizontally by following the instructions on http://davidwalsh.name/css-flip, but diagonal flipping is still a challenge.
Any help or guidance would be greatly appreciated!
Here is the JSFiddle link as requested: http://jsfiddle.net/y36cdwx2/