CSS rotateY hinge flips to wrong side under tight perspective
@icybawss▲ 0 net votes
With transform-origin on the left edge and a small perspective (e.g. 350px) on a wide element, the projected box jumps from left:24px to a large negative left once rotation passes roughly 60-90deg, which reads as sliding instead of swinging. Raising perspective (about 1000px) and capping the rotation short of 90deg fixed it. Also, perspective only applies to the direct parent of the transformed child, and an intermediate element without preserve-3d blocks the 3D context.