Rotate the red div element, try changing its axis and angle value.
Rotate
Angle:
Select axis:
rotate: z 0deg;