Function Description
How to use
1. 购物车动画
- (void)aniStartShopCarAnimationWithStartRect:(CGRect)rect withImageView:(UIImageView *)imageView withView:(UIView *)view withEndPoint:(CGPoint)lastPoint withControlPoint:(CGPoint)controlPoint withStartToEndSpacePercentage:(NSInteger)per withExpandAnimationTime:(CFTimeInterval)expandAnimationTime withNarrowAnimationTime:(CFTimeInterval)narrowAnimationTime withAnimationValue:(CGFloat)animationValue;
2. 阻尼动画
a. 创建阻尼动画的View
- (UIView *)aniDampingAnimationWithFView:(UIView *)view withFrame:(CGRect)frame withBackgroundColor:(UIColor *)bgColor isNeedBlackView:(BOOL)isBlack;
b. 阻尼动画相关使用方法
- (void)aniStartDampingAnimation;
- (void)aniCloseDampingAnimation;
- (UIView *)aniGetDampingBlackView;
3. 动画的代理方法
/**
* type == 0 购物车的动画
* type == 1 阻尼动画
* isStop: Yes动画结束, No动画过程中
*/
- (void)JhtAnimationWithType:(NSInteger)type isDidStop:(BOOL)isStop;
GitHub_链接地址