Non Linear CAAnimation of properties
Non Linear CAAnimation of properties
- Subject: Non Linear CAAnimation of properties
- From: "Bertrand Landry-Hetu" <email@hidden>
- Date: Mon, 19 Nov 2007 18:42:30 -0800
Hi List,
I'm trying to animate X and Z on a curve (rotating image a bit like
front row does). I can get the position correctly and have it linearly
animated from one position to the other, but i'd rather have it curve
a bit before since it would feel more natural than a straight line.
I thought the easiest way would be to use CAKeyframeAnimation and give
it a CGPath to follow. But it feels like that only works for animating
the position attribute or at least only for CGPoint attributes. Is
that the case ?
So I tried creating my own CGPoint and have it set the position and
zPosition. But my new attribute does not get animated. Not even the
default basic animation. What needs to be done for a property of a
subclass of CALayer to be animatable ?
Thanks.
Bertrand.
_______________________________________________
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