开发者

How slow down or accelerate animation using curves in Core Animation

开发者 https://www.devze.com 2023-02-26 13:18 出处:网络
I am using CGPathAddQuadCurveToPoint to create a curve path for animation and have animation duration for example 2 second. How can I animate object what moving along this path for example from one po

I am using CGPathAddQuadCurveToPoint to create a curve path for animation and have animation duration for example 2 second. How can I animate object what moving along this path for example from one point to another is slow开发者_JAVA百科er then in other points and within this 2 seconds. How can I do that?


Have a look at Chaining Core Animation animations on SO, it describes a solution to chain animations. You can set the duration and curves for each animation seperately then.

0

精彩评论

暂无评论...
验证码 换一张
取 消