首页 > 代码库 > a few animation Effect

a few animation Effect

CATransition Class

CATransition *animation = [CATransition animation];[animation setDuration:1.0];[animation setType:kCATransitionFade]; // use define flag[animation setType:@"oglFlip"]; // use string flag[animation setSubtype:kCATransitionFromLeft]; // can use to cooperate with type[self.imageView.layer addAnimation:animation forKey:nil];

Common Transition Types:

kCATransitionFadekCATransitionMoveInkCATransitionPushkCATransitionReveal

Common Transition Subtypes:

kCATransitionFromRightkCATransitionFromLeftkCATransitionFromTopkCATransitionFromBottom

 

a few animation Effect