LSAnimator
LSAnimator copied to clipboard
⛓ Easy to Read and Write Multi-chain Animations Lib in Objective-C and Swift.
lets say i have make animation like myview.animation.moveX(60).animationCompletion = { //how do i make it to identity like we do in default UIView.animation block myview.transform = .identity } is there...
there is currently no way to pause or stop animations.
我目前是这样的 ``` -(void)startFingerAni{ LSAnimator * ani = [LSAnimator animatorWithView:self.handView]; ani.moveXY(-20, -20).postAnimationBlock(^{ [self endFingerAni]; }).animate(0.35); } -(void)endFingerAni{ LSAnimator * ani = [LSAnimator animatorWithView:self.handView]; ani.moveXY(20, 20).postAnimationBlock(^{ [self startFingerAni]; }).animate(0.35); } ``` 有好一点的实现方式吗
比如这个震动效果的动画要怎么写? ``` CAKeyframeAnimation * anim = [CAKeyframeAnimation animationWithKeyPath:@"position"]; anim.values = @[[NSValue valueWithCGPoint:CGPointMake(targetV.center.x, targetV.center.y)], [NSValue valueWithCGPoint:CGPointMake(targetV.center.x, targetV.center.y + 1)], [NSValue valueWithCGPoint:CGPointMake(targetV.center.x+1, targetV.center.y - 1)], [NSValue valueWithCGPoint:CGPointMake(targetV.center.x-1, targetV.center.y + 1)]]; anim.duration =...
请问这个是我使用方式问题吗? 
animator.makeX(10).preAnimationBlock(^{ NSLog(@""); }).makeSize with anything written in block will result in param auto-complete fail it should be sth like following animator.makeX(10).preAnimationBlock(^{ }).makeSize(, )