Re: Core Animation: performing a two-step animation
Re: Core Animation: performing a two-step animation
- Subject: Re: Core Animation: performing a two-step animation
- From: Heath Borders <email@hidden>
- Date: Wed, 01 Jun 2011 22:25:06 -0500
Perform the second transform after the first animation completes in a
separate animation block. You can start the second animation block
from the first animation block's completion block.
-Heath Borders
email@hidden
Twitter: heathborders
http://heath-tech.blogspot.com
On Wed, Jun 1, 2011 at 9:46 PM, Graham Cox <email@hidden> wrote:
> I'm new to Core Animation, so forgive me if I've missed something really obvious.
>
> I want to perform a 2-step animation of a layer's -transform, so it appears to expand then shrink back to end up slightly larger than it started out. I can easily do a 1-step animation by using a scaling transform, but setting it twice doesn't achieve the effect I want:
>
>
>
> myLayer.transform = CATransform3DMakeScale( 1.5, 1.5, 1.0 );
> myLayer.transform = CATransform3DMakeScale( 1.1, 1.1, 1.0 );
>
> Do I need to use a keyframe animation?
>
> --Graham
>
>
> _______________________________________________
>
> 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
>
_______________________________________________
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