且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Safari CSS Bug:动画旋转方向不正确?

更新时间:2022-04-24 23:23:35

问题是,如果您尝试在 safari 中为大于 180 度的旋转设置动画,它将改为以其他方式旋转.因此,如果您尝试旋转 +270 度,Safari 将动画旋转 -90 度.

The problem is that if you try to animate a rotate in safari greater than 180 degrees, it will instead rotate the other way. So if you try to rotate +270 degrees, Safari will animate a rotation of -90 degrees.

Safari 的解决方法是在任一方向上都不要旋转超过 179,然后在另一段中完成剩余的旋转.

The workaround for Safari is to never rotate more than 179 in either direction, then complete the rest of the rotation in another segment.