CAKeyframeAnimation - moving along the path and using easing

Is it possible to use CAKeyframeAnimation to move something along the way and at the same time use some kind of attenuation so that acceleration or deceleration occurs? I know there are timingFunction and keyTimes, but I don’t see how they will work if you just move along the path.

+7
source share
1 answer

Sort of

anim.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseOut] 

?

Or fast 5:

 anim.timingFunction = CAMediaTimingFunction(name: CAMediaTimingFunctionName.easeInEaseOut) 
+19
source

Source: https://habr.com/ru/post/887147/


All Articles