Guys it's really simple
Just stack a bunch of squares and make them a little smaller according to their height.
For the rotation, i made a cursor so i can rotate the white square to the angle from it to the cursor.
I made the grey squares follow the rotation of the white one.
For the X-RAY thing, i just messed with the opacity and made it change according to the square's rotation.
Did that make sense?