//
//  AnimationBuilder.h
//  TTAnimationExample
//
//  Created by titengjiang on 16/1/17.
//  Copyright 漏 2016骞?sloop. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
 


typedef NS_ENUM(NSUInteger, AnimationType) {
    bounce = 0,
    Flash,
    pulse,
    rubberBand,
    shake,
    swing,
    tada,
    wobble,
    jello,
    bounceIn,
    bounceInDown,
    bounceInLeft,
    bounceInRight,
    bounceInUp,
    bounceOut,
    bounceOutDown,
    bounceOutLeft,
    bounceOutRight,
    bounceOutUp,
    fadeIn,
    fadeInDown,
    fadeInDownBig,
    fadeInLeft,
    fadeInLeftBig,
    fadeInRight,
    fadeInRightBig,
    fadeInUp,
    fadeInUpBig,
    fadeOut,
    fadeOutDown,
    fadeOutDownBig,
    fadeOutLeft,
    fadeOutLeftBig,
    fadeOutRight,
    fadeOutRightBig,
    fadeOutUp,
    fadeOutUpBig,
    flip,
    flipInx,
    flipInY,
    flipOutX,
    flipOutY,
    
    lightSpeedIn,
    lightSpeedOut,
    
    RotateIn,
    RotateInDownLeft,
    RotateInDownRight,
    RotateInUpLeft,
    RotateInUpRight,
    
    RotateOut,
    RotateOutDownLeft,
    RotateOutDownRight,
    RotateOutUpLeft,
    RotateOutUpRight,
    
    
    SlideOutUp,
    SlideOutLeft,
    SlideOutRight,
    SlideOutDown,
    
    SlideInUp,
    SlideInLeft,
    SlideInRight,
    SlideInDown,
    
    hinge,
    rollIn,
    rollOut,
    
    zoomIn,
    zoomInDown,
    zoomInLeft,
    zoomInRight,
    zoomInUp,
    
    zoomOut,
    zoomOutDown,
    zoomOutLeft,
    zoomOutRight,
    zoomOutUp
};



@interface AnimationBuilder : NSObject


-(AnimationBuilder *)setDuration:(CFTimeInterval)duration;

-(AnimationBuilder *)setAnimationType:(AnimationType)type;

-(AnimationBuilder *)setRepeatCount:(CGFloat )repeatCount;

-(AnimationBuilder *)setRemovedOnCompletion:(BOOL)removedOnCompletion;


-(void)startOn:(UIView * )targetView;
-(AnimationBuilder *)setDelegate:(id)delegate;


@end
// 鐗堟潈灞炰簬鍘熶綔鑰?// http://code4app.com (cn) http://code4app.net (en)
// 鍙戝竷浠g爜浜庢渶涓撲笟鐨勬簮鐮佸垎浜綉绔? Code4App.com// 鐗堟潈灞炰簬鍘熶綔鑰?// http://code4app.com (cn) http://code4app.net (en)
// 鍙戝竷浠g爜浜庢渶涓撲笟鐨勬簮鐮佸垎浜綉绔? Code4App.com// 鐗堟潈灞炰簬鍘熶綔鑰?// http://code4app.com (cn) http://code4app.net (en)
// 鍙戝竷浠g爜浜庢渶涓撲笟鐨勬簮鐮佸垎浜綉绔? Code4App.com