I probably missed something simple, but tried to make a simple Ken Burns effect with an image.
First code:
[UIView animateWithDuration:20 delay:2 options:UIViewAnimationCurveLinear animations:^{ CGAffineTransform move = CGAffineTransformMakeTranslation(40, 40); CGAffineTransform zoom = CGAffineTransformMakeScale(1.2, 1.2); CGAffineTransform transform = CGAffineTransformConcat(zoom, move); self.imageView.transform = transform; } completion:^(BOOL finished){ NSLog(@"Done"); }];
I expected this to start with the image on the normal scale and expand it to 120% of the size for more than 20 seconds. In fact, what happens is that it starts immediately smaller than its normal size, and then expands to its normal size.
If I use the inverse of the scale, it starts to increase and then scales to a normal scale, which is the opposite of the effect I want.
Any ideas?
David Goodine
source share