clOudbb / EZAnimation

An easy use iOS CoreAnimation Kit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

EZAnimation

Build Status Open Source Love CocoaPods CocoaPods

desciption

A easy use iOS CoreAnimation Kit

Feature

  • simple
  • chain
  • support most property of core animation kit

Example

[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

CocoaPods

# Your Podfile
platform :ios, '8.0'
pod 'EZAnimationObjc', '~> 0.0.5'

Contact

About

An easy use iOS CoreAnimation Kit

License:MIT License


Languages

Language:Objective-C 98.6%Language:Ruby 1.4%