Skip to content

Commit

Permalink
Updated sample codes.
Browse files Browse the repository at this point in the history
  • Loading branch information
devedbox committed Apr 3, 2017
1 parent 05f0b4c commit 1ea125a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion AXAnimationChain/AnimationConvertableViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,8 @@ - (IBAction)extends:(UIButton *)sender {
decay.deceleration = 0.998;
decay.removedOnCompletion = NO;
decay.fillMode = kCAFillModeForwards;

// decay.timingFunction = [CAMediaTimingFunction easeInQuad];

[_keyframeTransitionView.layer addAnimation:decay forKey:@"position"];
animation.fromValue = [NSValue valueWithCGPoint:CGPointMake(self.transitionView.center.x, CGRectGetHeight(_transitionView.frame)*.5+64)];
animation.toValue = [NSValue valueWithCGPoint:CGPointMake(self.transitionView.center.x, CGRectGetHeight(self.view.frame)-64-CGRectGetHeight(_transitionView.frame)*.5)];
Expand Down

0 comments on commit 1ea125a

Please sign in to comment.