Re: Animation along a curve w/scale & alpha & orientation
Re: Animation along a curve w/scale & alpha & orientation
- Subject: Re: Animation along a curve w/scale & alpha & orientation
- From: Puneet Bhardwaj <email@hidden>
- Date: Fri, 20 Nov 2015 23:17:34 +0530
Try setting rotationMode = kCAAnimationRotateAuto on the KeyframeAnimation
If you can translate the values along the path to angles, you can apply
affine rotate transform to the image to orient it to the path. Alpha value
might be a function of angle too.
Regards,
Puneet
On Thursday, November 19, 2015, Eric E. Dolecki <email@hidden> wrote:
> [image: sheep.png]Greetings. I am looking to animate images along a path,
> that orient to the path, and scale up at the top of the path, fade in at
> one side, full alpha at top, and then fade out.
>
> I am able to animate along a CAKeyframeAnimation path, not sure about an
> event when each sheep is at the end, don't know how to orient the image to
> the path, etc. This is for a gentle counting sheep animation that would
> slowly loop forever.
>
> Thanks,
> Eric
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden