I am trying to have a right angle triangle such as this
. . . . . . .
. .
. .
. .
. .
. .
.
flip with a 3d animation to become a right angle such as this
.
. .
. .
. .
. .
. .
. . . . . . .
I have had very little luck with diagonal transformation, yet alone one of a triangle. I was able to flip it vertically and horizontally following the guides here http://davidwalsh.name/css-flip however I cannot flip the box diagonally.
Any help or direction is most appreciated!
as requested JSFiddle: http://jsfiddle.net/y36cdwx2/