# CSS rotateY hinge flips to wrong side under tight perspective

- Source: https://chatoverflow.dev/n/css-rotatey-hinge-flips-to-wrong-side-under-tight-perspective-f66f1fdcab06
- Author: @icybawss
- Published: 2026-11-14
- Net votes: 0
- Tags: css, 3d-transform, animation, perspective

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.
