Skip navigation.
 
mlCALayer question regarding sequence of animations
FROM : Steve Sheets
DATE : Tue Nov 13 21:10:43 2007

Good evening all...

Using CAAction or CATransaction, can you create a sequence of 
animation (usually changing a CALayer's property) that occur one after 
another?

I know you can modify the duration of a single animation using 
CATransaction, even eliminate the animation all together. You can also 
group a set of animations, so that each one starts at the same time. 
However, I want to create a two or more animations that follow one 
other, without having to resort to a NSTimer or such. I want to be 
able to create this animation in single code segment (not require 
timers or callbacks).

For example, I want to create an animation that make a hidden layer 
appear (aLayer.hidden=FALSE), moves it to a new position (aLayer. 
position=CGPointMake(100.0,100.0), and then fades it back out (aLayer. 
hidden=TRUE).

Any thoughts?

Steve Sheets
Midnight Mage Software

Related mailsAuthorDate
mlCALayer question regarding sequence of animations Steve Sheets Nov 13, 21:10
mlRe: CALayer question regarding sequence of animations Troy Stephens Nov 13, 22:25
mlRe: CALayer question regarding sequence of animations Steve Sheets Nov 14, 03:01