只翻转动画到一半
我想知道是否可以制作一个看起来像翻转过渡的动画,但只在中途对其进行动画处理,以便动画在您无法真正看到它的那一刻停止。
非常感谢任何帮助。
I was wondering if it would be possible to make an animation that looks like the flip transition, but only animate it halfway through, so that the animation stops at the moment when you you can't really see it.
Any help is greatly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您想要将图层的
transform
属性从默认值 (CATransform3DIdentity
) 动画化为绕 Y 轴旋转四分之一圈。它应该是这样的:m34
值是打开图层透视的方式。搜索“m34视角”可以看到很多关于它的讨论。You want to animate the layer's
transform
property from it's default (CATransform3DIdentity
) to a quarter-rotation around the Y axis. It should be something like this:The
m34
value is how you turn on perspective for a layer. Search for "m34 perspective" for many discussions of it.