A easy use iOS CoreAnimation Kit
- simple
- chain
- support most property of core animation kit
[layer ez_animationWithType:EZAnimationTypeBasic makerAnimation:^(EZAnimationMaker *maker) {
maker.fromValue(@0).toValue(@375).duration(10)
.animKeyPath(EZAnimationKeyPathPositionX)
.normalCoordinate(true);
}];
delegate with the block resolve
[layer ez_animationWithType:EZAnimationTypeBasic makerAnimation:^(EZAnimationMaker *maker) {
maker.fromValue(@0)
.toValue(@375)
.duration(10);
} start:^{
NSLog(@"start");
} completion:^(bool flag) {
if (flag) {
NSLog(@"completion");
}
}];
more example see the xcodeproj
# Your Podfile
platform :ios, '8.0'
pod 'EZAnimationObjc', '~> 0.0.5'