单点触控动画加速
是否可以以越来越快的速度创建动画?像加速动画之类的东西。
我有一些代码,但找不到实现它的方法。谷歌搜索也没有帮助。
CABasicAnimation animation = CABasicAnimation.FromKeyPath("opacity");
animation.To = NSNumber.FromFloat( 0.1f );
animation.Duration = 1.4f;
animation.Delegate = new ExponencialSpeedAnimationDelegate();
animation.RepeatCount = 3;
this.Layer.AddAnimation(animation, "opacity");
Is it possible to create an animation with increasing speed? Something like accelerated animation.
I have some code but cannot find a way how to implement it. Googling also not helpful.
CABasicAnimation animation = CABasicAnimation.FromKeyPath("opacity");
animation.To = NSNumber.FromFloat( 0.1f );
animation.Duration = 1.4f;
animation.Delegate = new ExponencialSpeedAnimationDelegate();
animation.RepeatCount = 3;
this.Layer.AddAnimation(animation, "opacity");
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试
Try